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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080ea5
mov eax, dword fs:[0]
push eax
sub esp, 0x774
mov eax, dword [0x100b0008]
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 0x10032995
push ecx
lea ecx, [ebp - 0x6c0]
call fcn.10007090
mov dword [ebp - 4], ebx
mov edx, 0x1008ba3c
lea ecx, [ebp - 0x6c0]
call fcn.10069e30
mov edx, 0x100900a8
lea ecx, [ebp - 0x6c0]
call fcn.10069e30
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 0x10031dd8
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 0x10031f0a
movzx eax, word [edi]
add edi, 2
test ax, ax
je 0x10031dd2
sub dword [ebp - 0x72c], 1
jne 0x10031d83
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 0x10032914
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 0x10031e52
sub ecx, edx
lea eax, [ebp - 0x2a8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6d8]
call fcn.10005540
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.10069d00
lea eax, [ebp - 0x6c0]
add esp, 4
cmp esi, eax
je 0x10031ec2
cmp dword [ebp - 0x6ac], 8
mov ecx, esi
push dword [ebp - 0x6b0]
cmovae eax, dword [ebp - 0x6c0]
push eax
call fcn.10005540
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x6c4]
cmp edx, 8
jb 0x100328c7
mov ecx, dword [ebp - 0x6d8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100328bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100328bd
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 0x10031dd2
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 0x100325f3
cmp word [ebp - 0x6a8], 0
mov dword [ebp - 0x730], 0
je 0x100325f3
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 0x100900b4
mov dword [ebp - 0x75c], 0
mov dword [ebp - 0x758], 7
mov word [ebp - 0x76c], ax
call fcn.10005540
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 0x10032026
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x6f0]
call fcn.10005540
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 0x100321fa
push eax
call fcn.10069c00
add esp, 4
test eax, eax
je 0x100321fa
push 3
xor eax, eax
mov dword [ebp - 0x744], 0
mov dword [ebp - 0x740], 0
lea ecx, [ebp - 0x754]
push 0x100900ac
mov dword [ebp - 0x744], 0
mov dword [ebp - 0x740], 7
mov word [ebp - 0x754], ax
call fcn.10005540
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 0x10032157
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x6d8]
call fcn.10005540
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 0x1003220c
push eax
call fcn.10069c00
add esp, 4
test eax, eax
je 0x1003220c
mov byte [ebp - 0x721], 0
jmp 0x10032213
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 0x1003227f
and ebx, 0xfffffff7
mov dword [ebp - 0x728], ebx
mov eax, dword [ebp - 0x6c4]
cmp eax, 8
jb 0x10032262
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x10032258
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100326d2
push ecx
push edi
call fcn.1007a1ea
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 0x100322f1
and ebx, 0xfffffffb
mov dword [ebp - 0x728], ebx
mov eax, dword [ebp - 0x740]
cmp eax, 8
jb 0x100322d4
mov ecx, dword [ebp - 0x72c]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100322ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100326d2
push edx
push ecx
call fcn.1007a1ea
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 0x10032363
and ebx, 0xfffffffd
mov dword [ebp - 0x728], ebx
mov eax, dword [ebp - 0x6dc]
cmp eax, 8
jb 0x10032346
mov edx, dword [ebp - 0x778]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003233c
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100326d2
push ecx
push edx
call fcn.1007a1ea
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 0x100323d5
and ebx, 0xfffffffe
mov dword [ebp - 0x728], ebx
mov eax, dword [ebp - 0x758]
cmp eax, 8
jb 0x100323b8
mov edx, dword [ebp - 0x77c]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100323ae
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100326d2
push ecx
push edx
call fcn.1007a1ea
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 0x100325c3
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 0x100325c3
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x720]
call fcn.100054f0
mov byte [ebp - 4], 6
mov edx, 0x1008ba3c
lea ecx, [ebp - 0x720]
call fcn.10069e30
mov edx, 0x100900a8
lea ecx, [ebp - 0x720]
call fcn.10069e30
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 0x100324a8
xor eax, eax
jmp 0x100324b9
push ecx
mov ecx, eax
call fcn.10069c00
mov ecx, dword [ebp - 0x710]
add esp, 4
test eax, eax
jne 0x1003256e
mov eax, dword [ebp - 0x6b0]
lea edx, [ebp - 0x6c0]
sub eax, ecx
lea ecx, [ebp - 0x708]
push eax
call fcn.1006a0a0
add esp, 4
mov byte [ebp - 4], 7
cmp dword [ebp - 0x6f8], 0
je 0x1003263e
cmp dword [ebp - 0x6f4], 8
lea eax, [ebp - 0x708]
cmovae eax, dword [ebp - 0x708]
cmp word [eax], 0x5c
je 0x1003263e
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x6f4]
cmp edx, 8
jb 0x10032551
mov ecx, dword [ebp - 0x708]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032547
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100326d2
push edx
push ecx
call fcn.1007a1ea
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 0x100325a6
lea ecx, [edi*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x1003259c
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100326d2
push ecx
push esi
call fcn.1007a1ea
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 0x10031fa0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x6ac]
cmp edx, 8
jb 0x1003297c
mov ecx, dword [ebp - 0x6c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032972
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032972
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.1006a130
add esp, 8
mov byte [ebp - 4], 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x76c]
call fcn.100054f0
mov byte [ebp - 4], 9
lea eax, [ebp - 0x6f0]
push eax
lea edx, [ebp - 0x76c]
lea ecx, [ebp - 0x754]
call fcn.1006ab10
add esp, 4
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x734]
push eax
call fcn.10006fe0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x740]
cmp edx, 8
jb 0x100326e2
mov ecx, dword [ebp - 0x754]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100326d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100326d8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007a1ea
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 0x10032745
mov ecx, dword [ebp - 0x76c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003273b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003273b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007a1ea
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 0x100327a8
mov ecx, dword [ebp - 0x6f0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003279e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003279e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007a1ea
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 0x1003280b
mov ecx, dword [ebp - 0x708]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032801
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032801
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007a1ea
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 0x10032861
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x10032857
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032857
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edi
push esi
call fcn.1007a1ea
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 0x100328f0
mov ecx, dword [ebp - 0x6c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100328e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100328e6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007a1ea
add esp, 8
xor eax, eax
mov dword [ebp - 0x6c8], 0
mov dword [ebp - 0x6c4], 7
mov word [ebp - 0x6d8], ax
jmp 0x1003287e
push edx
push ecx
call fcn.1007a1ea
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 0x10032997
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 0x1003297c
mov ecx, dword [ebp - 0x6c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032972
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100328b7
push edx
push ecx
call fcn.1007a1ea
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.1007a1a9
mov esp, ebp
pop ebp
ret