Function at 0x4043d0
Capabilities:
Get common file path
Get disk information
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x56d3e8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x641030]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x641030]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [esp + 0x88]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov eax, 0xf
xor edi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
mov dword [esp + 0x80], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
mov byte [esp + 0x88], 1
mov byte [esp + 0x1f], bl
call ebp
mov esi, eax
cmp esi, ebx
jle 0x404482
xor ecx, ecx
lea eax, [esi + 4]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005545e1
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x404482
push edi
push esi
call ebp
test eax, eax
setne byte [esp + 0x17]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov ebp, eax
cmp ebp, ebx
jle 0x4044dc
xor ecx, ecx
lea eax, [ebp + 4]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005545e1
add esp, 4
mov esi, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
cmp esi, ebx
je 0x4044dc
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push esi
call fcn.005550a5
add esp, 4
cmp byte [esp + 0x17], bl
je 0x4044ed
cmp edi, ebx
je 0x4044fa
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp edi, ebx
je 0x4044fa
push edi
call fcn.005550a5
add esp, 4
cmp dword [esp + 0x18], ebx
jne 0x404508
mov dword [esp + 0x18], 0xaabbccdd
mov eax, dword [esp + 0x50]
mov ebp, 0x10
cmp eax, ebp
jb 0x404523
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x44]
call fcn.004020a0
jmp 0x404532
mov ecx, ebp
sub ecx, eax
push ebx
push ecx
lea ecx, [esp + 0x44]
call fcn.00402a90
xor esi, esi
cmp esi, dword [esp + 0x50]
jbe 0x40453f
call fcn.0055521c
mov edi, dword [esp + 0x40]
cmp dword [esp + 0x54], ebp
jae 0x40454d
lea edi, [esp + 0x40]
mov ecx, esi
and ecx, reloc.WS2_32.dll_closesocket
jns 0x40455c
dec ecx
or ecx, 0xfffffffc
inc ecx
mov edx, dword [esp + 0x18]
shr edx, cl
inc esi
cmp esi, ebp
mov byte [edi + esi - 1], dl
jl 0x404534
mov esi, dword [esp + 0x1c]
push esi
lea edi, [esp + 0x24]
call fcn.00403320
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x8c], 2
call fcn.00402510
mov byte [esp + 0x80], 1
cmp dword [esp + 0x38], ebp
jb 0x4045ac
mov eax, dword [esp + 0x24]
push eax
call fcn.00554bd9
add esp, 4
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x54], ebp
jae 0x4045ba
lea ecx, [esp + 0x40]
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x70], ebp
jae 0x4045c8
lea eax, [esp + 0x5c]
push ebx
push 0x80
push ebp
push ecx
push 0x20
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0040a2d0
add esp, 0x1c
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x8c], 3
call fcn.00402510
mov byte [esp + 0x80], 1
cmp dword [esp + 0x38], ebp
jb 0x404610
mov edx, dword [esp + 0x24]
push edx
call fcn.00554bd9
add esp, 4
lea eax, [esp + 0x58]
push eax
lea edi, [esp + 0x24]
call fcn.004042c0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x8c], 4
call fcn.004025f0
cmp dword [esp + 0x38], 8
jb 0x404648
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00554bd9
add esp, 4
cmp dword [esp + 0x54], ebp
jb 0x40465b
mov edx, dword [esp + 0x40]
push edx
call fcn.00554bd9
add esp, 4
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
cmp dword [esp + 0x70], ebp
jb 0x40467e
mov eax, dword [esp + 0x5c]
push eax
call fcn.00554bd9
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.005550b0
add esp, 0x70
ret