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

Disassembly:
mov eax, 0x58e408
call fcn.0055690c
sub esp, 0x39c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push edi
push ebx
mov edi, ecx
push ebx
push 0x1009
mov dword [ebp - 0x34], edi
push dword [edi + 0x7bc]
call esi
push ebx
push ebx
push 0x101c
push dword [edi + 0x7bc]
call esi
cmp eax, ebx
jne 0x405276
or esi, 0xffffffff
add edi, 0x7a0
push esi
push 0xc8
push ebx
push 0x5e8d68
push ebx
mov ecx, edi
call fcn.0056c0a0
push esi
push 0x64
push ebx
push 0x5e8d60
push 1
mov ecx, edi
call fcn.0056c0a0
push esi
push 0x64
push ebx
push 0x5e8d58
push 2
mov ecx, edi
call fcn.0056c0a0
push esi
push 0x73
push ebx
push 0x5e8d4c
push 3
mov ecx, edi
call fcn.0056c0a0
lea eax, [ebp - 0x248]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [ebp - 0x248], bl
lea esi, [ebp - 0x248]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], ebx
je 0x4054a2
push 0x104
lea eax, [ebp - 0x148]
push ebx
push eax
call fcn.005561a0
add esp, 0xc
lea eax, [ebp - 0x148]
push 0x104
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x28]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x405381
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
push 0x14
pop ecx
call fcn.00556ba0
mov edx, dword [ebp - 0x2c]
push 0x14
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
pop ecx
call fcn.00556ba0
mov dword [ebp - 0x20], eax
jmp 0x405387
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
push esi
call fcn.00404d24
pop ecx
pop ecx
push ebx
push eax
push ebx
push ebx
push esi
mov ecx, edi
push dword [ebp - 0x18]
push 3
call fcn.0056c0f3
push 1
push ebx
push ebx
push ebx
push ebx
push 4
push ebx
push eax
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.0056c175
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x4053f2
push 0x410
lea eax, [ebp - 0x3a8]
push 0x160
push eax
push 0x80
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 0x298]
jmp 0x4053f8
lea eax, [ebp - 0x148]
push eax
push 1
push dword [ebp - 0x14]
mov ecx, edi
call fcn.0056c1ee
mov eax, dword [0x5eb854]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], eax
push ecx
fild qword [ebp - 0x44]
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
fmul dword [0x5a386c]
fstp qword [esp]
push str._10.1f_GB
push eax
call fcn.0056b3b3
add esp, 0x10
mov ecx, edi
push dword [ebp - 0x10]
push 2
push dword [ebp - 0x14]
call fcn.0056c1ee
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], eax
push ecx
fild qword [ebp - 0x3c]
push ecx
lea eax, [ebp - 0x10]
fmul dword [0x5a386c]
fstp qword [esp]
push str._10.1f_GB
push eax
call fcn.0056b3b3
add esp, 0x10
mov ecx, edi
push dword [ebp - 0x10]
push 3
push dword [ebp - 0x14]
call fcn.0056c1ee
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0057265c
inc dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], bl
lea esi, [esi + eax + 1]
jne 0x40530f
mov edi, dword [ebp - 0x34]
push 0x600970
lea esi, [edi + 0x668]
mov ecx, esi
call fcn.005727e5
push ebx
push ebx
push 0x14b
push dword [edi + 0x744]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [esi]
push 0x5e8d28
push edi
call fcn.00406a0f
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret