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

Disassembly:
push 0xffffffffffffffff
push 0x5d3b37
mov eax, dword fs:[0]
push eax
mov eax, 0x1200
call fcn.005b5ef0
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x11fc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
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.00415400
xor ebx, ebx
push 0xfff
lea eax, [esp + 0x215]
push ebx
push eax
mov byte [esp + 0x21c], bl
call fcn.005b4520
add esp, 0xc
lea ecx, [esp + 0x210]
push ecx
push 0xfff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x5913fc
lea ebp, [esp + 0x210]
mov edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push ebp
call esi
cmp eax, 3
je 0x5911a7
cmp dword [esp + 0x1224], ebx
je 0x5913e4
push ebp
call esi
cmp eax, 2
jne 0x5913e4
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.005b4520
movsx eax, byte [ebp]
push eax
lea ecx, [esp + 0x11c]
push 0x5f3218
push ecx
call fcn.0051c2c0
lea eax, [esp + 0x124]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x591205
sub eax, edx
push eax
lea edx, [esp + 0x110]
push edx
lea ecx, [esp + 0xe4]
call fcn.004098b0
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 0x591330
push 1
push 2
lea ecx, [esp + 0x64]
call fcn.0040b160
push 0x62a35c
mov byte [esp + 0x1220], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x64]
push 0x5ff884
push ecx
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.004024e0
push eax
call fcn.00409c80
add esp, 8
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x60]
call fcn.00409610
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x121c], 2
jb 0x5912c9
mov eax, dword [eax + 4]
jmp 0x5912cc
add eax, 4
push eax
push str.CHardDiskInfo::GetDiskPartitionInfo
push 0x5a7
push str..commonGetHardInfo.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
cmp dword [esp + 0x50], esi
jb 0x591300
mov eax, dword [esp + 0x3c]
push eax
call fcn.00594e98
add esp, 4
lea ecx, [esp + 0xa8]
mov byte [esp + 0x121c], bl
call fcn.00409f20
lea ecx, [esp + 0xa8]
push ecx
mov dword [esp + 0xac], vtable.std::ios_base.0
call fcn.005cccbe
add esp, 4
jmp 0x59138f
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 [0x5f3210]
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.005908b0
mov ecx, dword [esp + 0x14]
push 1
mov edi, eax
call fcn.0058ff00
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 0x5913e0
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.00594e98
add esp, 4
mov edi, dword [esp + 0x14]
mov dl, byte [ebp]
add ebp, 1
test dl, dl
jne 0x5913e4
cmp byte [ebp], bl
jne 0x591180
jmp 0x5914c4
push 1
push 2
lea ecx, [esp + 0x64]
call fcn.0040b160
lea eax, [esp + 0x5c]
push 0x5f499c
push eax
mov dword [esp + 0x1224], 3
call fcn.00409c80
add esp, 8
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x60]
call fcn.00409610
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x121c], 4
jb 0x59144b
mov eax, dword [eax + 4]
jmp 0x59144e
add eax, 4
push eax
push str.CHardDiskInfo::GetDiskPartitionInfo
push 0x5b9
push str..commonGetHardInfo.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
cmp dword [esp + 0x50], esi
jb 0x591482
mov edx, dword [esp + 0x3c]
push edx
call fcn.00594e98
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.00409f20
lea eax, [esp + 0xa8]
push eax
mov dword [esp + 0xac], vtable.std::ios_base.0
call fcn.005cccbe
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.005b0968
add esp, 0x120c
ret 4