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

Disassembly:
push 0xffffffffffffffff
push 0x5d4b57
mov eax, dword fs:[0]
push eax
mov eax, 0x1200
call fcn.005b6f10
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x11fc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
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.004cbb40
xor ebx, ebx
push 0xfff
lea eax, [esp + 0x215]
push ebx
push eax
mov byte [esp + 0x21c], bl
call fcn.005b5540
add esp, 0xc
lea ecx, [esp + 0x210]
push ecx
push 0xfff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x59241c
lea ebp, [esp + 0x210]
mov edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push ebp
call esi
cmp eax, 3
je 0x5921c7
cmp dword [esp + 0x1224], ebx
je 0x592404
push ebp
call esi
cmp eax, 2
jne 0x592404
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.005b5540
movsx eax, byte [ebp]
push eax
lea ecx, [esp + 0x11c]
push 0x5f4218
push ecx
call fcn.0051d260
lea eax, [esp + 0x124]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x592225
sub eax, edx
push eax
lea edx, [esp + 0x110]
push edx
lea ecx, [esp + 0xe4]
call fcn.00409790
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 0x592350
push 1
push 2
lea ecx, [esp + 0x64]
call fcn.0040b040
push 0x62b4bc
mov byte [esp + 0x1220], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x64]
push 0x600884
push ecx
call fcn.00409b60
add esp, 8
mov ecx, eax
call fcn.004024e0
push eax
call fcn.00409b60
add esp, 8
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x60]
call fcn.004094f0
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x121c], 2
jb 0x5922e9
mov eax, dword [eax + 4]
jmp 0x5922ec
add eax, 4
push eax
push str.CHardDiskInfo::GetDiskPartitionInfo
push 0x5a7
push str..commonGetHardInfo.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
cmp dword [esp + 0x50], esi
jb 0x592320
mov eax, dword [esp + 0x3c]
push eax
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0xa8]
mov byte [esp + 0x121c], bl
call fcn.00409e00
lea ecx, [esp + 0xa8]
push ecx
mov dword [esp + 0xac], vtable.std::ios_base.0
call fcn.005cdcde
add esp, 4
jmp 0x5923af
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 [0x5f4210]
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.005918d0
mov ecx, dword [esp + 0x14]
push 1
mov edi, eax
call fcn.00590f20
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 0x592400
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.00595eb8
add esp, 4
mov edi, dword [esp + 0x14]
mov dl, byte [ebp]
add ebp, 1
test dl, dl
jne 0x592404
cmp byte [ebp], bl
jne 0x5921a0
jmp 0x5924e4
push 1
push 2
lea ecx, [esp + 0x64]
call fcn.0040b040
lea eax, [esp + 0x5c]
push 0x5f599c
push eax
mov dword [esp + 0x1224], 3
call fcn.00409b60
add esp, 8
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x60]
call fcn.004094f0
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x121c], 4
jb 0x59246b
mov eax, dword [eax + 4]
jmp 0x59246e
add eax, 4
push eax
push str.CHardDiskInfo::GetDiskPartitionInfo
push 0x5b9
push str..commonGetHardInfo.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
cmp dword [esp + 0x50], esi
jb 0x5924a2
mov edx, dword [esp + 0x3c]
push edx
call fcn.00595eb8
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.00409e00
lea eax, [esp + 0xa8]
push eax
mov dword [esp + 0xac], vtable.std::ios_base.0
call fcn.005cdcde
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.005b1988
add esp, 0x120c
ret 4