Function at 0x50a8fc
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x5ff73e
call fcn.0059d590
sub esp, 0x41c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esp
test edi, edi
mov dword [ebp - 0x18], esi
jne 0x50a925
xor al, al
jmp 0x50ab80
mov ebx, dword [esi + 0x40]
cmp ebx, dword [esi + 0x44]
mov dword [ebp - 0x1c], ebx
je 0x50a988
mov ecx, dword [ebx]
test ecx, ecx
mov dword [ebp - 0x14], ecx
je 0x50a983
and dword [ebp - 4], 0
test ecx, ecx
je 0x50a97c
call fcn.0050a3a7
push dword [ebp - 0x14]
call sub.MFC42.DLL_operatordelete
pop ecx
jmp 0x50a97c
or dword [ebp - 4], 0xffffffff
and dword [ebx], 0
add ebx, 4
jmp 0x50a928
lea ecx, [esi + 0x40]
mov dword [ebp - 0x28], ecx
call fcn.0051fb0c
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 - 0x20], 0
push edi
push ebx
lea eax, [ebp - 0x20]
push 2
push eax
call esi
and dword [ebp - 0x1c], 0
add esp, 0x20
cmp word [ebp - 0x20], 0
jbe 0x50ab7e
push 0x38
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
mov dword [ebp - 4], 2
je 0x50a9ec
mov ecx, eax
call fcn.0050a73d
jmp 0x50a9ee
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x50aa1a
push 0x115
push str.E:CQ2ClientRelease_18.26.83DGameMapAoxPuzzle.cpp
push str.pGroup
push str.ASSERT
push 0x6765b8
call fcn.005950cb
add esp, 0x14
and dword [ebp + 8], 0
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 - 0x428]
push ebx
push eax
call esi
movzx eax, word [ebp + 8]
and byte [ebp + eax - 0x428], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x428]
push eax
call sub.MSVCRT.dll_strlen
mov ecx, dword [ebp - 0x18]
add esp, 0x24
lea eax, [ebp + eax - 0x428]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.004029af
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 - 0x428]
push ebx
push eax
call esi
movzx eax, word [ebp + 8]
and byte [ebp + eax - 0x428], 0
mov eax, dword [ebp - 0x14]
add eax, 0xc
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x428]
push eax
call sub.MSVCRT.dll_strlen
mov ecx, dword [ebp - 0x18]
add esp, 0x24
lea eax, [ebp + eax - 0x428]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.004029af
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 - 0x428]
push ebx
push eax
call esi
movzx eax, word [ebp + 8]
and byte [ebp + eax - 0x428], 0
mov eax, dword [ebp - 0x14]
add eax, 0x18
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x428]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x24
lea eax, [ebp + eax - 0x428]
push eax
lea eax, [ebp - 0x428]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.004029af
mov eax, dword [ebp - 0x14]
push edi
push 4
add eax, 0x24
push ebx
push eax
call esi
mov eax, dword [ebp - 0x14]
push edi
push 4
add eax, 0x28
push ebx
push eax
call esi
mov eax, dword [ebp - 0x14]
push edi
push 4
add eax, 0x2c
push ebx
push eax
call esi
mov eax, dword [ebp - 0x14]
push edi
push 4
add eax, 0x30
push ebx
push eax
call esi
mov eax, dword [ebp - 0x14]
add esp, 0x40
add eax, 0x34
push edi
push 4
push ebx
push eax
call esi
mov ecx, dword [ebp - 0x28]
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
call fcn.004dd675
inc dword [ebp - 0x1c]
mov ax, word [ebp - 0x1c]
cmp ax, word [ebp - 0x20]
jb 0x50a9cd
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4