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

Disassembly:
push 0xffffffffffffffff
push 0x4d16b3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov eax, dword [0x517b6c]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, dword [esp + 0xac]
mov ebp, dword [esp + 0xa8]
xor ebx, ebx
cmp dword [ebp + 0x28], ebx
jne 0x44232b
cmp dword [ebp + 0x2c], ebx
je 0x4426be
mov eax, vtable.CPOS.0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov byte [esp + 0xa0], 4
push 4
mov dword [esp + 0x1c], vtable.CSMARTPTR_class_CSPRITE_.0
call fcn.004acfc8
mov esi, eax
xor ecx, ecx
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
mov dword [esi], 1
mov byte [esp + 0xa0], 5
mov eax, dword [ebp + 0x6c]
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x64], edx
mov edx, dword [eax + 0x20]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x78]
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x78], edx
mov edx, dword [eax + 0x20]
mov dword [esp + 0x7c], edx
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 0x84]
mov dword [esp + 0x80], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x50], edx
mov edx, dword [eax + 0x20]
mov dword [esp + 0x54], edx
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x58], edx
xor edx, edx
cmp eax, ebx
mov dword [esp + 0x14], edx
jle 0x4425e7
jmp 0x44245c
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
cmp edx, ebx
jne 0x4424c0
cmp ecx, dword [ebp + 0x6c]
je 0x4424a3
add dword [esi], 0xffffffff
jne 0x442492
cmp ecx, ebx
je 0x442489
cmp dword [ecx - 4], ebx
lea eax, [ecx - 4]
je 0x442480
mov edx, dword [ecx]
mov eax, dword [edx]
push 3
call eax
jmp 0x442489
push eax
call fcn.004ad279
add esp, 4
push esi
call fcn.004ad032
add esp, 4
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x6c]
add dword [eax], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x70]
jmp 0x44258f
sub eax, dword [esp + 0x58]
cmp edx, eax
jl 0x44252e
cmp ecx, dword [ebp + 0x84]
je 0x442514
add dword [esi], 0xffffffff
jne 0x4424fd
cmp ecx, ebx
je 0x4424f4
cmp dword [ecx - 4], ebx
lea eax, [ecx - 4]
je 0x4424eb
mov eax, dword [ecx]
mov edx, dword [eax]
push 3
call edx
jmp 0x4424f4
push eax
call fcn.004ad279
add esp, 4
push esi
call fcn.004ad032
add esp, 4
mov eax, dword [ebp + 0x80]
mov ecx, dword [ebp + 0x84]
add dword [eax], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x5c]
jmp 0x44258f
cmp ecx, dword [ebp + 0x78]
je 0x442571
add dword [esi], 0xffffffff
jne 0x442560
cmp ecx, ebx
je 0x442557
cmp dword [ecx - 4], ebx
lea eax, [ecx - 4]
je 0x44254e
mov eax, dword [ecx]
mov edx, dword [eax]
push 3
call edx
jmp 0x442557
push eax
call fcn.004ad279
add esp, 4
push esi
call fcn.004ad032
add esp, 4
mov eax, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x78]
add dword [eax], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x84]
mov esi, dword [esp + 0xb0]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
add esi, dword [ebp + 0x40]
add eax, dword [ebp + 0x44]
add esi, dword [esp + 0x14]
mov dword [esp + 0x34], edx
mov dword [esp + 0x48], edx
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
push edi
mov dword [esp + 0x44], esi
push ecx
mov esi, edx
mov dword [esp + 0x50], eax
call fcn.00418610
mov ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x30]
mov eax, dword [ebp + 0x48]
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x442450
mov eax, dword [ebp + 0x58]
mov esi, dword [esp + 0xb0]
add eax, dword [esi + 8]
mov edx, dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x60]
mov edi, dword [ebp + 0x54]
add edi, dword [esi + 4]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x88], eax
mov dword [esp + 0x44], edx
add edx, eax
mov eax, dword [ebp + 0x60]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 0x58]
add eax, ecx
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0x90]
push eax
mov dword [esp + 0x48], edi
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [0x51be98]
mov edx, dword [0x51be94]
push ecx
push edx
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x442690
cmp byte [ebp + 0xb0], bl
je 0x442683
cmp byte [esp + 0xb4], bl
jne 0x442690
mov ebp, dword [ebp + 0x9c]
lea ecx, [esp + 0x38]
push ecx
jmp 0x44269b
mov ebp, dword [ebp + 0x90]
lea edx, [esp + 0x38]
push edx
mov edi, dword [esp + 0xb0]
push edi
push ebp
lea esi, [esp + 0x44]
call fcn.00418610
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 4
call fcn.0041a400
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 0x10