Function at 0x4056e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57de36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, 0x5fda18
call fcn.004bec20
mov ecx, eax
call fcn.004d73d0
test al, al
je 0x405965
mov ecx, 0x5fd9ec
call fcn.004ba3f0
xor esi, esi
cmp eax, esi
je 0x405965
lea edx, [esp + 0x24]
or edi, 0xffffffff
push edx
mov dword [esp + 0x28], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x64]
cmp dword [esp + 0x24], 0xd
jne 0x405965
cmp ebp, esi
jne 0x405756
xor eax, eax
jmp 0x405759
mov eax, dword [ebp + 0x20]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
call fcn.0044e5a0
add esp, 0xc
cmp ebp, esi
jne 0x405774
xor eax, eax
jmp 0x405777
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
lea ebx, [esp + 0x30]
push ebx
push 0x20
push eax
push ecx
call dword [edx + 0x10]
test eax, eax
jl 0x405965
mov ebx, 1
mov eax, dword [esp + 0x30]
push esi
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, esi
jne 0x40595d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0044d2e0
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x64], esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
test al, al
je 0x4057ec
lea ecx, [esp + 0x10]
mov dword [esp + 0x64], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
jmp 0x405796
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.PSP
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_6]
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Sony
mov byte [esp + 0x70], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_6]
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
mov byte [esp + 0x74], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_5]
mov byte [esp + 0x70], 0
call fcn.0044d050
add esp, 0xc
test al, al
jne 0x40584f
lea ecx, [esp + 0x10]
mov dword [esp + 0x64], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
jmp 0x405796
push 0x596834
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_6]
push 0x82c1
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
push ecx
push edx
lea eax, [esp + 0x24]
push eax
call fcn.0044d400
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 4
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x405936
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
shrd esi, ecx, 0xb
shr ecx, 0xb
push 0x596834
lea ecx, [esp + 0x1c]
sub esi, 0x200
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_6]
lea edx, [esp + 0x18]
push esi
push edx
mov byte [esp + 0x6c], 5
call fcn.0044d810
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
lea edi, [ebp + 0x11f0]
push str._s__s___s_
push edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0x1c
push 0
push ebx
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_5]
mov ecx, ebp
call fcn.004055b0
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
or edi, 0xffffffff
xor esi, esi
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x10]
mov dword [esp + 0x64], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
jmp 0x405796
cmp eax, ebx
jne 0x405796
mov ecx, dword [esp + 0x5c]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret