Function at 0x10032020
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082305
mov eax, dword fs:[0]
push eax
sub esp, 0x774
mov eax, dword [0x100b2008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x734], esi
xor ebx, ebx
mov dword [ebp - 0x728], ebx
cmp dword [ecx + 0x10], ebx
je 0x10032cd5
push ecx
lea ecx, [ebp - 0x6c0]
call fcn.10007310
mov dword [ebp - 4], ebx
mov edx, 0x1008cb3c
lea ecx, [ebp - 0x6c0]
call fcn.1006b260
mov edx, 0x100911b8
lea ecx, [ebp - 0x6c0]
call fcn.1006b260
cmp dword [ebp - 0x6ac], 8
lea edi, [ebp - 0x6c0]
mov ecx, str.SystemRoot
mov dword [ebp - 0x72c], 0xa
cmovae edi, dword [ebp - 0x6c0]
mov dword [ebp - 0x730], ecx
cmp edi, ecx
je 0x10032118
movzx eax, word [ecx]
push eax
mov dword [ebp - 0x738], ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
movzx ecx, word [edi]
add esp, 4
mov si, ax
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
mov ecx, dword [ebp - 0x730]
add esp, 4
add ecx, 2
mov dword [ebp - 0x730], ecx
cmp ax, si
jne 0x1003224a
movzx eax, word [edi]
add edi, 2
test ax, ax
je 0x10032112
sub dword [ebp - 0x72c], 1
jne 0x100320c3
mov esi, dword [ebp - 0x734]
xor eax, eax
mov dword [ebp - 0x6c8], 0
mov dword [ebp - 0x6c4], 0
mov dword [ebp - 0x6c8], 0
mov dword [ebp - 0x6c4], 7
mov word [ebp - 0x6d8], ax
mov byte [ebp - 4], 1
push 0x20c
push eax
lea eax, [ebp - 0x2a8]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2a8]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x10032c54
xor eax, eax
lea ecx, [ebp - 0x2a8]
mov word [ebp - 0x9e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10032192
sub ecx, edx
lea eax, [ebp - 0x2a8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6d8]
call fcn.100057c0
cmp dword [ebp - 0x6c4], 8
lea eax, [ebp - 0x6d8]
mov edx, str.SystemRoot
lea ecx, [ebp - 0x6c0]
cmovae eax, dword [ebp - 0x6d8]
push eax
call fcn.1006b130
lea eax, [ebp - 0x6c0]
add esp, 4
cmp esi, eax
je 0x10032202
cmp dword [ebp - 0x6ac], 8
mov ecx, esi
push dword [ebp - 0x6b0]
cmovae eax, dword [ebp - 0x6c0]
push eax
call fcn.100057c0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x6c4]
cmp edx, 8
jb 0x10032c07
mov ecx, dword [ebp - 0x6d8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032bfd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032bfd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ebp - 0x738]
movzx eax, word [eax]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
add esp, 4
movzx esi, ax
movzx eax, word [edi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
movzx eax, ax
add esp, 4
sub eax, esi
je 0x10032112
push 0x400
lea eax, [ebp - 0x6a8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x6a8]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10032933
cmp word [ebp - 0x6a8], 0
mov dword [ebp - 0x730], 0
je 0x10032933
lea edi, [ebp - 0x6a8]
mov dword [ebp - 0x770], 0
mov dword [ebp - 0x738], edi
nop word [eax + eax]
push 3
xor eax, eax
mov dword [ebp - 0x75c], 0
mov dword [ebp - 0x758], 0
lea ecx, [ebp - 0x76c]
push 0x100911c4
mov dword [ebp - 0x75c], 0
mov dword [ebp - 0x758], 7
mov word [ebp - 0x76c], ax
call fcn.100057c0
mov byte [ebp - 4], 2
or ebx, 1
mov ecx, edi
mov dword [ebp - 0x728], ebx
xor eax, eax
mov dword [ebp - 0x6e0], 0
mov dword [ebp - 0x6dc], 0
mov dword [ebp - 0x6e0], 0
mov dword [ebp - 0x6dc], 7
lea edx, [ecx + 2]
mov word [ebp - 0x6f0], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10032366
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x6f0]
call fcn.100057c0
mov dword [ebp - 4], 3
or ebx, 2
mov dword [ebp - 0x728], ebx
lea edx, [ebp - 0x73c]
mov ecx, dword [ebp - 0x75c]
lea esi, [ebp - 0x72c]
mov eax, dword [ebp - 0x6e0]
cmp eax, ecx
mov dword [ebp - 0x73c], eax
mov eax, dword [ebp - 0x76c]
cmovae esi, edx
cmp dword [ebp - 0x758], 8
lea edx, [ebp - 0x76c]
mov dword [ebp - 0x72c], ecx
lea ecx, [ebp - 0x6f0]
cmovae edx, eax
mov dword [ebp - 0x77c], eax
cmp dword [ebp - 0x6dc], 8
mov eax, dword [ebp - 0x6f0]
cmovae ecx, eax
mov dword [ebp - 0x778], eax
mov eax, dword [esi]
test eax, eax
je 0x1003253a
push eax
call fcn.1006b030
add esp, 4
test eax, eax
je 0x1003253a
push 3
xor eax, eax
mov dword [ebp - 0x744], 0
mov dword [ebp - 0x740], 0
lea ecx, [ebp - 0x754]
push 0x100911bc
mov dword [ebp - 0x744], 0
mov dword [ebp - 0x740], 7
mov word [ebp - 0x754], ax
call fcn.100057c0
mov dword [ebp - 4], 4
or ebx, 4
mov ecx, edi
mov dword [ebp - 0x728], ebx
xor eax, eax
mov dword [ebp - 0x6c8], 0
mov dword [ebp - 0x6c4], 0
mov dword [ebp - 0x6c8], 0
mov dword [ebp - 0x6c4], 7
lea edx, [ecx + 2]
mov word [ebp - 0x6d8], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10032497
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x6d8]
call fcn.100057c0
mov dword [ebp - 4], 5
or ebx, 8
mov dword [ebp - 0x728], ebx
lea edx, [ebp - 0x774]
mov ecx, dword [ebp - 0x744]
lea esi, [ebp - 0x73c]
mov eax, dword [ebp - 0x6c8]
cmp eax, ecx
mov edi, dword [ebp - 0x6d8]
cmovae esi, edx
mov dword [ebp - 0x774], eax
cmp dword [ebp - 0x740], 8
lea edx, [ebp - 0x754]
mov eax, dword [ebp - 0x754]
cmovae edx, eax
mov dword [ebp - 0x73c], ecx
cmp dword [ebp - 0x6c4], 8
lea ecx, [ebp - 0x6d8]
mov dword [ebp - 0x72c], eax
mov eax, dword [esi]
cmovae ecx, edi
test eax, eax
je 0x1003254c
push eax
call fcn.1006b030
add esp, 4
test eax, eax
je 0x1003254c
mov byte [ebp - 0x721], 0
jmp 0x10032553
mov eax, dword [ebp - 0x754]
mov edi, dword [ebp - 0x6d8]
mov dword [ebp - 0x72c], eax
mov byte [ebp - 0x721], 1
mov dword [ebp - 4], 4
test bl, 8
je 0x100325bf
and ebx, 0xfffffff7
mov dword [ebp - 0x728], ebx
mov eax, dword [ebp - 0x6c4]
cmp eax, 8
jb 0x100325a2
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x10032598
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032a12
push ecx
push edi
call fcn.1007b61a
add esp, 8
xor eax, eax
mov dword [ebp - 0x6c8], 0
mov dword [ebp - 0x6c4], 7
mov word [ebp - 0x6d8], ax
mov dword [ebp - 4], 3
test bl, 4
je 0x10032631
and ebx, 0xfffffffb
mov dword [ebp - 0x728], ebx
mov eax, dword [ebp - 0x740]
cmp eax, 8
jb 0x10032614
mov ecx, dword [ebp - 0x72c]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003260a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032a12
push edx
push ecx
call fcn.1007b61a
add esp, 8
xor eax, eax
mov dword [ebp - 0x744], 0
mov dword [ebp - 0x740], 7
mov word [ebp - 0x754], ax
mov dword [ebp - 4], 2
test bl, 2
je 0x100326a3
and ebx, 0xfffffffd
mov dword [ebp - 0x728], ebx
mov eax, dword [ebp - 0x6dc]
cmp eax, 8
jb 0x10032686
mov edx, dword [ebp - 0x778]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003267c
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032a12
push ecx
push edx
call fcn.1007b61a
add esp, 8
xor eax, eax
mov dword [ebp - 0x6e0], 0
mov dword [ebp - 0x6dc], 7
mov word [ebp - 0x6f0], ax
mov dword [ebp - 4], 0
test bl, 1
je 0x10032715
and ebx, 0xfffffffe
mov dword [ebp - 0x728], ebx
mov eax, dword [ebp - 0x758]
cmp eax, 8
jb 0x100326f8
mov edx, dword [ebp - 0x77c]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100326ee
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032a12
push ecx
push edx
call fcn.1007b61a
add esp, 8
xor eax, eax
mov dword [ebp - 0x75c], 0
mov dword [ebp - 0x758], 7
mov word [ebp - 0x76c], ax
cmp byte [ebp - 0x721], 0
jne 0x10032903
push 0x80
lea eax, [ebp - 0x98]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x738]
add esp, 0xc
movzx eax, word [eax]
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x770]
push 0x40
movzx eax, word [ebp + eax - 0x6a6]
mov word [ebp - 0x16], ax
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10032903
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x720]
call fcn.10005770
mov byte [ebp - 4], 6
mov edx, 0x1008cb3c
lea ecx, [ebp - 0x720]
call fcn.1006b260
mov edx, 0x100911b8
lea ecx, [ebp - 0x720]
call fcn.1006b260
mov edi, dword [ebp - 0x70c]
lea edx, [ebp - 0x720]
mov esi, dword [ebp - 0x720]
lea eax, [ebp - 0x6c0]
mov ecx, dword [ebp - 0x710]
cmp edi, 8
cmovae edx, esi
cmp dword [ebp - 0x6ac], 8
cmovae eax, dword [ebp - 0x6c0]
test ecx, ecx
jne 0x100327e8
xor eax, eax
jmp 0x100327f9
push ecx
mov ecx, eax
call fcn.1006b030
mov ecx, dword [ebp - 0x710]
add esp, 4
test eax, eax
jne 0x100328ae
mov eax, dword [ebp - 0x6b0]
lea edx, [ebp - 0x6c0]
sub eax, ecx
lea ecx, [ebp - 0x708]
push eax
call fcn.1006b4d0
add esp, 4
mov byte [ebp - 4], 7
cmp dword [ebp - 0x6f8], 0
je 0x1003297e
cmp dword [ebp - 0x6f4], 8
lea eax, [ebp - 0x708]
cmovae eax, dword [ebp - 0x708]
cmp word [eax], 0x5c
je 0x1003297e
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x6f4]
cmp edx, 8
jb 0x10032891
mov ecx, dword [ebp - 0x708]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032887
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032a12
push edx
push ecx
call fcn.1007b61a
add esp, 8
xor eax, eax
mov dword [ebp - 0x6f8], 0
mov dword [ebp - 0x6f4], 7
mov word [ebp - 0x708], ax
mov byte [ebp - 4], 0
cmp edi, 8
jb 0x100328e6
lea ecx, [edi*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x100328dc
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032a12
push ecx
push esi
call fcn.1007b61a
add esp, 8
xor eax, eax
mov dword [ebp - 0x710], 0
mov dword [ebp - 0x70c], 7
mov word [ebp - 0x720], ax
mov eax, dword [ebp - 0x730]
lea edi, [ebp - 0x6a8]
add eax, 4
mov dword [ebp - 0x730], eax
lea esi, [eax + eax]
add edi, esi
mov dword [ebp - 0x770], esi
mov dword [ebp - 0x738], edi
cmp word [edi], 0
jne 0x100322e0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x6ac]
cmp edx, 8
jb 0x10032cbc
mov ecx, dword [ebp - 0x6c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032cb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032cb2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0xffffffffffffffff
push dword [ebp - 0x710]
lea edx, [ebp - 0x6c0]
lea ecx, [ebp - 0x6f0]
call fcn.1006b560
add esp, 8
mov byte [ebp - 4], 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x76c]
call fcn.10005770
mov byte [ebp - 4], 9
lea eax, [ebp - 0x6f0]
push eax
lea edx, [ebp - 0x76c]
lea ecx, [ebp - 0x754]
call fcn.1006bf40
add esp, 4
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x734]
push eax
call fcn.10007260
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x740]
cmp edx, 8
jb 0x10032a22
mov ecx, dword [ebp - 0x754]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032a18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032a18
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007b61a
add esp, 8
xor eax, eax
mov dword [ebp - 0x744], 0
mov dword [ebp - 0x740], 7
mov word [ebp - 0x754], ax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x758]
cmp edx, 8
jb 0x10032a85
mov ecx, dword [ebp - 0x76c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032a7b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032a7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007b61a
add esp, 8
xor eax, eax
mov dword [ebp - 0x75c], 0
mov dword [ebp - 0x758], 7
mov word [ebp - 0x76c], ax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x6dc]
cmp edx, 8
jb 0x10032ae8
mov ecx, dword [ebp - 0x6f0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032ade
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032ade
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007b61a
add esp, 8
xor eax, eax
mov dword [ebp - 0x6e0], 0
mov dword [ebp - 0x6dc], 7
mov word [ebp - 0x6f0], ax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x6f4]
cmp edx, 8
jb 0x10032b4b
mov ecx, dword [ebp - 0x708]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032b41
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032b41
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007b61a
add esp, 8
xor eax, eax
mov dword [ebp - 0x6f8], 0
mov dword [ebp - 0x6f4], 7
mov word [ebp - 0x708], ax
mov byte [ebp - 4], al
cmp edi, 8
jb 0x10032ba1
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x10032b97
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032b97
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edi
push esi
call fcn.1007b61a
add esp, 8
xor eax, eax
mov dword [ebp - 0x710], 0
mov dword [ebp - 0x70c], 7
mov word [ebp - 0x720], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x6ac]
cmp edx, 8
jb 0x10032c30
mov ecx, dword [ebp - 0x6c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032c26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032c26
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007b61a
add esp, 8
xor eax, eax
mov dword [ebp - 0x6c8], 0
mov dword [ebp - 0x6c4], 7
mov word [ebp - 0x6d8], ax
jmp 0x10032bbe
push edx
push ecx
call fcn.1007b61a
add esp, 8
xor eax, eax
mov dword [ebp - 0x6b0], 0
mov word [ebp - 0x6c0], ax
mov al, 1
mov dword [ebp - 0x6ac], 7
jmp 0x10032cd7
mov byte [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x6c8], 0
mov dword [ebp - 0x6c4], 7
mov word [ebp - 0x6d8], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x6ac]
cmp edx, 8
jb 0x10032cbc
mov ecx, dword [ebp - 0x6c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032cb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032bf7
push edx
push ecx
call fcn.1007b61a
add esp, 8
xor eax, eax
mov dword [ebp - 0x6ac], 7
mov word [ebp - 0x6c0], ax
mov dword [ebp - 0x6b0], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007b5d9
mov esp, ebp
pop ebp
ret