Function at 0x50a4a8
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x5ff70a
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 0x50a4d1
xor al, al
jmp 0x50a72c
mov ebx, dword [esi + 0x34]
cmp ebx, dword [esi + 0x38]
mov dword [ebp - 0x1c], ebx
je 0x50a534
mov ecx, dword [ebx]
test ecx, ecx
mov dword [ebp - 0x14], ecx
je 0x50a52f
and dword [ebp - 4], 0
test ecx, ecx
je 0x50a528
call fcn.0050a3a7
push dword [ebp - 0x14]
call sub.MFC42.DLL_operatordelete
pop ecx
jmp 0x50a528
or dword [ebp - 4], 0xffffffff
and dword [ebx], 0
add ebx, 4
jmp 0x50a4d4
lea ecx, [esi + 0x34]
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 0x50a72a
push 0x38
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
mov dword [ebp - 4], 2
je 0x50a598
mov ecx, eax
call fcn.0050a73d
jmp 0x50a59a
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x50a5c6
push 0xb3
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 0x50a579
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4