Function at 0x409e50
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46069e
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x474
mov eax, dword [0x4771c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x328], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x32c], eax
push 0x46cdd7
lea ecx, [ebp - 0x268]
call fcn.00412290
mov dword [ebp - 4], 0
cmp dword [ebp - 0x32c], 0
jne 0x409eee
push 0x46d2b0
mov ecx, dword [ebp + 8]
call fcn.00412290
mov eax, dword [ebp - 0x328]
or eax, 1
mov dword [ebp - 0x328], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.00412140
mov eax, dword [ebp + 8]
jmp 0x40a3d1
mov byte [ebp - 0x321], 0x43
jmp 0x409f06
mov cl, byte [ebp - 0x321]
add cl, 1
mov byte [ebp - 0x321], cl
movsx edx, byte [ebp - 0x321]
cmp edx, 0x5a
jg 0x40a39e
mov byte [ebp - 4], 1
movsx ecx, byte [ebp - 0x321]
sub ecx, 0x41
mov eax, 1
shl eax, cl
and eax, dword [ebp - 0x32c]
je 0x40a381
movzx ecx, byte [ebp - 0x321]
push ecx
push 1
lea ecx, [ebp - 0x3b8]
call fcn.00412220
mov dword [ebp - 0x360], eax
mov edx, dword [ebp - 0x360]
mov dword [ebp - 0x364], edx
mov byte [ebp - 4], 2
push 0x46d2b4
mov eax, dword [ebp - 0x364]
push eax
lea ecx, [ebp - 0x244]
push ecx
call fcn.0041b0c0
add esp, 0xc
mov dword [ebp - 0x3a0], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3b8]
call fcn.00412140
nop
lea ecx, [ebp - 0x244]
call fcn.00412080
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x368], eax
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x270]
push ecx
lea ecx, [ebp - 0x244]
call fcn.00412080
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x40a371
push 0x104
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x250]
push edx
push 0x104
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x244]
call fcn.00412080
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40a371
mov edx, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x224]
call fcn.0045fa80
divsd xmm0, qword [0x46dba8]
movsd qword [ebp - 0x39c], xmm0
mov edx, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x22c]
call fcn.0045fa80
divsd xmm0, qword [0x46dba8]
movsd qword [ebp - 0x394], xmm0
push 0xb0
lea ecx, [ebp - 0x320]
call fcn.00401900
push 1
lea ecx, [ebp - 0x320]
call fcn.00410100
mov dword [ebp - 0x38c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x368]
push ecx
lea edx, [ebp - 0x430]
push edx
call fcn.00404680
add esp, 8
mov dword [ebp - 0x35c], eax
mov eax, dword [ebp - 0x35c]
mov dword [ebp - 0x374], eax
mov byte [ebp - 4], 6
push 0x46d2c0
lea ecx, [ebp - 0x244]
push ecx
lea edx, [ebp - 0x418]
push edx
call fcn.0041b030
add esp, 0xc
mov dword [ebp - 0x370], eax
mov eax, dword [ebp - 0x370]
mov dword [ebp - 0x378], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x374]
push ecx
mov edx, dword [ebp - 0x378]
push edx
lea eax, [ebp - 0x460]
push eax
call fcn.0041b1d0
add esp, 0xc
mov dword [ebp - 0x37c], eax
mov ecx, dword [ebp - 0x37c]
mov dword [ebp - 0x384], ecx
mov byte [ebp - 4], 8
push 0x46d2bc
mov edx, dword [ebp - 0x384]
push edx
lea eax, [ebp - 0x400]
push eax
call fcn.0041b0c0
add esp, 0xc
mov dword [ebp - 0x388], eax
mov ecx, dword [ebp - 0x388]
mov dword [ebp - 0x330], ecx
mov byte [ebp - 4], 9
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x330]
push eax
lea ecx, [ebp - 0x3e8]
push ecx
call fcn.0041b0c0
add esp, 0xc
mov dword [ebp - 0x334], eax
mov edx, dword [ebp - 0x334]
mov dword [ebp - 0x338], edx
mov byte [ebp - 4], 0xa
push 0x46d2b8
mov eax, dword [ebp - 0x338]
push eax
lea ecx, [ebp - 0x3d0]
push ecx
call fcn.0041b0c0
add esp, 0xc
mov dword [ebp - 0x33c], eax
mov edx, dword [ebp - 0x33c]
mov dword [ebp - 0x340], edx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x340]
push eax
lea ecx, [ebp - 0x310]
push ecx
call fcn.0041b210
add esp, 8
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x3d0]
call fcn.00412140
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x3e8]
call fcn.00412140
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x400]
call fcn.00412140
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x460]
call fcn.00412140
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x418]
call fcn.00412140
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x430]
call fcn.00412140
nop
push 0
push 2
lea edx, [ebp - 0x480]
push edx
call fcn.00429d0c
add esp, 0xc
mov dword [ebp - 0x344], eax
push 0x404520
lea ecx, [ebp - 0x310]
call fcn.00410b20
mov dword [ebp - 0x380], eax
mov eax, dword [ebp - 0x344]
push eax
mov ecx, dword [ebp - 0x380]
push ecx
call fcn.0041b240
add esp, 8
mov dword [ebp - 0x348], eax
sub esp, 8
movsd xmm0, qword [ebp - 0x394]
movsd qword [esp], xmm0
mov ecx, dword [ebp - 0x348]
call fcn.004107f0
nop
push 0x46d2c4
lea edx, [ebp - 0x310]
push edx
call fcn.0041abb0
add esp, 8
push 0
push 2
lea eax, [ebp - 0x470]
push eax
call fcn.00429d0c
add esp, 0xc
mov dword [ebp - 0x34c], eax
push 0x404520
lea ecx, [ebp - 0x310]
call fcn.00410b20
mov dword [ebp - 0x350], eax
mov ecx, dword [ebp - 0x34c]
push ecx
mov edx, dword [ebp - 0x350]
push edx
call fcn.0041b240
add esp, 8
mov dword [ebp - 0x354], eax
sub esp, 8
movsd xmm0, qword [ebp - 0x39c]
movsd qword [esp], xmm0
mov ecx, dword [ebp - 0x354]
call fcn.004107f0
nop
push str.__GB_FREE_r_n
lea eax, [ebp - 0x310]
push eax
call fcn.0041abb0
add esp, 8
lea ecx, [ebp - 0x448]
push ecx
lea ecx, [ebp - 0x320]
call fcn.00410060
mov dword [ebp - 0x358], eax
mov edx, dword [ebp - 0x358]
mov dword [ebp - 0x36c], edx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x268]
call fcn.004120f0
nop
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x448]
call fcn.00412140
nop
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x320]
call fcn.00409250
nop
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x244]
call fcn.00412140
nop
jmp 0x40a389
mov dword [ebp - 4], 0
jmp 0x40a399
jmp 0x409ef7
lea ecx, [ebp - 0x268]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004121d0
mov edx, dword [ebp - 0x328]
or edx, 1
mov dword [ebp - 0x328], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.00412140
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043d0e7
mov esp, ebp
pop ebp
ret