Function at 0x40f296
Capabilities:
Read file on windows

Disassembly:
push 0x20
mov eax, 0x463280
call fcn.0044b830
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040f1b4
call fcn.0042953a
push eax
lea ecx, [ebp - 0x14]
call fcn.00401522
push 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0040b08a
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004056b8
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.004010b0
push 0x46c710
push dword [ebp - 0x14]
call fcn.0044e6bb
test eax, eax
pop ecx
pop ecx
je 0x40f31d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010b0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010b0
mov eax, ebx
call fcn.0044b908
ret 8
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x40f54a
push 4
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.0044b3e0
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
push 2
push ebx
push ebx
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.0040df59
push ebx
push ebx
push eax
push dword [ebp - 0x10]
call edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
mov ecx, esi
call fcn.0040e09d
test eax, eax
je 0x40f3c9
or dword [esi + 0x10], 2
push 4
lea eax, [ebp - 0x18]
push eax
lea eax, [esi + 0x34]
push eax
call fcn.0044c850
mov ecx, dword [esi + 0x10c]
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp ecx, ebx
mov dword [esi + 0x104], eax
jne 0x40f3b6
mov dword [esi + 0x100], eax
cmp dword [ebp + 0xc], ebx
je 0x40f3c9
cmp ecx, ebx
je 0x40f3c9
push dword [ebp - 0x10]
mov ecx, esi
call fcn.0040e45a
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x104]
test eax, eax
mov dword [ebp + 0xc], eax
fild dword [ebp + 0xc]
jge 0x40f3e2
fadd qword [0x46c6b8]
push 2
fstp qword [ebp - 0x20]
push ebx
push 0xffffffffffffff80
push dword [ebp - 0x10]
call edi
cmp eax, 0xffffffff
je 0x40f464
push ebx
lea eax, [ebp - 0x24]
push eax
push 0x80
lea edi, [esi + 0x80]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f464
cmp dword [ebp - 0x24], 0x80
jne 0x40f464
push 3
push 0x46c6e8
push edi
call fcn.0044cd51
add esp, 0xc
test eax, eax
jne 0x40f464
lea eax, [esi + 0x30]
push eax
lea eax, [esi + 0x2c]
push eax
lea eax, [esi + 0x24]
push eax
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x20]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x1c]
push eax
push edi
call fcn.0040f02e
fld qword [ebp - 0x20]
fsub qword [0x46c708]
add esp, 0x20
or dword [esi + 0x10], 1
fstp qword [ebp - 0x20]
mov eax, dword [esi + 0x5c]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x40f47c
fild dword [ebp + 0xc]
fdivr qword [ebp - 0x20]
call fcn.0044bc16
mov dword [esi + 0x64], eax
mov edi, dword [esi + 0x10c]
cmp edi, ebx
je 0x40f502
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x100]
test eax, eax
mov dword [ebp + 0xc], eax
fild dword [ebp + 0xc]
jge 0x40f49f
fadd qword [0x46c6b8]
mov ecx, esi
fstp qword [ebp - 0x2c]
call fcn.0040e089
test eax, eax
mov dword [ebp + 0xc], eax
fild dword [ebp + 0xc]
jge 0x40f4b9
fadd qword [0x46c6b8]
cmp dword [esi + 0x38], 3
fdivr qword [ebp - 0x2c]
je 0x40f4d5
cmp dword [esi + 0x3c], 3
jne 0x40f4d5
fimul dword [esi + 0x48]
fadd st(0), st(0)
fdiv qword [0x46c700]
jmp 0x40f4f6
cmp dword [esi + 0x3c], 1
jne 0x40f4e3
fld qword [0x46c6c0]
jmp 0x40f4e9
fld qword [0x46c6a0]
fild dword [esi + 0x48]
fmulp st(2)
fmul qword [0x46c6c8]
fdivp st(1)
cmp edi, ebx
fstp qword [esi + 0x70]
je 0x40f502
fld qword [esi + 0x70]
jmp 0x40f505
fild dword [esi + 0x44]
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x40f52d
cmp edi, ebx
je 0x40f519
fld qword [esi + 0x70]
jmp 0x40f51c
fild dword [esi + 0x44]
fdivr qword [ebp - 0x20]
fmul qword [0x46c6d8]
call fcn.0044bc16
mov dword [esi + 0x68], eax
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0xc]
call fcn.004056b8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x40f2fd
mov ecx, esi
call fcn.0040f1b4
jmp 0x40f2fd