Function at 0x45eed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5eb818
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x64c874]
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.00431680
xor edi, edi
test al, al
jne 0x45ef84
push edi
push 0x6190bc
lea esi, [esp + 0x40]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], edi
mov word [esp + 0x44], di
call fcn.00402770
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 0x45f19a
mov eax, dword [esp + 0x3c]
push eax
call fcn.0059b877
add esp, 4
jmp 0x45f19a
xor eax, eax
mov dword [esp + 0x71], eax
mov word [esp + 0x75], ax
mov byte [esp + 0x77], al
mov eax, dword [esi]
cmp eax, 0xffffffff
mov byte [esp + 0x70], 0
je 0x45f19a
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
je 0x45f19a
mov ecx, dword [esp + 0x10]
cmp ecx, edi
seta al
test al, al
je 0x45f19a
cmp ecx, 8
jne 0x45f19a
movzx ecx, byte [esp + 0x70]
mov eax, 0x47
sub eax, ecx
jne 0x45f007
movzx edx, byte [esp + 0x71]
mov eax, 0x4d
sub eax, edx
jne 0x45f007
movzx ecx, byte [esp + 0x72]
mov eax, 0x5a
sub eax, ecx
je 0x45f015
cmp eax, edi
mov ecx, 1
jg 0x45f017
or ecx, 0xffffffff
jmp 0x45f017
xor ecx, ecx
cmp ecx, edi
jne 0x45f19a
mov al, byte [esp + 0x73]
cmp al, 1
mov byte [ebx + 0xa8], al
jbe 0x45f043
mov edx, dword [ebx]
mov eax, dword [edx + 0x38]
push edi
push 3
push 0x30000001
mov ecx, ebx
call eax
jmp 0x45f19a
mov eax, dword [esp + 0x74]
cmp eax, 0x3200000
mov dword [esp + 0x2c], eax
jbe 0x45f068
mov edx, dword [ebx]
mov eax, dword [edx + 0x38]
push edi
push 4
push 0x30000001
mov ecx, ebx
call eax
jmp 0x45f19a
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.0042dd60
mov dword [esp + 0x88], 1
mov ecx, dword [esp + 0x1c]
xor esi, esi
cmp ecx, esi
je 0x45f0cf
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
cmp eax, 0xffffffff
je 0x45f0cf
mov edi, dword [esp + 0x2c]
push esi
lea edx, [esp + 0x14]
push edx
push edi
push ecx
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45f0cf
mov ecx, dword [esp + 0x10]
cmp ecx, esi
seta al
test al, al
jne 0x45f10f
mov edx, 0x6190bc
lea eax, [esp + 0x54]
call fcn.004024d0
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 eax, [esp + 0x58]
push eax
push 0x10000002
mov ecx, ebx
call edx
lea esi, [esp + 0x54]
call fcn.00405c10
jmp 0x45f191
cmp ecx, edi
je 0x45f126
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
push esi
push 8
push 0x30000001
mov ecx, ebx
call edx
jmp 0x45f191
mov eax, dword [esp + 0x18]
cmp edi, eax
mov dword [esp + 0x20], eax
ja 0x45f136
mov dword [esp + 0x20], edi
lea eax, [esp + 0x24]
mov dword [esp + 0x24], esi
push eax
lea ecx, [esp + 0x18]
lea esi, [ebx + 8]
push ecx
mov ecx, esi
call fcn.0045e960
test al, al
je 0x45f17f
cmp dword [esp + 0x24], edi
jne 0x45f17f
mov ecx, esi
mov byte [ebx + 0xf0], 1
call fcn.0045ec00
lea ecx, [esp + 0x14]
mov dword [ebx + 0x108], eax
mov dword [ebx + 0x10c], edx
call fcn.0042dd30
mov al, 1
jmp 0x45f19c
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.0042dd30
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.005b88a9
mov esp, ebp
pop ebp
ret 4