Function at 0x40eb86
Capabilities:
Read file on windows

Disassembly:
push 0x54
mov eax, 0x4631df
call fcn.0044b830
mov ebx, ecx
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp + 0x18]
xor edi, edi
cmp eax, ecx
mov dword [ebp - 4], edi
jb 0x40ec19
cmp dword [ebp + 0x10], ecx
ja 0x40ec19
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.0040e8bf
mov eax, dword [eax]
push edi
push edi
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x20]
mov esi, eax
cmp esi, 0xffffffff
sete byte [ebp - 0xd]
add ecx, 0xfffffff0
mov dword [ebp - 0x18], esi
call fcn.004010b0
cmp byte [ebp - 0xd], 0
jne 0x40ec19
lea ecx, [ebp - 0x40]
call fcn.0043807b
push edi
push 0x9002
push dword [ebp + 8]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004384ac
test eax, eax
jne 0x40ec2e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00438177
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010b0
xor eax, eax
call fcn.0044b908
ret 0x20
push dword [ebp + 0x10]
mov ecx, ebx
push esi
call fcn.0040e3d8
push dword [ebp + 0x18]
mov ecx, ebx
push esi
mov dword [ebp - 0x1c], eax
call fcn.0040e3d8
push 0x989680
mov dword [ebp + 0x18], eax
call fcn.004279df
pop ecx
push edi
push edi
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x40]
push edi
lea ecx, [ebp - 0x40]
call dword [eax + 0x28]
cmp dword [ebx + 0x10c], edi
je 0x40edac
cmp dword [ebp + 0x20], edi
je 0x40edac
cmp dword [ebx + 8], edi
je 0x40ecc2
cmp dword [ebp + 0x1c], edi
jne 0x40ecc2
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
push eax
mov ecx, ebx
call fcn.0040e8f6
push dword [ebp - 0x18]
mov esi, eax
push dword [ebp + 0x14]
lea edi, [ebp - 0x50]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60]
push eax
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call fcn.0040e8f6
mov esi, eax
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x48]
mov esi, dword [ebp - 0x18]
xor edi, edi
jmp 0x40ed15
mov eax, dword [ebx + 0x14]
sub eax, dword [ebx + 0x104]
test eax, eax
mov dword [ebp + 0x20], eax
fild dword [ebp + 0x20]
jge 0x40ecdb
fadd qword [0x46c6b8]
mov ecx, ebx
fstp qword [ebp - 0x28]
call fcn.0040e089
test eax, eax
mov dword [ebp + 0x20], eax
fild dword [ebp + 0x20]
jge 0x40ecf5
fadd qword [0x46c6b8]
mov eax, dword [ebp + 0x18]
fdivr qword [ebp - 0x28]
sub eax, dword [ebp - 0x1c]
test eax, eax
mov dword [ebp + 0x20], eax
fild dword [ebp + 0x20]
jge 0x40ed0e
fadd qword [0x46c6b8]
fdivrp st(1)
call fcn.0044bc16
push edi
mov dword [ebp + 0x20], eax
mov eax, dword [ebx + 0x100]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebx + 0x108]
mov ecx, dword [ebx + 0x100]
push edi
lea edx, [ebp - 0x14]
push edx
sub eax, ecx
push eax
push dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
call esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x40]
push dword [ebp + 0x10]
call fcn.00437dc9
mov eax, dword [ebx + 0x104]
mov ecx, dword [ebx + 0x108]
push edi
lea edx, [ebp - 0x14]
push edx
sub eax, ecx
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call esi
mov ecx, dword [ebx + 0x10c]
mov eax, dword [ebx + 0x104]
mov ebx, dword [ebx + 0x100]
push dword [ebp + 0x10]
sub eax, ebx
sub eax, dword [ebp - 0x1c]
push ecx
add eax, dword [ebp + 0x18]
push eax
push dword [ebp + 0x20]
call fcn.0040dff8
add esp, 0x10
push dword [ebp - 0x14]
lea ecx, [ebp - 0x40]
push dword [ebp + 0x10]
call fcn.00437dc9
jmp 0x40edb2
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
lea eax, [ebx + 0x989680]
cmp eax, dword [ebp + 0x18]
push edi
lea eax, [ebp - 0x14]
push eax
jae 0x40edd9
push 0x989680
jmp 0x40eddf
mov eax, dword [ebp + 0x18]
sub eax, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x14]
add ebx, dword [ebp - 0x14]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x40]
call fcn.00437dc9
cmp dword [ebp - 0x14], 0x989680
je 0x40edc2
cmp dword [ebp + 0x24], edi
je 0x40ee16
push 0x80
push dword [ebp + 0x24]
lea ecx, [ebp - 0x40]
call fcn.00437dc9
push dword [ebp + 0x10]
call fcn.004279da
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.00438019
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00438177
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010b0
xor eax, eax
inc eax
jmp 0x40ec26