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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100811f5
mov eax, dword fs:[0]
push eax
sub esp, 0x774
mov eax, dword [0x100b1008]
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 0x10032c55
push ecx
lea ecx, [ebp - 0x6c0]
call fcn.100072a0
mov dword [ebp - 4], ebx
mov edx, 0x1008bb3c
lea ecx, [ebp - 0x6c0]
call fcn.1006a170
mov edx, 0x100901a8
lea ecx, [ebp - 0x6c0]
call fcn.1006a170
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 0x10032098
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 0x100321ca
movzx eax, word [edi]
add edi, 2
test ax, ax
je 0x10032092
sub dword [ebp - 0x72c], 1
jne 0x10032043
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 0x10032bd4
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 0x10032112
sub ecx, edx
lea eax, [ebp - 0x2a8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6d8]
call fcn.10005750
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.1006a040
lea eax, [ebp - 0x6c0]
add esp, 4
cmp esi, eax
je 0x10032182
cmp dword [ebp - 0x6ac], 8
mov ecx, esi
push dword [ebp - 0x6b0]
cmovae eax, dword [ebp - 0x6c0]
push eax
call fcn.10005750
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x6c4]
cmp edx, 8
jb 0x10032b87
mov ecx, dword [ebp - 0x6d8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032b7d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032b7d
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 0x10032092
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 0x100328b3
cmp word [ebp - 0x6a8], 0
mov dword [ebp - 0x730], 0
je 0x100328b3
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 0x100901b4
mov dword [ebp - 0x75c], 0
mov dword [ebp - 0x758], 7
mov word [ebp - 0x76c], ax
call fcn.10005750
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 0x100322e6
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x6f0]
call fcn.10005750
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 0x100324ba
push eax
call fcn.10069f30
add esp, 4
test eax, eax
je 0x100324ba
push 3
xor eax, eax
mov dword [ebp - 0x744], 0
mov dword [ebp - 0x740], 0
lea ecx, [ebp - 0x754]
push 0x100901ac
mov dword [ebp - 0x744], 0
mov dword [ebp - 0x740], 7
mov word [ebp - 0x754], ax
call fcn.10005750
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 0x10032417
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x6d8]
call fcn.10005750
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 0x100324cc
push eax
call fcn.10069f30
add esp, 4
test eax, eax
je 0x100324cc
mov byte [ebp - 0x721], 0
jmp 0x100324d3
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 0x1003253f
and ebx, 0xfffffff7
mov dword [ebp - 0x728], ebx
mov eax, dword [ebp - 0x6c4]
cmp eax, 8
jb 0x10032522
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x10032518
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032992
push ecx
push edi
call fcn.1007a52a
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 0x100325b1
and ebx, 0xfffffffb
mov dword [ebp - 0x728], ebx
mov eax, dword [ebp - 0x740]
cmp eax, 8
jb 0x10032594
mov ecx, dword [ebp - 0x72c]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003258a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032992
push edx
push ecx
call fcn.1007a52a
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 0x10032623
and ebx, 0xfffffffd
mov dword [ebp - 0x728], ebx
mov eax, dword [ebp - 0x6dc]
cmp eax, 8
jb 0x10032606
mov edx, dword [ebp - 0x778]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100325fc
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032992
push ecx
push edx
call fcn.1007a52a
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 0x10032695
and ebx, 0xfffffffe
mov dword [ebp - 0x728], ebx
mov eax, dword [ebp - 0x758]
cmp eax, 8
jb 0x10032678
mov edx, dword [ebp - 0x77c]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003266e
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032992
push ecx
push edx
call fcn.1007a52a
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 0x10032883
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 0x10032883
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x720]
call fcn.10005700
mov byte [ebp - 4], 6
mov edx, 0x1008bb3c
lea ecx, [ebp - 0x720]
call fcn.1006a170
mov edx, 0x100901a8
lea ecx, [ebp - 0x720]
call fcn.1006a170
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 0x10032768
xor eax, eax
jmp 0x10032779
push ecx
mov ecx, eax
call fcn.10069f30
mov ecx, dword [ebp - 0x710]
add esp, 4
test eax, eax
jne 0x1003282e
mov eax, dword [ebp - 0x6b0]
lea edx, [ebp - 0x6c0]
sub eax, ecx
lea ecx, [ebp - 0x708]
push eax
call fcn.1006a3e0
add esp, 4
mov byte [ebp - 4], 7
cmp dword [ebp - 0x6f8], 0
je 0x100328fe
cmp dword [ebp - 0x6f4], 8
lea eax, [ebp - 0x708]
cmovae eax, dword [ebp - 0x708]
cmp word [eax], 0x5c
je 0x100328fe
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x6f4]
cmp edx, 8
jb 0x10032811
mov ecx, dword [ebp - 0x708]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032807
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032992
push edx
push ecx
call fcn.1007a52a
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 0x10032866
lea ecx, [edi*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x1003285c
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032992
push ecx
push esi
call fcn.1007a52a
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 0x10032260
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x6ac]
cmp edx, 8
jb 0x10032c3c
mov ecx, dword [ebp - 0x6c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032c32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032c32
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.1006a470
add esp, 8
mov byte [ebp - 4], 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x76c]
call fcn.10005700
mov byte [ebp - 4], 9
lea eax, [ebp - 0x6f0]
push eax
lea edx, [ebp - 0x76c]
lea ecx, [ebp - 0x754]
call fcn.1006ae50
add esp, 4
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x734]
push eax
call fcn.100071f0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x740]
cmp edx, 8
jb 0x100329a2
mov ecx, dword [ebp - 0x754]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032998
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032998
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007a52a
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 0x10032a05
mov ecx, dword [ebp - 0x76c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100329fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100329fb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007a52a
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 0x10032a68
mov ecx, dword [ebp - 0x6f0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032a5e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032a5e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007a52a
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 0x10032acb
mov ecx, dword [ebp - 0x708]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032ac1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032ac1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007a52a
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 0x10032b21
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x10032b17
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032b17
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edi
push esi
call fcn.1007a52a
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 0x10032bb0
mov ecx, dword [ebp - 0x6c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032ba6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032ba6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007a52a
add esp, 8
xor eax, eax
mov dword [ebp - 0x6c8], 0
mov dword [ebp - 0x6c4], 7
mov word [ebp - 0x6d8], ax
jmp 0x10032b3e
push edx
push ecx
call fcn.1007a52a
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 0x10032c57
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 0x10032c3c
mov ecx, dword [ebp - 0x6c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032c32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032b77
push edx
push ecx
call fcn.1007a52a
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.1007a4e9
mov esp, ebp
pop ebp
ret