Function at 0x42e8a9
Capabilities:
Get file size

Disassembly:
push 0x5c
mov eax, 0x4543f6
call fcn.0044ffe1
xor edi, edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 4], edi
fld qword [0x473880]
fstp qword [ebp - 0x54]
push 0x80
fld qword [0x473878]
push 3
fstp qword [ebp - 0x3c]
push 1
fld qword [0x473870]
push SysReAllocString
push dword [ebp + 8]
fstp qword [ebp - 0x3c]
fld qword [0x473868]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fmul qword [0x473860]
fadd qword [ebp - 0x54]
fstp qword [ebp - 0x54]
call fcn.0043fc67
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
cmp eax, 0xffffffff
jne 0x42e924
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42eb0b
push 0x11
pop esi
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
imul eax, ecx
mov ecx, dword [ebp - 0x24]
imul eax, ecx
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x35
sub eax, ecx
mov ecx, dword [ebp - 0x24]
lea eax, [eax + ecx - 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
imul eax, ecx
push 0xffffffffffffffe5
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x24]
sub ecx, eax
mov eax, dword [ebp - 0x24]
sub ecx, eax
mov eax, dword [ebp - 0x24]
sub ecx, eax
mov eax, dword [ebp - 0x24]
sub ecx, eax
add ecx, dword [ebp - 0x24]
push 5
add ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x24], eax
add dword [ebp - 0x24], 0x2a
mov eax, dword [ebp - 0x24]
cdq
pop ecx
idiv ecx
push edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x2c]
sub eax, ecx
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x14], 0
cmp eax, edi
jbe 0x42e9c1
lea ecx, [ebp - 0x14]
push ecx
push edi
lea ecx, [ebp - 0x68]
call fcn.0040b7b0
mov dword [ebp - 0x38], 0x3e
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x24], 0x32
push 0x30
pop ebx
mov dword [ebp - 0x30], ebx
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0xc
add ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
cdq
push 0xffffffffffffff9c
pop edi
idiv edi
shl ecx, 2
push 0xffffffffffffffb4
sub eax, ecx
mov ecx, dword [ebp - 0x24]
sub eax, ecx
mov ecx, dword [ebp - 0x30]
sub eax, ecx
mov ecx, dword [ebp - 0x30]
sub eax, ecx
mov ecx, dword [ebp - 0x24]
lea eax, [eax + ecx - 0x1a]
add eax, dword [ebp - 0x38]
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
sub ecx, eax
add ecx, dword [ebp - 0x24]
push 0xffffffffffffffe5
add ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
imul eax, ecx
imul eax, eax, 0x1a
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
add dword [ebp - 0x24], 0xffffffa3
mov eax, dword [ebp - 0x38]
add eax, 0x15
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x38]
imul eax, ecx
and dword [ebp - 0x48], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
imul eax, ecx
mov ecx, dword [ebp - 0x24]
imul eax, ecx
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x35
sub eax, ecx
mov ecx, dword [ebp - 0x24]
lea eax, [eax + ecx - 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
imul eax, ecx
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x24]
sub ecx, eax
mov eax, dword [ebp - 0x24]
sub ecx, eax
mov eax, dword [ebp - 0x24]
sub ecx, eax
mov eax, dword [ebp - 0x24]
sub ecx, eax
add ecx, dword [ebp - 0x24]
push 5
add ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x24], eax
add dword [ebp - 0x24], 0x2a
mov eax, dword [ebp - 0x24]
pop ecx
cdq
idiv ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x68]
sub eax, ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x50]
push edi
push dword [ebp - 0x2c]
call fcn.0043fbdf
test eax, eax
jne 0x42eb13
cmp dword [ebp - 0x2c], eax
je 0x42eb00
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x42eb0b
push edi
call fcn.004106a3
pop ecx
xor al, al
call fcn.004500b9
ret
mov byte [ebp - 4], 0
cmp dword [ebp - 0x2c], 0
je 0x42eb2f
push dword [ebp - 0x2c]
xor eax, eax
lea edi, [ebp - 0x15]
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x68]
and dword [ebp - 0x2c], 0
lea eax, [edi + 4]
mov dword [ebp - 0x28], edi
cmp eax, dword [ebp - 0x64]
jae 0x42eb00
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x28]
call fcn.0042e505
test al, al
je 0x42eb00
cmp dword [ebp - 0x58], 0x4c
jne 0x42eb00
fld qword [0x473868]
fstp qword [ebp - 0x3c]
fld qword [0x4738f0]
fstp qword [ebp - 0x54]
fld qword [0x4738e8]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x54]
fld qword [ebp - 0x3c]
mov ecx, dword [ebp - 0x28]
fmul qword [0x4738e0]
lea eax, [ecx + 0x10]
fsubp st(1)
fstp qword [ebp - 0x54]
mov dword [ebp - 0x50], eax
cmp eax, dword [ebp - 0x64]
jae 0x42ec06
push 0x10
push 0x4573e8
push ecx
call fcn.004107f8
add esp, 0xc
test eax, eax
jne 0x42ec06
mov dword [ebp - 0x24], 0x43
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
imul ecx, eax
mov eax, dword [ebp - 0x24]
cdq
push 0x26
pop edi
idiv edi
sub ecx, eax
mov eax, dword [ebp - 0x24]
sub ecx, eax
mov eax, dword [ebp - 0x24]
sub ecx, eax
mov eax, dword [ebp - 0x24]
sub ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
imul eax, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
imul eax, ecx
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x28], eax
add eax, 4
cmp eax, dword [ebp - 0x64]
jae 0x42ec06
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
call fcn.0042e505
test al, al
jne 0x42ec18
cmp dword [ebp - 0x68], 0
je 0x42eb0b
push dword [ebp - 0x68]
jmp 0x42eb05
mov cl, byte [ebp - 0x40]
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
imul eax, edx
mov edx, dword [ebp - 0x24]
imul eax, edx
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x35
sub eax, edx
mov edx, dword [ebp - 0x24]
lea eax, [eax + edx - 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
imul eax, edx
push 0xffffffffffffffe5
pop edx
sub edx, eax
mov eax, dword [ebp - 0x24]
sub edx, eax
mov eax, dword [ebp - 0x24]
sub edx, eax
mov eax, dword [ebp - 0x24]
sub edx, eax
mov eax, dword [ebp - 0x24]
sub edx, eax
add edx, dword [ebp - 0x24]
jmp 0x4880c8