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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082425
mov eax, dword fs:[0]
push eax
sub esp, 0x774
mov eax, dword [0x100ab008]
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 0x10032db5
push ecx
lea ecx, [ebp - 0x6c0]
call fcn.10007310
mov dword [ebp - 4], ebx
mov edx, 0x1008bff0
lea ecx, [ebp - 0x6c0]
call fcn.1006b380
mov edx, 0x1008eb88
lea ecx, [ebp - 0x6c0]
call fcn.1006b380
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 0x100321f8
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 0x1003232a
movzx eax, word [edi]
add edi, 2
test ax, ax
je 0x100321f2
sub dword [ebp - 0x72c], 1
jne 0x100321a3
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 0x10032d34
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 0x10032272
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.1006b250
lea eax, [ebp - 0x6c0]
add esp, 4
cmp esi, eax
je 0x100322e2
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 0x10032ce7
mov ecx, dword [ebp - 0x6d8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032cdd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032cdd
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 0x100321f2
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 0x10032a13
cmp word [ebp - 0x6a8], 0
mov dword [ebp - 0x730], 0
je 0x10032a13
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 0x1008eb94
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 0x10032446
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 0x1003261a
push eax
call fcn.1006b150
add esp, 4
test eax, eax
je 0x1003261a
push 3
xor eax, eax
mov dword [ebp - 0x744], 0
mov dword [ebp - 0x740], 0
lea ecx, [ebp - 0x754]
push 0x1008eb8c
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 0x10032577
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 0x1003262c
push eax
call fcn.1006b150
add esp, 4
test eax, eax
je 0x1003262c
mov byte [ebp - 0x721], 0
jmp 0x10032633
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 0x1003269f
and ebx, 0xfffffff7
mov dword [ebp - 0x728], ebx
mov eax, dword [ebp - 0x6c4]
cmp eax, 8
jb 0x10032682
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x10032678
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032af2
push ecx
push edi
call fcn.1007b73a
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 0x10032711
and ebx, 0xfffffffb
mov dword [ebp - 0x728], ebx
mov eax, dword [ebp - 0x740]
cmp eax, 8
jb 0x100326f4
mov ecx, dword [ebp - 0x72c]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100326ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032af2
push edx
push ecx
call fcn.1007b73a
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 0x10032783
and ebx, 0xfffffffd
mov dword [ebp - 0x728], ebx
mov eax, dword [ebp - 0x6dc]
cmp eax, 8
jb 0x10032766
mov edx, dword [ebp - 0x778]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003275c
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032af2
push ecx
push edx
call fcn.1007b73a
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 0x100327f5
and ebx, 0xfffffffe
mov dword [ebp - 0x728], ebx
mov eax, dword [ebp - 0x758]
cmp eax, 8
jb 0x100327d8
mov edx, dword [ebp - 0x77c]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100327ce
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032af2
push ecx
push edx
call fcn.1007b73a
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 0x100329e3
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 0x100329e3
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x720]
call fcn.10005770
mov byte [ebp - 4], 6
mov edx, 0x1008bff0
lea ecx, [ebp - 0x720]
call fcn.1006b380
mov edx, 0x1008eb88
lea ecx, [ebp - 0x720]
call fcn.1006b380
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 0x100328c8
xor eax, eax
jmp 0x100328d9
push ecx
mov ecx, eax
call fcn.1006b150
mov ecx, dword [ebp - 0x710]
add esp, 4
test eax, eax
jne 0x1003298e
mov eax, dword [ebp - 0x6b0]
lea edx, [ebp - 0x6c0]
sub eax, ecx
lea ecx, [ebp - 0x708]
push eax
call fcn.1006b5f0
add esp, 4
mov byte [ebp - 4], 7
cmp dword [ebp - 0x6f8], 0
je 0x10032a5e
cmp dword [ebp - 0x6f4], 8
lea eax, [ebp - 0x708]
cmovae eax, dword [ebp - 0x708]
cmp word [eax], 0x5c
je 0x10032a5e
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x6f4]
cmp edx, 8
jb 0x10032971
mov ecx, dword [ebp - 0x708]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032967
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032af2
push edx
push ecx
call fcn.1007b73a
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 0x100329c6
lea ecx, [edi*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x100329bc
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032af2
push ecx
push esi
call fcn.1007b73a
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 0x100323c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x6ac]
cmp edx, 8
jb 0x10032d9c
mov ecx, dword [ebp - 0x6c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032d92
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032d92
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.1006b680
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.1006c060
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 0x10032b02
mov ecx, dword [ebp - 0x754]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032af8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032af8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007b73a
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 0x10032b65
mov ecx, dword [ebp - 0x76c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032b5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032b5b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007b73a
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 0x10032bc8
mov ecx, dword [ebp - 0x6f0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032bbe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032bbe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007b73a
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 0x10032c2b
mov ecx, dword [ebp - 0x708]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032c21
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032c21
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007b73a
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 0x10032c81
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x10032c77
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032c77
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edi
push esi
call fcn.1007b73a
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 0x10032d10
mov ecx, dword [ebp - 0x6c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032d06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032d06
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007b73a
add esp, 8
xor eax, eax
mov dword [ebp - 0x6c8], 0
mov dword [ebp - 0x6c4], 7
mov word [ebp - 0x6d8], ax
jmp 0x10032c9e
push edx
push ecx
call fcn.1007b73a
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 0x10032db7
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 0x10032d9c
mov ecx, dword [ebp - 0x6c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032d92
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032cd7
push edx
push ecx
call fcn.1007b73a
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.1007b6f9
mov esp, ebp
pop ebp
ret