Function at 0x487ce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x514370
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [esp + 0xac]
mov esi, ecx
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x90]
xor ebp, ebp
push ecx
mov dword [esp + 0x8c], ebp
call fcn.0043a6d0
add esp, 4
test al, al
jne 0x487d7b
lea edx, [esp + 0x90]
push edx
push esi
lea edi, [esp + 0x3c]
call fcn.004226f0
add esp, 8
push 0xffffffffffffffff
push ebp
push eax
lea eax, [esp + 0x9c]
mov byte [esp + 0x94], 1
call fcn.00401610
mov ebx, 8
cmp dword [esp + 0x4c], ebx
jb 0x487d80
mov eax, dword [esp + 0x38]
push eax
call fcn.004e7d7e
add esp, 4
jmp 0x487d80
mov ebx, 8
mov dword [esp + 0x34], vtable.GameMgr::GMBuffer_unsigned_char_.0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
cmp byte [esp + 0xb4], 0
mov byte [esp + 0x88], 2
je 0x487e2f
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x94]
push edx
call fcn.004ce770
add esp, 8
test al, al
jne 0x487df4
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x487dd4
push eax
call fcn.004e7d6a
add esp, 4
cmp dword [esp + 0xa8], ebx
jb 0x487ded
mov eax, dword [esp + 0x94]
push eax
call fcn.004e7d7e
add esp, 4
xor al, al
jmp 0x488146
cmp dword [esp + 0x38], ebp
jne 0x487f3c
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x487e0f
push eax
call fcn.004e7d6a
add esp, 4
cmp dword [esp + 0xa8], ebx
jb 0x487ded
mov ecx, dword [esp + 0x94]
push ecx
call fcn.004e7d7e
add esp, 4
xor al, al
jmp 0x488146
mov byte [esp + 0x88], 3
cmp dword [esp + 0xa8], ebx
mov eax, dword [esp + 0x94]
jae 0x487e4e
lea eax, [esp + 0x94]
push ebp
push 0x80
push 3
push ebp
push 1
push Ordinal_4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
jne 0x487e94
cmp dword [esp + 0xa8], ebx
jb 0x487ded
mov edx, dword [esp + 0x94]
push edx
call fcn.004e7d7e
add esp, 4
xor al, al
jmp 0x488146
lea edi, [esp + 0x24]
lea eax, [esp + 0x1c]
call fcn.0043ebf0
test al, al
jne 0x487ed0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xa8], ebx
jb 0x487ded
mov eax, dword [esp + 0x94]
push eax
call fcn.004e7d7e
add esp, 4
xor al, al
jmp 0x488146
mov edi, dword [esp + 0x24]
mov ecx, edi
or ecx, dword [esp + 0x28]
jne 0x487eff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x34]
call fcn.00401070
lea esi, [esp + 0x90]
call fcn.00481d30
xor al, al
jmp 0x488146
lea esi, [esp + 0x34]
call fcn.00401110
mov eax, dword [esp + 0x3c]
push edi
lea esi, [esp + 0x24]
lea ecx, [esp + 0x20]
call fcn.0043eb60
test al, al
lea esi, [esp + 0x1c]
jne 0x487f29
call fcn.0043eaf0
jmp 0x487ee3
cmp edi, dword [esp + 0x20]
jne 0x487f22
mov byte [esp + 0x88], 2
call fcn.0043eaf0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x24]
push edx
push eax
lea esi, [esp + 0x28]
lea edx, [esp + 0x38]
call fcn.004c0030
add esp, 8
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x487ee3
push 0x2c
lea ecx, [esp + 0x58]
push ebp
push ecx
call fcn.004f1960
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x64], ebp
push 0
mov ebp, esi
imul ebp, edi
push 0
mov edx, edi
neg edx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x68], edx
push 0
lea edx, [esp + 0x64]
push edx
lea eax, [ebp*4]
push 0
mov dword [esp + 0x6c], 0x28
mov dword [esp + 0x70], esi
mov word [esp + 0x78], 1
mov word [esp + 0x7a], 0x20
mov dword [esp + 0x80], eax
xor bl, bl
mov dword [esp + 0x30], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x487fef
mov eax, dword [esp + 0x1c]
push eax
call fcn.004e8e42
add esp, 4
jmp 0x487ee3
xor ecx, ecx
test ebp, ebp
jle 0x4880d1
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add esi, 3
mov dl, byte [esi]
mov byte [eax + ecx*4 + 3], dl
mov edi, dword [esp + 0x18]
cmp byte [edi + ecx*4 + 3], 0xff
jae 0x488068
movzx eax, byte [esi]
movzx edx, byte [esi - 1]
imul edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [edi + ecx*4], dl
movzx eax, byte [esi]
movzx edx, byte [esi - 2]
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esp + 0x18]
shr edx, 7
mov byte [eax + ecx*4 + 1], dl
movzx eax, byte [esi]
movzx edx, byte [esi - 3]
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esp + 0x18]
shr edx, 7
mov byte [eax + ecx*4 + 2], dl
mov bl, 1
jmp 0x488086
mov dl, byte [esi - 1]
mov byte [edi + ecx*4], dl
movzx eax, byte [esi - 2]
mov edx, dword [esp + 0x18]
mov byte [edx + ecx*4 + 1], al
movzx eax, byte [esi - 3]
mov edx, dword [esp + 0x18]
mov byte [edx + ecx*4 + 2], al
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xb0]
cmp dword [eax + ecx*4], edx
jne 0x4880bb
mov byte [eax + ecx*4], 0
mov eax, dword [esp + 0x18]
mov byte [eax + ecx*4 + 1], 0
mov edx, dword [esp + 0x18]
mov byte [edx + ecx*4 + 2], 0
mov eax, dword [esp + 0x18]
mov byte [eax + ecx*4 + 3], 0
mov eax, dword [esp + 0x18]
mov bl, 1
add ecx, 1
add esi, 4
cmp ecx, ebp
jl 0x488004
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
push 0x10
call fcn.004e7d83
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x4880ef
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
mov byte [eax + 0xc], 0
jmp 0x4880f1
xor eax, eax
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x24]
mov dword [ecx], eax
mov dword [eax], edx
mov eax, dword [ecx]
mov dword [eax + 4], esi
mov edx, dword [ecx]
mov dword [edx + 8], edi
mov eax, dword [ecx]
mov ecx, dword [esp + 0x1c]
push ecx
mov byte [eax + 0xc], bl
call fcn.004e8e42
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, ebp
je 0x48812a
push eax
call fcn.004e7d6a
add esp, 4
cmp dword [esp + 0xa8], 8
jb 0x488144
mov edx, dword [esp + 0x94]
push edx
call fcn.004e7d7e
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 0x28