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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427f97
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 0x402f99
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.00407b20
mov dword [esp + 0x450], ebx
push esi
push dword [esp + 0x14]
lea esi, [esp + 0x1c]
push 2
call fcn.00407343
mov esi, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00406458
push dword [esp + 0x18]
mov eax, dword [esp + 0x24]
push dword [ebp + 0x18]
mov dword [esp + 0x18], esi
push esi
call fcn.00402de0
mov ecx, dword [esp + 0x18]
cmp dword [ecx], ebx
je 0x402f53
or dword [esp + 0x450], 0xffffffff
cmp dword [esp + 0x10], ebx
je 0x40308a
lea ecx, [esp + 0x10]
call fcn.00407ca7
jmp 0x40308a
cmp al, bl
je 0x402f82
push dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
call fcn.00407b20
or dword [esp + 0x450], 0xffffffff
cmp dword [esp + 0x10], ebx
je 0x402f7b
lea ecx, [esp + 0x10]
call fcn.00407ca7
mov al, 1
jmp 0x40308c
or dword [esp + 0x450], 0xffffffff
cmp dword [esp + 0x10], ebx
je 0x402f99
lea ecx, [esp + 0x10]
call fcn.00407ca7
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 0x402fd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
jmp 0x40308a
cmp word [esp + 0x2c], bx
lea esi, [esp + 0x2c]
mov dword [esp + 0x14], esi
je 0x40308a
jmp 0x402fea
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x403007
push esi
call fcn.00414b8a
lea eax, [esi + eax*2 + 2]
pop ecx
mov dword [esp + 0x14], eax
jmp 0x40307d
push dword [esp + 0x24]
push esi
push 2
lea esi, [esp + 0x34]
call fcn.00407343
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.00402de0
mov ecx, dword [esp + 0x18]
cmp dword [ecx], ebx
jne 0x402f33
cmp al, bl
jne 0x402f57
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 0x40307d
lea ecx, [esp + 0x10]
call fcn.00407ca7
mov eax, dword [esp + 0x14]
cmp word [eax], bx
jne 0x402fe6
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.004147c2
mov esp, ebp
pop ebp
ret 0x18