Function at 0x4404a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x510d98
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea edi, [esp + 0x2c]
mov eax, esi
mov ebx, ecx
mov dword [esp + 0x28], esi
call fcn.0043ebf0
xor edi, edi
test al, al
jne 0x440554
push edi
push 0x51a1d4
lea esi, [esp + 0x40]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], edi
mov word [esp + 0x44], di
call fcn.00407330
mov dword [esp + 0x88], edi
mov esi, dword [ebx]
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
lea eax, [esp + 0x3c]
push eax
push 0x10000002
mov ecx, ebx
call edx
cmp dword [esp + 0x50], 8
jb 0x44075a
mov eax, dword [esp + 0x3c]
push eax
call fcn.004e7d7e
add esp, 4
jmp 0x44075a
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x71], eax
mov word [esp + 0x75], ax
mov byte [esp + 0x77], al
mov eax, dword [esi]
cmp eax, 0xffffffff
mov dword [esp + 0x10], ecx
mov byte [esp + 0x70], cl
je 0x44074a
push edi
lea ecx, [esp + 0x14]
push ecx
push 8
lea edx, [esp + 0x7c]
push edx
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov ecx, dword [esp + 0x10]
je 0x44074a
cmp ecx, edi
seta al
test al, al
je 0x44074a
cmp ecx, 8
jne 0x44074a
movzx ecx, byte [esp + 0x70]
mov eax, 0x47
sub eax, ecx
jne 0x4405dc
movzx edx, byte [esp + 0x71]
mov eax, 0x4d
sub eax, edx
jne 0x4405dc
movzx ecx, byte [esp + 0x72]
mov eax, 0x5a
sub eax, ecx
je 0x4405ea
cmp eax, edi
mov ecx, 1
jg 0x4405ec
or ecx, 0xffffffff
jmp 0x4405ec
xor ecx, ecx
cmp ecx, edi
je 0x4405f8
push edi
push 3
jmp 0x44074c
mov al, byte [esp + 0x73]
cmp al, 1
mov byte [ebx + 0xa8], al
ja 0x4405f0
mov eax, dword [esp + 0x74]
cmp eax, 0x3200000
mov dword [esp + 0x2c], eax
jbe 0x44061d
push edi
push 4
jmp 0x44074c
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov edi, eax
lea esi, [esp + 0x14]
mov dword [esp + 0x14], vtable.GameMgr::GMBuffer_unsigned_char_.0
call fcn.00401110
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x88], 1
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
push edi
lea esi, [esp + 0x14]
call fcn.0043eb60
test al, al
jne 0x4406aa
mov edx, 0x51a1d4
lea eax, [esp + 0x54]
call fcn.00406ac0
mov byte [esp + 0x88], 2
mov esi, dword [ebx]
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
lea ecx, [esp + 0x58]
push ecx
push 0x10000002
mov ecx, ebx
call edx
lea esi, [esp + 0x54]
call fcn.00481d30
lea ecx, [esp + 0x14]
call fcn.00401070
jmp 0x44075a
cmp dword [esp + 0x10], edi
je 0x4406d0
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
push 0
push 8
push 0x30000001
mov ecx, ebx
call edx
lea ecx, [esp + 0x14]
call fcn.00401070
jmp 0x44075a
mov eax, dword [esp + 0x18]
cmp edi, eax
mov dword [esp + 0x20], eax
ja 0x4406e0
mov dword [esp + 0x20], edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
lea esi, [ebx + 8]
push ecx
mov ecx, esi
mov dword [esp + 0x2c], 0
call fcn.0043fcb0
test al, al
je 0x44072d
cmp dword [esp + 0x24], edi
jne 0x44072d
mov ecx, esi
mov byte [ebx + 0x100], 1
call fcn.0043ff60
lea ecx, [esp + 0x14]
mov dword [ebx + 0x118], eax
mov dword [ebx + 0x11c], edx
call fcn.00401070
mov al, 1
jmp 0x44075c
mov edx, dword [ebx]
mov eax, dword [edx + 0x38]
push 0
push 8
push 0x30000001
mov ecx, ebx
call eax
lea ecx, [esp + 0x14]
call fcn.00401070
jmp 0x44075a
push edi
push ecx
mov edx, dword [ebx]
mov eax, dword [edx + 0x38]
push 0x30000001
mov ecx, ebx
call eax
xor al, al
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004e7d6f
mov esp, ebp
pop ebp
ret 4