Function at 0x41dc80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c4258
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4ea6c4]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x4ea6c4]
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.0040c7a0
xor edi, edi
test al, al
jne 0x41dd34
push edi
push 0x4cb7f8
lea esi, [esp + 0x40]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], edi
mov word [esp + 0x44], di
call fcn.00401700
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 0x41df2e
mov eax, dword [esp + 0x3c]
push eax
call fcn.004abbe4
add esp, 4
jmp 0x41df2e
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 0x41df2e
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 0x41df2e
mov ecx, dword [esp + 0x10]
cmp ecx, edi
seta al
test al, al
je 0x41df2e
cmp ecx, 8
jne 0x41df2e
movzx ecx, byte [esp + 0x70]
mov eax, 0x47
sub eax, ecx
jne 0x41ddb7
movzx edx, byte [esp + 0x71]
mov eax, 0x4d
sub eax, edx
jne 0x41ddb7
movzx ecx, byte [esp + 0x72]
mov eax, 0x5a
sub eax, ecx
je 0x41ddc5
cmp eax, edi
mov ecx, 1
jg 0x41ddc7
or ecx, 0xffffffff
jmp 0x41ddc7
xor ecx, ecx
cmp ecx, edi
jne 0x41df2e
mov al, byte [esp + 0x73]
cmp al, 1
mov byte [ebx + 0xa8], al
jbe 0x41ddf3
mov edx, dword [ebx]
mov eax, dword [edx + 0x38]
push edi
push 3
push 0x30000001
mov ecx, ebx
call eax
jmp 0x41df2e
mov eax, dword [esp + 0x74]
cmp eax, 0x3200000
mov dword [esp + 0x2c], eax
jbe 0x41de18
mov edx, dword [ebx]
mov eax, dword [edx + 0x38]
push edi
push 4
push 0x30000001
mov ecx, ebx
call eax
jmp 0x41df2e
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.00401c50
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.0040c710
test al, al
jne 0x41de9c
mov edx, 0x4cb7f8
lea eax, [esp + 0x54]
call fcn.004016b0
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.00449530
jmp 0x41df25
cmp dword [esp + 0x10], edi
je 0x41deb6
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
push 0
push 8
push 0x30000001
mov ecx, ebx
call edx
jmp 0x41df25
mov eax, dword [esp + 0x18]
cmp edi, eax
mov dword [esp + 0x20], eax
ja 0x41dec6
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.0041d520
test al, al
je 0x41df13
cmp dword [esp + 0x24], edi
jne 0x41df13
mov ecx, esi
mov byte [ebx + 0x100], 1
call fcn.0041d7d0
lea ecx, [esp + 0x14]
mov dword [ebx + 0x118], eax
mov dword [ebx + 0x11c], edx
call fcn.00401bb0
mov al, 1
jmp 0x41df30
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.00401bb0
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.004abc64
mov esp, ebp
pop ebp
ret 4