Function at 0x42f2b2
Capabilities:
Get file size

Disassembly:
push 0x54
mov eax, 0x457da3
call fcn.00453925
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 4], ebx
call fcn.0043f3e9
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [eax + 0x50]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0x41
mov dword [ebp - 0x2c], 0x55
mov dword [ebp - 0x3c], 0x20
mov eax, dword [ebp - 0x2c]
push 0x17
pop ecx
sub ecx, eax
add ecx, dword [ebp - 0x3c]
add ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x1c]
imul eax, eax, 0x55
imul ecx, ecx, 0x4e
sub ecx, eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
imul eax, edx
shl eax, 6
add ecx, eax
mov eax, dword [ebp - 0x1c]
sub ecx, eax
mov eax, dword [ebp - 0x1c]
sub ecx, eax
mov eax, dword [ebp - 0x3c]
sub ecx, eax
add ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
lea eax, [ecx + eax + 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, 0xffffff7a
sub ecx, eax
mov eax, dword [ebp - 0x1c]
sub ecx, eax
add ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x1c], ecx
jne 0x42f37f
push 0xffffffffffffffff
mov byte [ebp - 4], bl
call fcn.0044115d
jmp 0x42f76f
push ebx
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
fld qword [0x477a58]
fstp qword [ebp - 0x20]
mov esi, eax
fld qword [0x477a50]
fstp qword [ebp - 0x30]
fld qword [0x4779d8]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x20]
fld qword [ebp - 0x30]
fucompp
fnstsw ax
fld qword [0x477a48]
test ah, 0x44
jnp 0x42f426
fld qword [ebp - 0x30]
fmul qword [ebp - 0x20]
fmul qword [0x477a40]
fld qword [ebp - 0x40]
fmul qword [0x477a38]
fsubp st(1)
fld qword [ebp - 0x40]
fdiv st(2)
faddp st(1)
fsub qword [ebp - 0x40]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fmul qword [0x477a30]
fadd qword [ebp - 0x40]
fadd qword [ebp - 0x40]
faddp st(1)
fadd qword [ebp - 0x30]
fld qword [ebp - 0x40]
fmul qword [0x477a28]
fsubp st(1)
fadd qword [ebp - 0x30]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x30]
fadd qword [ebp - 0x30]
fsub qword [ebp - 0x40]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x30]
fmul qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [ebp - 0x20]
faddp st(1)
fadd qword [ebp - 0x40]
fstp qword [ebp - 0x30]
jmp 0x42f428
fstp st(0)
mov byte [ebp - 0x10], bl
cmp esi, ebx
jbe 0x42f440
lea ecx, [ebp - 0x10]
xor eax, eax
push ecx
push eax
mov eax, esi
lea ecx, [ebp - 0x60]
call fcn.0040c50a
lea eax, [ebp - 0x48]
push eax
push esi
push dword [ebp - 0x60]
mov esi, dword [ebp - 0x34]
push esi
mov dword [ebp - 0x48], ebx
call fcn.00440fda
mov byte [ebp - 4], bl
test eax, eax
jne 0x42f476
cmp esi, ebx
je 0x42f465
push esi
call fcn.0044115d
cmp dword [ebp - 0x60], ebx
je 0x42f76f
push dword [ebp - 0x60]
jmp 0x42f769
cmp esi, ebx
je 0x42f486
xor eax, eax
lea edi, [ebp - 0x11]
push esi
stosb byte es:[edi], al
call fcn.0044115d
mov eax, dword [ebp - 0x60]
fld qword [0x477a58]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], ebx
fstp qword [ebp - 0x20]
fld qword [0x477a50]
fstp qword [ebp - 0x30]
fld qword [0x4779d8]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x20]
fld qword [ebp - 0x30]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x42f52a
fld qword [ebp - 0x30]
fmul qword [ebp - 0x20]
fmul qword [0x477a40]
fld qword [ebp - 0x40]
fmul qword [0x477a38]
fsubp st(1)
fld qword [ebp - 0x40]
fld qword [0x477a48]
fdiv st(1), st(0)
fxch st(2)
faddp st(1)
fsub qword [ebp - 0x40]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fmul qword [0x477a30]
fadd qword [ebp - 0x40]
fadd qword [ebp - 0x40]
faddp st(1)
fadd qword [ebp - 0x30]
fld qword [ebp - 0x40]
fmul qword [0x477a28]
fsubp st(1)
fadd qword [ebp - 0x30]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x30]
fadd qword [ebp - 0x30]
fsub qword [ebp - 0x40]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x30]
fmul qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [ebp - 0x20]
faddp st(1)
fadd qword [ebp - 0x40]
fstp qword [ebp - 0x30]
mov edi, dword [ebp - 0x60]
lea eax, [edi + 4]
cmp eax, dword [ebp - 0x5c]
jae 0x42f764
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x24]
call fcn.0042f096
cmp al, bl
je 0x42f764
cmp dword [ebp - 0x4c], 0x4c
jne 0x42f764
mov eax, dword [ebp - 0x24]
lea esi, [eax + 0x10]
cmp esi, dword [ebp - 0x5c]
jae 0x42f764
push 0x10
push 0x45b3c8
push eax
call fcn.004118b7
add esp, 0xc
test eax, eax
jne 0x42f764
mov dword [ebp - 0x24], esi
add esi, 4
cmp esi, dword [ebp - 0x5c]
jae 0x42f764
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x24]
call fcn.0042f096
cmp al, bl
je 0x42f764
mov eax, dword [ebp - 0x50]
test al, 1
je 0x42f764
shr eax, 7
test al, 1
je 0x42f764
lea eax, [edi + 0x4c]
mov dword [ebp - 0x24], eax
add eax, 2
cmp eax, dword [ebp - 0x5c]
jae 0x42f764
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x24]
call fcn.0042f168
cmp al, bl
je 0x42f764
mov dword [ebp - 0x1c], 0x5a
mov eax, dword [ebp - 0x1c]
push 0x43
pop ecx
sub ecx, eax
add ecx, dword [ebp - 0x1c]
push 0x47
mov dword [ebp - 0x1c], ecx
pop edi
add dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x1c]
push 0xffffffffffffff9f
pop ecx
sub ecx, eax
add ecx, dword [ebp - 0x1c]
push 0x31
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
imul eax, eax, 0x48
sub eax, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cdq
pop ecx
idiv ecx
push 0x16
pop esi
push 0x42
mov ecx, eax
mov eax, dword [ebp - 0x1c]
imul ecx, eax
mov eax, dword [ebp - 0x1c]
cdq
idiv esi
add ecx, eax
mov eax, dword [ebp - 0x1c]
lea eax, [ecx + eax - 0x5a]
add eax, dword [ebp - 0x1c]
pop ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cdq
idiv ecx
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sub eax, 0x29
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
imul eax, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x1f
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add eax, 2
cmp eax, dword [ebp - 0x5c]
jae 0x42f465
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x24]
call fcn.0042f168
cmp al, bl
je 0x42f465
fld qword [0x4779b8]
fstp qword [ebp - 0x40]
fld qword [0x4779b0]
fstp qword [ebp - 0x40]
fld qword [0x4779a8]
fstp qword [ebp - 0x30]
fld qword [0x4779a0]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x30]
fcomp qword [ebp - 0x40]
fnstsw ax
test ah, 5
jp 0x42f6d4
fld qword [ebp - 0x20]
fadd qword [ebp - 0x40]
fsub qword [0x477998]
fsub qword [ebp - 0x30]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fsub qword [0x477990]
fstp qword [ebp - 0x40]
cmp word [ebp - 0x44], bx
je 0x42f465
movzx esi, word [ebp - 0x44]
add esi, dword [ebp - 0x24]
lea eax, [esi - 2]
cmp eax, dword [ebp - 0x5c]
jae 0x42f465
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
imul eax, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax - 0x48]
add eax, dword [ebp - 0x1c]
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
imul eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
sub eax, 0x59
mov dword [ebp - 0x1c], eax
add dword [ebp - 0x1c], 0xffffffe6
mov ecx, dword [ebp - 0x44]
push dword [ebp - 0x24]
add ecx, 0xfffffffe
call fcn.0042f1e1
pop ecx
pop ecx
test al, al
jne 0x42f752
add esi, 0xfffffffe
mov dword [ebp - 0x24], esi
jmp 0x42f663
cmp dword [ebp - 0x60], ebx
je 0x42f760
push dword [ebp - 0x60]
call fcn.00411762
pop ecx
mov al, 1
jmp 0x42f771
cmp edi, ebx
je 0x42f76f
push edi
call fcn.00411762
pop ecx
xor al, al
call fcn.004539fd
ret