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

Disassembly:
push 0xffffffffffffffff
push 0x4851b0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a02b4]
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.0040b1f0
add esp, 4
test al, al
jne 0x41ba4b
lea edx, [esp + 0x90]
push edx
push esi
lea edi, [esp + 0x3c]
call fcn.00408360
add esp, 8
push 0xffffffffffffffff
push ebp
push eax
lea eax, [esp + 0x9c]
mov byte [esp + 0x94], 1
call fcn.00401e00
mov ebx, 8
cmp dword [esp + 0x4c], ebx
jb 0x41ba50
mov eax, dword [esp + 0x38]
push eax
call fcn.00468cbd
add esp, 4
jmp 0x41ba50
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 0x41baff
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x94]
push edx
call fcn.00466770
add esp, 8
test al, al
jne 0x41bac4
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x41baa4
push eax
call fcn.00468d1d
add esp, 4
cmp dword [esp + 0xa8], ebx
jb 0x41babd
mov eax, dword [esp + 0x94]
push eax
call fcn.00468cbd
add esp, 4
xor al, al
jmp 0x41be16
cmp dword [esp + 0x38], ebp
jne 0x41bc0c
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x41badf
push eax
call fcn.00468d1d
add esp, 4
cmp dword [esp + 0xa8], ebx
jb 0x41babd
mov ecx, dword [esp + 0x94]
push ecx
call fcn.00468cbd
add esp, 4
xor al, al
jmp 0x41be16
mov byte [esp + 0x88], 3
cmp dword [esp + 0xa8], ebx
mov eax, dword [esp + 0x94]
jae 0x41bb1e
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 0x41bb64
cmp dword [esp + 0xa8], ebx
jb 0x41babd
mov edx, dword [esp + 0x94]
push edx
call fcn.00468cbd
add esp, 4
xor al, al
jmp 0x41be16
lea edi, [esp + 0x24]
lea eax, [esp + 0x1c]
call fcn.0040f2b0
test al, al
jne 0x41bba0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xa8], ebx
jb 0x41babd
mov eax, dword [esp + 0x94]
push eax
call fcn.00468cbd
add esp, 4
xor al, al
jmp 0x41be16
mov edi, dword [esp + 0x24]
mov ecx, edi
or ecx, dword [esp + 0x28]
jne 0x41bbcf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x34]
call fcn.00402600
lea esi, [esp + 0x90]
call fcn.00434540
xor al, al
jmp 0x41be16
lea esi, [esp + 0x34]
call fcn.00402630
mov eax, dword [esp + 0x3c]
push edi
lea esi, [esp + 0x24]
lea ecx, [esp + 0x20]
call fcn.0040f270
test al, al
lea esi, [esp + 0x1c]
jne 0x41bbf9
call fcn.0040f200
jmp 0x41bbb3
cmp edi, dword [esp + 0x20]
jne 0x41bbf2
mov byte [esp + 0x88], 2
call fcn.0040f200
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.0043a320
add esp, 8
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x41bbb3
push 0x2c
lea ecx, [esp + 0x58]
push ebp
push ecx
call fcn.0046f200
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 0x41bcbf
mov eax, dword [esp + 0x1c]
push eax
call fcn.00469c81
add esp, 4
jmp 0x41bbb3
xor ecx, ecx
test ebp, ebp
jle 0x41bda1
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 0x41bd38
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 0x41bd56
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 0x41bd8b
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 0x41bcd4
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
push 0x10
call fcn.00468c53
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x41bdbf
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
mov byte [eax + 0xc], 0
jmp 0x41bdc1
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.00469c81
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, ebp
je 0x41bdfa
push eax
call fcn.00468d1d
add esp, 4
cmp dword [esp + 0xa8], 8
jb 0x41be14
mov edx, dword [esp + 0x94]
push edx
call fcn.00468cbd
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