Function at 0x49ef30
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x48
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 4]
push ebp
push esi
push edi
test eax, eax
je 0x49f245
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x49ef72
push eax
jmp 0x49f23f
push 0
push 0
push 0
lea eax, [esp + 0x48]
mov esi, 0x10
push ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x49f23e
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x48]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49f23e
cmp dword [esp + 0x10], esi
jne 0x49f23e
movzx eax, byte [esp + 0x3c]
movzx ecx, byte [esp + 0x3d]
movzx edx, byte [esp + 0x3e]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x3f]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
cmp eax, 0x41542654
jne 0x49f23e
lea eax, [esi - 0xc]
lea ecx, [esp + 0x20]
call fcn.0045af00
cmp eax, 0x464f524d
jne 0x49f23e
lea eax, [esi - 4]
lea ecx, [esp + 0x20]
call fcn.0045af00
lea edi, [eax - 0x444a564d]
neg edi
sbb edi, edi
and edi, 0xfffffff4
xor eax, eax
add edi, esi
mov dword [esp + 0x10], eax
cmp dword [ebx + 0xc], eax
jle 0x49f223
mov dword [esp + 0x28], eax
push 0
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x1c], eax
cmp eax, edi
jne 0x49f23e
push 0
lea edx, [esp + 0x20]
push edx
push esi
lea eax, [esp + 0x48]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49f23e
cmp dword [esp + 0x1c], esi
jne 0x49f23e
movzx esi, byte [esp + 0x40]
movzx ecx, byte [esp + 0x41]
movzx edx, byte [esp + 0x42]
movzx eax, byte [esp + 0x43]
shl esi, 8
or esi, ecx
shl esi, 8
or esi, edx
shl esi, 8
or esi, eax
mov dword [esp + 0x2c], esi
jl 0x49f23e
movzx eax, byte [esp + 0x3c]
movzx ecx, byte [esp + 0x3d]
movzx edx, byte [esp + 0x3e]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x3f]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
cmp eax, 0x464f524d
jne 0x49f205
movzx eax, byte [esp + 0x44]
movzx edx, byte [esp + 0x45]
movzx ecx, byte [esp + 0x46]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x47]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
cmp eax, 0x444a5655
jne 0x49f205
mov eax, 0xc
lea ecx, [esp + 0x20]
call fcn.0045af00
cmp eax, 0x494e464f
jne 0x49f205
push 0
push 0
lea esi, [edi + 0x10]
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
jne 0x49f23e
push eax
mov esi, 0xe
lea ecx, [esp + 0x40]
mov edx, ebp
call fcn.0049ef00
add esp, 4
test al, al
je 0x49f23e
push 1
push 4
push 0xa
lea eax, [esp + 0x3c]
push eax
mov eax, str.2w6b
lea ecx, [esp + 0x30]
call fcn.0045ac20
movzx ecx, byte [esp + 0x37]
movzx edx, byte [esp + 0x36]
shl cx, 8
movzx eax, cx
or eax, edx
mov dword [esp + 0x14], eax
cmp eax, 0x19
jl 0x49f183
cmp eax, 0x1770
jle 0x49f18b
mov dword [esp + 0x14], 0x12c
fild dword [esp + 0x14]
mov eax, dword [ebx]
mov edx, dword [eax + 0x58]
mov ecx, ebx
fstp dword [esp + 0x14]
call edx
movzx eax, word [esp + 0x30]
mov dword [esp + 0x18], eax
mov ecx, dword [ebx + 0x10]
mov esi, dword [esp + 0x28]
fild dword [esp + 0x18]
fmulp st(1)
fdiv dword [esp + 0x14]
fstp qword [esi + ecx + 0x10]
mov edx, dword [ebx]
mov eax, dword [edx + 0x58]
mov ecx, ebx
call eax
test byte [esp + 0x39], 4
movzx ecx, word [esp + 0x32]
mov dword [esp + 0x18], ecx
mov edx, dword [ebx + 0x10]
fild dword [esp + 0x18]
fmulp st(1)
fdiv dword [esp + 0x14]
fstp qword [esi + edx + 0x18]
je 0x49f1f6
mov eax, dword [ebx + 0x10]
fld qword [eax + esi + 0x10]
add eax, esi
fld qword [eax + 0x18]
fstp qword [eax + 0x10]
fstp qword [eax + 0x18]
inc dword [esp + 0x10]
add esi, 0x20
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov ecx, esi
and ecx, 1
add ecx, esi
lea edi, [edi + ecx + 8]
cmp edx, dword [ebx + 0xc]
jge 0x49f223
mov esi, 0x10
jmp 0x49f034
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0065865c
add esp, 0x48
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
xor ecx, esp
xor al, al
call fcn.0065865c
add esp, 0x48
ret