Function at 0x451ff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e3d48
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x5c], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x58], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x54], edx
mov dword [esp + 0x60], ecx
xor ebx, ebx
mov dword [esp + 0x90], ebx
cmp dword [eax + 0x18], 8
jb 0x45205e
mov eax, dword [eax + 4]
jmp 0x452061
add eax, 4
push ebx
push 0x80
push 3
push ebx
push 1
push 0x120089
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x45238e
push ebx
lea edx, [esp + 0x20]
push edx
push 4
lea eax, [esp + 0x40]
push eax
push esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x452387
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
seta al
cmp al, bl
je 0x452387
cmp ecx, 4
jne 0x452387
mov eax, ecx
mov ecx, str.GMUT
lea edx, [esp + 0x34]
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x4520e8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4520d0
cmp eax, ebx
je 0x45214d
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x452137
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x452149
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x452137
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x452149
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x452137
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x452149
movzx ecx, byte [ecx]
movzx esi, byte [edx]
sub esi, ecx
je 0x452149
cmp esi, ebx
mov esi, dword [esp + 0x14]
mov eax, 1
jg 0x45214f
or eax, 0xffffffff
jmp 0x45214f
mov esi, dword [esp + 0x14]
xor eax, eax
cmp eax, ebx
jne 0x452387
push ebx
lea edx, [esp + 0x20]
push edx
push 1
lea eax, [esp + 0x1f]
push eax
push esi
mov byte [esp + 0x27], bl
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x452387
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
seta al
cmp al, bl
je 0x452387
cmp ecx, 1
jne 0x452387
cmp byte [esp + 0x13], bl
je 0x452387
mov esi, vtable.GameMgr::GMBuffer_unsigned_char_.0
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x90], cl
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
lea ebx, [esp + 0x1c]
call fcn.0044f780
add esp, 8
test al, al
je 0x45231e
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
jbe 0x452230
mov eax, dword [esp + 0x28]
mov edi, dword [eax + ebx]
mov ecx, edi
shr ecx, 1
add ebx, 4
push ecx
lea ecx, [eax + ebx]
lea eax, [esp + 0x68]
call fcn.0043d580
lea edx, [esp + 0x64]
mov byte [esp + 0x90], 2
mov esi, dword [esp + 0x18]
push edx
call fcn.0040fe40
lea esi, [esp + 0x64]
add ebx, edi
mov byte [esp + 0x90], 1
call fcn.00405c10
cmp ebx, dword [esp + 0x2c]
jb 0x4521e1
mov esi, vtable.GameMgr::GMBuffer_unsigned_char_.0
mov eax, dword [esp + 0x5c]
push eax
lea ecx, [esp + 0x34]
push ecx
lea ebx, [esp + 0x1c]
call fcn.0044f780
add esp, 8
test al, al
je 0x45231e
cmp byte [esp + 0x13], 2
jb 0x452371
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x98], 3
call fcn.0044f780
add esp, 8
test al, al
je 0x452315
cmp dword [esp + 0x18], 0
jbe 0x4522be
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x48], ecx
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], 0
call fcn.004584f0
mov ecx, dword [esp + 0x60]
push ecx
lea edx, [esp + 0x34]
push edx
lea ebx, [esp + 0x1c]
call fcn.0044f780
add esp, 8
test al, al
je 0x452315
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x98], 4
call fcn.0044f780
add esp, 8
test al, al
jne 0x452332
lea ecx, [esp + 0x64]
call fcn.0042dd30
lea ecx, [esp + 0x38]
call fcn.0042dd30
lea ecx, [esp + 0x20]
call fcn.0042dd30
lea esi, [esp + 0x14]
call fcn.004315a0
jmp 0x45238e
cmp dword [esp + 0x18], 0
jbe 0x45235f
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0
call fcn.00458220
lea ecx, [esp + 0x64]
call fcn.0042dd30
lea ecx, [esp + 0x38]
call fcn.0042dd30
lea ecx, [esp + 0x20]
call fcn.0042dd30
lea esi, [esp + 0x14]
call fcn.004315a0
mov al, 1
jmp 0x452390
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.005b88a9
mov esp, ebp
pop ebp
ret 0x10