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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x4362ec]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
mov eax, dword [0x4362ec]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x234]
push ecx
xor ebx, ebx
push ebx
push ebx
or eax, 0x8000
push eax
push ebx
mov edi, edx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x402f77
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.00407ade
mov dword [esp + 0x450], ebx
push esi
push dword [esp + 0x14]
lea esi, [esp + 0x1c]
push 2
call fcn.0040731d
mov esi, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00406432
push dword [esp + 0x18]
mov eax, dword [esp + 0x24]
push dword [ebp + 0x18]
mov dword [esp + 0x18], esi
push esi
call fcn.00402dbe
mov ecx, dword [esp + 0x18]
cmp dword [ecx], ebx
je 0x402f31
or dword [esp + 0x450], 0xffffffff
cmp dword [esp + 0x10], ebx
je 0x403068
lea ecx, [esp + 0x10]
call fcn.00407c65
jmp 0x403068
cmp al, bl
je 0x402f60
push dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
call fcn.00407ade
or dword [esp + 0x450], 0xffffffff
cmp dword [esp + 0x10], ebx
je 0x402f59
lea ecx, [esp + 0x10]
call fcn.00407c65
mov al, 1
jmp 0x40306a
or dword [esp + 0x450], 0xffffffff
cmp dword [esp + 0x10], ebx
je 0x402f77
lea ecx, [esp + 0x10]
call fcn.00407c65
push 0x208
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.00414b10
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, ebx
jne 0x402faf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
jmp 0x403068
cmp word [esp + 0x2c], bx
lea esi, [esp + 0x2c]
mov dword [esp + 0x14], esi
je 0x403068
jmp 0x402fc8
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x402fe5
push esi
call fcn.00414b8a
lea eax, [esi + eax*2 + 2]
pop ecx
mov dword [esp + 0x14], eax
jmp 0x40305b
push dword [esp + 0x24]
push esi
push 2
lea esi, [esp + 0x34]
call fcn.0040731d
mov eax, dword [eax]
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x450], 1
push dword [esp + 0x18]
mov eax, dword [esp + 0x24]
push dword [ebp + 0x18]
push dword [esp + 0x18]
call fcn.00402dbe
mov ecx, dword [esp + 0x18]
cmp dword [ecx], ebx
jne 0x402f11
cmp al, bl
jne 0x402f35
mov esi, dword [esp + 0x14]
push esi
call fcn.00414b8a
lea eax, [esi + eax*2 + 2]
pop ecx
mov dword [esp + 0x14], eax
or dword [esp + 0x450], 0xffffffff
cmp dword [esp + 0x10], ebx
je 0x40305b
lea ecx, [esp + 0x10]
call fcn.00407c65
mov eax, dword [esp + 0x14]
cmp word [eax], bx
jne 0x402fc4
xor al, al
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.004147b8
mov esp, ebp
pop ebp
ret 0x18