Function at 0x457103
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a3465
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.0046ac97
fld qword [0x4bd848]
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 0x4bc4dc
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4571fe
push str.GetDiskFreeSpaceExA
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, ebx
je 0x4571f1
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 0x4571f1
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 0x45726a
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 0x45726a
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test eax, eax
jge 0x457232
fadd qword [0x4bd840]
mov eax, dword [esp + 0x20]
fild dword [esp + 0x20]
test eax, eax
jge 0x457244
fadd qword [0x4bd840]
fld qword [0x4bd830]
mov eax, dword [esp + 0x24]
test eax, eax
fmul st(1), st(0)
fxch st(1)
fmulp st(2)
fild dword [esp + 0x24]
jge 0x457262
fadd qword [0x4bd840]
fmulp st(2)
fmulp st(1)
fstp qword [esp + 0x2c]
fld qword [0x4bd848]
mov edi, str._.1fMB
fcomp qword [esp + 0x2c]
fnstsw ax
test ah, 0x44
jp 0x457292
lea ecx, [esi + 0xf0]
push str.___._MB
call fcn.0040334b
jmp 0x4572ab
fld qword [esp + 0x2c]
push ecx
push ecx
fstp qword [esp]
lea eax, [esi + 0xf0]
push edi
push eax
call fcn.00401a10
add esp, 0x10
lea eax, [esp + 0x14]
push 0x78
push eax
call fcn.004614c1
pop ecx
pop ecx
lea ecx, [esi + 0xec]
push eax
mov byte [esp + 0x5c], 1
call fcn.0040189c
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 0x45734a
or eax, ecx
je 0x45734a
lea eax, [esp + 0x14]
push 0x7b
push eax
call fcn.004614c1
pop ecx
pop ecx
lea ecx, [esi + 0xf4]
push eax
mov byte [esp + 0x5c], 2
call fcn.0040189c
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 [0x4bd828]
lea eax, [esi + 0xf8]
fstp qword [esp]
push edi
push eax
call fcn.00401a10
add esp, 0x10
mov edi, 0x4b578c
jmp 0x457367
mov edi, 0x4b578c
lea ecx, [esi + 0xf4]
push edi
call fcn.0040334b
lea ecx, [esi + 0xf8]
push edi
call fcn.0040334b
mov eax, dword [esi + 0x84]
cmp eax, ebx
mov ecx, dword [esi + 0x80]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jl 0x4573c9
jg 0x457385
cmp ecx, ebx
jbe 0x4573c9
fild qword [esp + 0x14]
fmul qword [0x4bd828]
fcomp qword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x4573c9
lea eax, [esp + 0x14]
push 0x7c
push eax
call fcn.004614c1
pop ecx
pop ecx
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 3
call fcn.0040189c
mov byte [esp + 0x58], bl
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040174a
jmp 0x4573d3
push edi
lea ecx, [esp + 0x14]
call fcn.0040334b
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x264]
call fcn.0040189c
push ebx
mov ecx, esi
call fcn.0046ac97
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