Function at 0x4059e0
Capabilities:
Get disk information
Get disk size
Get file attributes
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54a58b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3a4
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x34], edi
mov eax, dword [edi + 0x8b8]
push ebx
push ebx
push 0x1009
push eax
call esi
mov ecx, dword [edi + 0x8b8]
push ebx
push ebx
push 0x101c
push ecx
call esi
test eax, eax
jne 0x405a23
push 0xffffffffffffffff
push 0xc8
lea ebp, [edi + 0x89c]
push ebx
push 0x596b10
push ebx
mov ecx, ebp
call fcn.0052991c
push 0xffffffffffffffff
push 0x64
push ebx
push 0x596b08
push 1
mov ecx, ebp
call fcn.0052991c
push 0xffffffffffffffff
push 0x64
push ebx
push 0x596b00
push 2
mov ecx, ebp
call fcn.0052991c
push 0xffffffffffffffff
push 0x73
push ebx
push 0x596af4
push 3
mov ecx, ebp
call fcn.0052991c
lea edx, [esp + 0x150]
push edx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 0x150]
lea esi, [esp + 0x150]
test al, al
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ebx
je 0x405c82
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x48]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
xor edi, edi
push eax
push edi
push edi
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea ecx, [esp + 0x48]
push ecx
call ebx
lea edx, [esp + 0x20]
push edi
lea eax, [esp + 0x2c]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x405b38
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
shrd eax, ecx, 0x14
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
shrd eax, edx, 0x14
shr ecx, 0x14
mov dword [esp + 0x1c], eax
shr edx, 0x14
jmp 0x405b40
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
push esi
call fcn.00405470
add esp, 8
mov ecx, ebp
push edi
push eax
mov eax, dword [esp + 0x1c]
push edi
push edi
push esi
push eax
push 3
call fcn.0052996f
push 1
push 0
push 0
push 0
push 0
mov edi, eax
push 4
push 0
push edi
mov ecx, ebp
call fcn.005299f1
lea ecx, [esp + 0x48]
push ecx
call ebx
test eax, eax
jne 0x405baf
push 0x410
lea edx, [esp + 0x254]
push 0x160
push edx
push 0x80
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [esp + 0x360]
push eax
jmp 0x405bb4
lea ecx, [esp + 0x48]
push ecx
push 1
mov ecx, ebp
push edi
call fcn.00529a6a
mov edx, dword [0x59a094]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
fild qword [esp + 0x40]
sub esp, 8
lea edx, [esp + 0x18]
mov dword [esp + 0x3c4], eax
fmul dword [0x55c62c]
fstp qword [esp]
push str._10.1f_GB
push edx
call fcn.00528c17
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, ebp
push eax
push 2
push edi
call fcn.00529a6a
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], ecx
sub esp, 8
fild qword [esp + 0x40]
lea edx, [esp + 0x18]
fmul dword [0x55c62c]
fstp qword [esp]
push str._10.1f_GB
push edx
call fcn.00528c17
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, ebp
push eax
push 3
push edi
call fcn.00529a6a
lea ecx, [esp + 0x10]
mov dword [esp + 0x3bc], 0xffffffff
call fcn.0052fee7
mov edx, dword [esp + 0x14]
push esi
inc edx
mov dword [esp + 0x18], edx
call ebx
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x405ace
mov edi, dword [esp + 0x34]
xor ebx, ebx
lea esi, [edi + 0x668]
push 0x5acc80
mov ecx, esi
call fcn.00530070
mov ecx, dword [edi + 0x744]
push ebx
push ebx
push 0x14b
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi]
push edx
push 0x596ad0
push edi
call fcn.004074c0
mov ecx, dword [esp + 0x3c0]
add esp, 0xc
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret