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

Disassembly:
push 0xffffffffffffffff
push 0x5e09c7
mov eax, dword fs:[0]
push eax
mov eax, 0x1200
call fcn.005c2160
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x11fc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0x1214]
mov dword fs:[0], eax
lea edi, [ecx + 0xc]
mov ecx, edi
mov dword [esp + 0x14], edi
call fcn.004d12f0
xor ebx, ebx
push 0xfff
lea eax, [esp + 0x215]
push ebx
push eax
mov byte [esp + 0x21c], bl
call fcn.005c0cf0
add esp, 0xc
lea ecx, [esp + 0x210]
push ecx
push 0xfff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x59e84c
lea ebp, [esp + 0x210]
mov edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push ebp
call esi
cmp eax, 3
je 0x59e5f7
cmp dword [esp + 0x1224], ebx
je 0x59e834
push ebp
call esi
cmp eax, 2
jne 0x59e834
mov dword [esp + 0xf4], 0xf
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
push 0x103
lea edx, [esp + 0x111]
push ebx
push edx
mov dword [esp + 0x1228], ebx
mov byte [esp + 0x118], bl
call fcn.005c0cf0
movsx eax, byte [ebp]
push eax
lea ecx, [esp + 0x11c]
push 0x601038
push ecx
call fcn.00516bc0
lea eax, [esp + 0x124]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x59e655
sub eax, edx
push eax
lea edx, [esp + 0x110]
push edx
lea ecx, [esp + 0xe4]
call fcn.00408ea0
fldz
lea eax, [esp + 0x30]
fstp qword [esp + 0x104]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x118]
push eax
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x110], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x59e780
push 1
push 2
lea ecx, [esp + 0x64]
call fcn.0040a750
push 0x63a84c
mov byte [esp + 0x1220], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x64]
push 0x60db6c
push ecx
call fcn.00409270
add esp, 8
mov ecx, eax
call fcn.00419990
push eax
call fcn.00409270
add esp, 8
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x60]
call fcn.00408c00
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x121c], 2
jb 0x59e719
mov eax, dword [eax + 4]
jmp 0x59e71c
add eax, 4
push eax
push str.CHardDiskInfo::GetDiskPartitionInfo
push 0x5a7
push str..commonGetHardInfo.cpp
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
cmp dword [esp + 0x50], esi
jb 0x59e750
mov eax, dword [esp + 0x3c]
push eax
call fcn.005a1b1d
add esp, 4
lea ecx, [esp + 0xa8]
mov byte [esp + 0x121c], bl
call fcn.00409510
lea ecx, [esp + 0xa8]
push ecx
mov dword [esp + 0xac], vtable.std::ios_base.0
call fcn.005d9cc4
add esp, 4
jmp 0x59e7df
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ecx, eax
and eax, 0x7fffffff
and ecx, 0x80000000
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
fild qword [esp + 0x18]
mov dword [esp + 0x20], ebx
fild qword [esp + 0x20]
shrd eax, ecx, 0x14
shr ecx, 0x14
fchs
mov dword [esp + 0xfc], eax
faddp st(1)
mov dword [esp + 0x100], ecx
fld qword [0x601030]
fmul st(1), st(0)
fmulp st(1)
fstp qword [esp + 0x104]
mov esi, dword [edi + 4]
mov eax, dword [esi + 4]
lea edx, [esp + 0xdc]
push edx
push eax
push esi
mov ecx, edi
call fcn.0059dd00
mov ecx, dword [esp + 0x14]
push 1
mov edi, eax
call fcn.0059d350
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
cmp dword [esp + 0xf4], 0x10
mov dword [esp + 0x121c], 0xffffffff
jb 0x59e830
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.005a1b1d
add esp, 4
mov edi, dword [esp + 0x14]
mov dl, byte [ebp]
add ebp, 1
test dl, dl
jne 0x59e834
cmp byte [ebp], bl
jne 0x59e5d0
jmp 0x59e914
push 1
push 2
lea ecx, [esp + 0x64]
call fcn.0040a750
lea eax, [esp + 0x5c]
push 0x602b34
push eax
mov dword [esp + 0x1224], 3
call fcn.00409270
add esp, 8
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x60]
call fcn.00408c00
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x121c], 4
jb 0x59e89b
mov eax, dword [eax + 4]
jmp 0x59e89e
add eax, 4
push eax
push str.CHardDiskInfo::GetDiskPartitionInfo
push 0x5b9
push str..commonGetHardInfo.cpp
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
cmp dword [esp + 0x50], esi
jb 0x59e8d2
mov edx, dword [esp + 0x3c]
push edx
call fcn.005a1b1d
add esp, 4
lea ecx, [esp + 0xa8]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
mov dword [esp + 0x121c], 0xffffffff
call fcn.00409510
lea eax, [esp + 0xa8]
push eax
mov dword [esp + 0xac], vtable.std::ios_base.0
call fcn.005d9cc4
add esp, 4
mov ecx, dword [esp + 0x1214]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x11fc]
xor ecx, esp
call fcn.005bd2d7
add esp, 0x120c
ret 4