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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101abe35
mov eax, dword fs:[0]
push eax
sub esp, 0x764
mov eax, dword [0x10221008]
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 - 0x76c], esi
xor ebx, ebx
mov dword [ebp - 0x728], ebx
cmp dword [ecx + 0x10], ebx
je 0x1002fce6
push ecx
lea ecx, [ebp - 0x6c0]
call fcn.100050f0
mov dword [ebp - 4], ebx
mov edx, 0x101e1ff8
lea ecx, [ebp - 0x6c0]
call fcn.1009f140
mov edx, 0x101ec6b4
lea ecx, [ebp - 0x6c0]
call fcn.1009f140
cmp dword [ebp - 0x6ac], 8
lea ecx, [ebp - 0x6c0]
push 0xa
cmovae ecx, dword [ebp - 0x6c0]
mov edx, 0x101ec6b8
call fcn.1009eec0
add esp, 4
test eax, eax
jne 0x1002fd04
mov dword [ebp - 0x6c8], eax
mov dword [ebp - 0x6c4], eax
mov dword [ebp - 0x6c8], eax
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 0x1002fcc5
xor eax, eax
lea ecx, [ebp - 0x2a8]
mov word [ebp - 0x9e], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002fc30
sub ecx, edx
lea eax, [ebp - 0x2a8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6d8]
call fcn.10004a60
cmp dword [ebp - 0x6c4], 8
lea eax, [ebp - 0x6d8]
mov edx, 0x101ec6b8
lea ecx, [ebp - 0x6c0]
cmovae eax, dword [ebp - 0x6d8]
push eax
call fcn.1009f010
lea eax, [ebp - 0x6c0]
add esp, 4
cmp esi, eax
je 0x1002fca0
cmp dword [ebp - 0x6ac], 8
mov ecx, esi
push dword [ebp - 0x6b0]
cmovae eax, dword [ebp - 0x6c0]
push eax
call fcn.10004a60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6d8]
call fcn.100049f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c0]
call fcn.100049f0
mov al, 1
jmp 0x1002fce8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6d8]
call fcn.100049f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c0]
call fcn.100049f0
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.1018b774
mov esp, ebp
pop ebp
ret
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 0x1002fcd4
cmp word [ebp - 0x6a8], 0
mov dword [ebp - 0x734], 0
je 0x1002fcd4
lea edi, [ebp - 0x6a8]
mov dword [ebp - 0x738], 0
nop dword [eax]
nop dword [eax + eax]
push 3
xor eax, eax
mov dword [ebp - 0x740], 0
mov dword [ebp - 0x73c], 0
lea ecx, [ebp - 0x750]
push 0x101ec6d0
mov dword [ebp - 0x740], 0
mov dword [ebp - 0x73c], 7
mov word [ebp - 0x750], ax
call fcn.10004a60
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 0x1002fde6
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x6f0]
call fcn.10004a60
mov dword [ebp - 4], 3
or ebx, 2
mov dword [ebp - 0x728], ebx
lea edx, [ebp - 0x730]
mov ecx, dword [ebp - 0x740]
lea esi, [ebp - 0x72c]
mov eax, dword [ebp - 0x6e0]
cmp eax, ecx
mov dword [ebp - 0x72c], ecx
lea ecx, [ebp - 0x6f0]
cmovae esi, edx
mov dword [ebp - 0x730], eax
cmp dword [ebp - 0x73c], 8
lea edx, [ebp - 0x750]
cmovae edx, dword [ebp - 0x750]
cmp dword [ebp - 0x6dc], 8
push dword [esi]
cmovae ecx, dword [ebp - 0x6f0]
call fcn.1009eec0
add esp, 4
test eax, eax
je 0x1002ff92
push 3
xor eax, eax
mov dword [ebp - 0x758], 0
mov dword [ebp - 0x754], 0
lea ecx, [ebp - 0x768]
push 0x101ec6d8
mov dword [ebp - 0x758], 0
mov dword [ebp - 0x754], 7
mov word [ebp - 0x768], ax
call fcn.10004a60
mov dword [ebp - 4], 4
or ebx, 4
mov dword [ebp - 0x728], ebx
xor eax, eax
mov word [ebp - 0x6d8], ax
mov eax, edi
mov dword [ebp - 0x6c8], 0
mov dword [ebp - 0x6c4], 0
mov dword [ebp - 0x6c8], 0
mov dword [ebp - 0x6c4], 7
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002ff00
sub eax, edx
lea ecx, [ebp - 0x6d8]
sar eax, 1
push eax
push edi
call fcn.10004a60
mov dword [ebp - 4], 5
or ebx, 8
mov dword [ebp - 0x728], ebx
lea edx, [ebp - 0x72c]
mov ecx, dword [ebp - 0x758]
lea esi, [ebp - 0x730]
mov eax, dword [ebp - 0x6c8]
cmp eax, ecx
mov dword [ebp - 0x730], ecx
lea ecx, [ebp - 0x6d8]
cmovae esi, edx
mov dword [ebp - 0x72c], eax
cmp dword [ebp - 0x754], 8
lea edx, [ebp - 0x768]
cmovae edx, dword [ebp - 0x768]
cmp dword [ebp - 0x6c4], 8
push dword [esi]
cmovae ecx, dword [ebp - 0x6d8]
call fcn.1009eec0
add esp, 4
mov byte [ebp - 0x721], 0
test eax, eax
jne 0x1002ff99
mov byte [ebp - 0x721], 1
mov dword [ebp - 4], 4
test bl, 8
je 0x1002ffb9
and ebx, 0xfffffff7
lea ecx, [ebp - 0x6d8]
mov dword [ebp - 0x728], ebx
call fcn.100049f0
mov dword [ebp - 4], 3
test bl, 4
je 0x1002ffd9
and ebx, 0xfffffffb
lea ecx, [ebp - 0x768]
mov dword [ebp - 0x728], ebx
call fcn.100049f0
mov dword [ebp - 4], 2
test bl, 2
je 0x1002fff9
and ebx, 0xfffffffd
lea ecx, [ebp - 0x6f0]
mov dword [ebp - 0x728], ebx
call fcn.100049f0
mov dword [ebp - 4], 0
test bl, 1
je 0x10030019
and ebx, 0xfffffffe
lea ecx, [ebp - 0x750]
mov dword [ebp - 0x728], ebx
call fcn.100049f0
cmp byte [ebp - 0x721], 0
jne 0x10030149
push 0x80
lea eax, [ebp - 0x98]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movzx eax, word [edi]
add esp, 0xc
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x738]
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 0x10030149
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x708]
call fcn.10004820
mov byte [ebp - 4], 6
mov edx, 0x101e1ff8
lea ecx, [ebp - 0x708]
call fcn.1009f140
mov edx, 0x101ec6b4
lea ecx, [ebp - 0x708]
call fcn.1009f140
cmp dword [ebp - 0x6f4], 8
lea edx, [ebp - 0x708]
mov esi, dword [ebp - 0x6f8]
lea ecx, [ebp - 0x6c0]
cmovae edx, dword [ebp - 0x708]
cmp dword [ebp - 0x6ac], 8
push esi
cmovae ecx, dword [ebp - 0x6c0]
call fcn.1009eec0
add esp, 4
test eax, eax
jne 0x1003013a
mov eax, dword [ebp - 0x6b0]
lea edx, [ebp - 0x6c0]
sub eax, esi
lea ecx, [ebp - 0x720]
push eax
call fcn.1009f3d0
add esp, 4
mov byte [ebp - 4], 7
cmp dword [ebp - 0x710], 0
je 0x10030178
cmp dword [ebp - 0x70c], 8
lea eax, [ebp - 0x720]
cmovae eax, dword [ebp - 0x720]
cmp word [eax], 0x5c
je 0x10030178
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x720]
call fcn.100049f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x708]
call fcn.100049f0
mov eax, dword [ebp - 0x734]
lea edi, [ebp - 0x6a8]
add eax, 4
mov dword [ebp - 0x734], eax
lea esi, [eax + eax]
add edi, esi
mov dword [ebp - 0x738], esi
cmp word [edi], 0
jne 0x1002fd60
jmp 0x1002fcd4
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x6c0]
lea ecx, [ebp - 0x6f0]
call fcn.1009f460
add esp, 8
mov byte [ebp - 4], 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x750]
call fcn.10004820
mov byte [ebp - 4], 9
lea eax, [ebp - 0x6f0]
push eax
lea edx, [ebp - 0x750]
lea ecx, [ebp - 0x768]
call fcn.10097e70
add esp, 4
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x76c]
push eax
call fcn.100047b0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x768]
call fcn.100049f0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x750]
call fcn.100049f0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x6f0]
call fcn.100049f0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x720]
call fcn.100049f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x708]
call fcn.100049f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c0]
call fcn.100049f0
mov al, 1
jmp 0x1002fce8