Function at 0x457534
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a408c
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push edi
mov eax, dword [0x4d6674]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor edi, edi
inc edi
push edi
mov ecx, esi
call fcn.0046b572
fld qword [0x4bd858]
xor ebx, ebx
fstp qword [esp + 0x2c]
push 3
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x94]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.004013d0
mov dword [esp + 0x58], ebx
push str.KERNEL32.DLL
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45762f
push str.GetDiskFreeSpaceExA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x457622
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push dword [esp + 0x1c]
call eax
test eax, eax
je 0x457622
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [esp + 0x30], eax
and eax, 0x7fffffff
and dword [esp + 0x30], 0x80000000
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], eax
fild qword [esp + 0x14]
mov dword [esp + 0x14], ebx
fild qword [esp + 0x2c]
fchs
faddp st(1)
fstp qword [esp + 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x14], ebx
je 0x45769b
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x45769b
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test eax, eax
jge 0x457663
fadd qword [0x4bd850]
mov eax, dword [esp + 0x20]
fild dword [esp + 0x20]
test eax, eax
jge 0x457675
fadd qword [0x4bd850]
fld qword [0x4bd840]
mov eax, dword [esp + 0x24]
test eax, eax
fmul st(1), st(0)
fxch st(1)
fmulp st(2)
fild dword [esp + 0x24]
jge 0x457693
fadd qword [0x4bd850]
fmulp st(2)
fmulp st(1)
fstp qword [esp + 0x2c]
fld qword [0x4bd858]
mov edi, str._.1fMB
fcomp qword [esp + 0x2c]
fnstsw ax
test ah, 0x44
jp 0x4576c3
lea ecx, [esi + 0xf0]
push str.___._MB
call fcn.00403370
jmp 0x4576dc
fld qword [esp + 0x2c]
push ecx
push ecx
fstp qword [esp]
lea eax, [esi + 0xf0]
push edi
push eax
call fcn.00401a35
add esp, 0x10
lea eax, [esp + 0x14]
push 0x78
push eax
call fcn.00461b1e
pop ecx
pop ecx
lea ecx, [esi + 0xec]
push eax
mov byte [esp + 0x5c], 1
call fcn.004018c1
mov byte [esp + 0x58], bl
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040174a
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x84]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x45777b
or eax, ecx
je 0x45777b
lea eax, [esp + 0x14]
push 0x7b
push eax
call fcn.00461b1e
pop ecx
pop ecx
lea ecx, [esi + 0xf4]
push eax
mov byte [esp + 0x5c], 2
call fcn.004018c1
mov byte [esp + 0x58], bl
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040174a
fild qword [esi + 0x80]
push ecx
push ecx
fmul qword [0x4bd838]
lea eax, [esi + 0xf8]
fstp qword [esp]
push edi
push eax
call fcn.00401a35
add esp, 0x10
mov edi, 0x4b578c
jmp 0x457798
mov edi, 0x4b578c
lea ecx, [esi + 0xf4]
push edi
call fcn.00403370
lea ecx, [esi + 0xf8]
push edi
call fcn.00403370
mov eax, dword [esi + 0x84]
cmp eax, ebx
mov ecx, dword [esi + 0x80]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jl 0x4577fa
jg 0x4577b6
cmp ecx, ebx
jbe 0x4577fa
fild qword [esp + 0x14]
fmul qword [0x4bd838]
fcomp qword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x4577fa
lea eax, [esp + 0x14]
push 0x7c
push eax
call fcn.00461b1e
pop ecx
pop ecx
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 3
call fcn.004018c1
mov byte [esp + 0x58], bl
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040174a
jmp 0x457804
push edi
lea ecx, [esp + 0x14]
call fcn.00403370
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x264]
call fcn.004018c1
push ebx
mov ecx, esi
call fcn.0046b572
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0040174a
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret