Function at 0x49ea08
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x51daf2
call fcn.004edf30
sub esp, 0x418
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
jne 0x49ea2a
xor al, al
jmp 0x49ec29
mov ecx, dword [esi + 0x38]
lea eax, [esi + 0x34]
push ebx
mov dword [ebp - 0x20], eax
mov ebx, dword [eax]
cmp ebx, ecx
je 0x49ea5c
mov ecx, dword [ebx]
test ecx, ecx
mov dword [ebp + 8], ecx
je 0x49ea54
call fcn.0049e933
push dword [ebp + 8]
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0x20]
pop ecx
add ebx, 4
cmp ebx, dword [esi + 0x38]
jne 0x49ea3a
mov ecx, eax
call fcn.00483200
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edi
push 1
lea eax, [ebp - 0x24]
pop ebx
mov dword [ebp - 0x24], 0x3e8
push ebx
push 4
push eax
call esi
and dword [ebp - 0x1c], 0
push edi
push ebx
lea eax, [ebp - 0x1c]
push 2
push eax
call esi
and dword [ebp - 0x18], 0
add esp, 0x20
cmp word [ebp - 0x1c], 0
jbe 0x49ec26
push 0x38
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
test eax, eax
je 0x49eab9
mov ecx, eax
call fcn.0049ec39
jmp 0x49eabb
xor eax, eax
or dword [ebp - 4], 0xffffffff
and dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
push edi
push ebx
lea eax, [ebp + 8]
push 2
push eax
call esi
movzx eax, word [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x424]
push ebx
push eax
call esi
movzx eax, word [ebp + 8]
and byte [ebp + eax - 0x424], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x424]
push eax
call sub.MSVCRT.dll_strlen
mov ecx, dword [ebp - 0x14]
add esp, 0x24
lea eax, [ebp + eax - 0x424]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.0040928f
push edi
push ebx
lea eax, [ebp + 8]
push 2
push eax
call esi
movzx eax, word [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x424]
push ebx
push eax
call esi
movzx eax, word [ebp + 8]
and byte [ebp + eax - 0x424], 0
mov eax, dword [ebp - 0x10]
add eax, 0xc
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x424]
push eax
call sub.MSVCRT.dll_strlen
mov ecx, dword [ebp - 0x14]
add esp, 0x24
lea eax, [ebp + eax - 0x424]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.0040928f
push edi
push ebx
lea eax, [ebp + 8]
push 2
push eax
call esi
movzx eax, word [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x424]
push ebx
push eax
call esi
movzx eax, word [ebp + 8]
and byte [ebp + eax - 0x424], 0
mov eax, dword [ebp - 0x10]
add eax, 0x18
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x424]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x24
lea eax, [ebp + eax - 0x424]
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.0040928f
mov eax, dword [ebp - 0x10]
push edi
push 4
add eax, 0x24
push ebx
push eax
call esi
mov eax, dword [ebp - 0x10]
push edi
push 4
add eax, 0x28
push ebx
push eax
call esi
mov eax, dword [ebp - 0x10]
push edi
push 4
add eax, 0x2c
push ebx
push eax
call esi
mov eax, dword [ebp - 0x10]
push edi
push 4
add eax, 0x30
push ebx
push eax
call esi
mov eax, dword [ebp - 0x10]
add esp, 0x40
add eax, 0x34
push edi
push 4
push ebx
push eax
call esi
mov ecx, dword [ebp - 0x20]
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
call fcn.004c5d97
inc dword [ebp - 0x18]
mov ax, word [ebp - 0x18]
cmp ax, word [ebp - 0x1c]
jb 0x49ea9d
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4