Function at 0x46cc50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e3929
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [eax + 4], esi
mov dword [esp + 0x18], eax
mov eax, dword [eax]
cmp dword [eax], 0xffffffff
je 0x46ce2f
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.00431680
test al, al
je 0x46ce2f
mov ebx, dword [esp + 0x20]
cmp ebx, esi
mov edi, dword [esp + 0x1c]
ja 0x46cce3
jb 0x46ccd3
cmp edi, 2
jae 0x46cce3
mov eax, dword [esp + 0x18]
mov dword [eax + 4], 1
jmp 0x46cd74
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
mov dword [esp + 0x1c], esi
cmp dword [eax], 0xffffffff
je 0x46ce2f
push esi
lea edx, [esp + 0x20]
push edx
push 2
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], esi
mov edx, dword [eax]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46ce2f
mov ecx, dword [esp + 0x1c]
test ecx, ecx
seta al
test al, al
je 0x46ce2f
cmp ecx, 2
jne 0x46ce2f
mov al, byte [esp + 0x14]
cmp al, 0xff
jne 0x46cd5a
cmp byte [esp + 0x15], 0xfe
jne 0x46cd69
mov eax, dword [esp + 0x18]
mov dword [eax + 4], 4
mov esi, ecx
jmp 0x46cd74
cmp al, 0xfe
jne 0x46cd69
cmp byte [esp + 0x15], 0xff
je 0x46ce2f
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], 1
mov edx, dword [esp + 0x18]
mov eax, 0
push eax
push eax
sub edi, esi
sbb ebx, eax
mov eax, dword [edx]
push esi
lea esi, [esp + 0x28]
call fcn.004316d0
test al, al
je 0x46ce2f
xor eax, eax
lea esi, [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], vtable.GameMgr::GMBuffer_unsigned_char_.0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.0042dd60
push edi
mov dword [esp + 0xb4], 0
mov eax, dword [esp + 0x28]
push 0
push eax
call fcn.005be600
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov ecx, dword [ecx]
add esp, 0xc
lea esi, [esp + 0x2c]
mov edx, edi
call fcn.00431600
test al, al
je 0x46ce26
xor esi, esi
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], esi
mov word [esp + 0x6c], si
mov edx, dword [esp + 0x18]
mov byte [esp + 0xb0], 1
mov eax, dword [edx + 4]
sub eax, 1
je 0x46ce92
sub eax, 3
je 0x46ce57
lea esi, [esp + 0x68]
call fcn.00405c10
lea ecx, [esp + 0x1c]
call fcn.0042dd30
xor al, al
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.005b88a9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x24]
shrd edi, ebx, 1
push edi
lea eax, [esp + 0x50]
shr ebx, 1
call fcn.0043d580
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x70]
mov byte [esp + 0xb8], 2
call fcn.00402580
lea esi, [esp + 0x4c]
mov byte [esp + 0xb0], 1
call fcn.00405c10
jmp 0x46cee8
mov ecx, dword [esp + 0x24]
push edi
lea esi, [esp + 0x88]
call fcn.00447b80
mov eax, esi
lea ecx, [esp + 0x30]
mov byte [esp + 0xb0], 3
call fcn.0043cfd0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x70]
mov byte [esp + 0xb8], 4
call fcn.00402580
lea esi, [esp + 0x30]
call fcn.00405c10
lea ecx, [esp + 0x84]
mov byte [esp + 0xb0], 1
call fcn.0040b130
lea eax, [esp + 0x68]
push eax
lea esi, [esp + 0x34]
call fcn.0043d510
add esp, 4
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
add ecx, 8
mov byte [esp + 0xb8], 5
call fcn.00402580
call fcn.00405c10
lea esi, [esp + 0x68]
call fcn.00405c10
lea ecx, [esp + 0x1c]
call fcn.0042dd30
mov al, 1
jmp 0x46ce31