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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a2ea7
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x60f520]
xor eax, esp
mov dword [esp + 0xac], eax
push esi
push edi
mov eax, dword [0x60f520]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x44], esi
cmp dword [esi + 0x3c], 0
mov edi, dword [ebp + 8]
jne 0x4d8268
mov eax, 0x80004005
jmp 0x4d8835
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x54]
mov ecx, esi
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x58]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0xb0]
call eax
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esp + 0x44]
mov esi, dword [esi + 0x60]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x4c], edx
sub esi, dword [eax + 0x58]
mov ecx, dword [eax + 0x5c]
add esi, edx
sub ecx, dword [eax + 0x54]
mov eax, dword [esp + 0x3c]
add ecx, eax
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], ecx
mov esi, dword [esi + 0x3c]
mov ecx, esi
mov dword [esp + 0x3c], esi
mov eax, dword [esi + 0x54]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x58]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0xb0]
call eax
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esp + 0x3c]
xorps xmm0, xmm0
mov esi, dword [esi + 0x60]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax + 0x5c]
sub esi, dword [eax + 0x58]
sub ecx, dword [eax + 0x54]
add esi, edx
mov eax, dword [esp + 0x28]
add ecx, eax
mov dword [esp + 0x88], eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x90], edx
push eax
lea eax, [esp + 0x70]
mov dword [esp + 0x98], ecx
push eax
mov dword [esp + 0xa0], esi
movdqu xmmword [esp + 0x74], xmm0
call dword [sym.imp.USER32.dll_IntersectRect]
mov eax, dword [edi]
lea ecx, [esp + 0x78]
push ecx
mov ecx, edi
call dword [eax + 0x124]
mov eax, dword [esp + 0x80]
sub eax, dword [esp + 0x78]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x84]
sub eax, dword [esp + 0x7c]
cdq
sub eax, edx
mov ecx, edi
mov edx, dword [edi]
mov esi, eax
lea eax, [esp + 0x98]
sar esi, 1
push eax
mov dword [esp + 0x40], esi
call dword [edx + 0x54]
mov eax, dword [edi]
lea ecx, [esp + 0x58]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x54]
call eax
mov ecx, dword [eax]
sub ecx, dword [eax + 8]
add ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x10]
add eax, 0xffffffec
add eax, ecx
mov ecx, 1
cmp dword [esp + 0x20], eax
mov eax, 0
cmovl eax, ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x34], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x54]
call eax
mov ecx, dword [eax + 4]
sub ecx, dword [eax + 0xc]
lea eax, [esi - 0x14]
add ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0xa0]
add eax, ecx
cmp dword [esp + 0x24], eax
mov ecx, 2
mov eax, dword [esp + 0x34]
cmovl eax, ecx
sub esi, dword [esp + 0x98]
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x58]
mov eax, dword [edi]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x54]
call eax
mov edx, 3
mov ecx, dword [eax + 8]
sub ecx, esi
mov esi, dword [esp + 0xa4]
sub ecx, dword [eax]
add ecx, dword [esp + 0x70]
add ecx, dword [esp + 0x10]
cmp dword [esp + 0x20], ecx
lea ecx, [esp + 0x58]
mov eax, dword [esp + 0x34]
cmovg eax, edx
sub esi, dword [esp + 0x9c]
mov dword [esp + 0x34], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x54]
call eax
mov edx, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
mov eax, dword [esp + 0x34]
sub ecx, esi
add ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x3c]
add ecx, esi
cmp edx, ecx
mov ecx, 4
cmovg eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x120]
mov ecx, dword [edi + 0x124]
sub ecx, dword [esp + 0x4c]
sub eax, dword [esp + 0x48]
add edx, ecx
add dword [esp + 0x20], eax
lea ecx, [esp + 0xa8]
mov eax, dword [edi]
push ecx
mov ecx, edi
mov dword [esp + 0x28], edx
call dword [eax + 0x90]
push dword [esp + 0x24]
mov eax, dword [edi]
mov ecx, edi
push dword [esp + 0x24]
call dword [eax + 0x58]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
add dword [esp + 0x24], esi
add eax, 0x30
push eax
mov dword [esp + 0x40], eax
call fcn.00409da0
mov dword [esp + 0xc8], 0
xor edx, edx
mov ecx, dword [esp + 0x14]
mov eax, ecx
mov esi, dword [esp + 0x18]
mov dword [esp + 0x28], edx
cmp ecx, esi
je 0x4d856a
nop
cmp dword [eax], edi
je 0x4d8522
inc edx
add eax, 4
mov dword [esp + 0x28], edx
cmp eax, esi
jne 0x4d8510
jmp 0x4d856a
push dword [esp + 0x3c]
lea ecx, [eax + 4]
mov edx, esi
push eax
call fcn.0040b100
lea eax, [esi - 4]
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], eax
cmp eax, esi
je 0x4d855e
mov ecx, dword [eax]
test ecx, ecx
je 0x4d8553
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x30]
add eax, 4
mov dword [esp + 0x30], eax
cmp eax, esi
jne 0x4d8543
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], esi
xor edx, edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov eax, ecx
cmp ecx, esi
je 0x4d8616
mov edi, edi
mov edx, dword [eax]
xor ecx, ecx
mov dword [esp + 0x10], ecx
test edx, edx
je 0x4d85aa
mov eax, dword [edx]
lea ecx, [esp + 0x10]
push ecx
push 0x5c3394
push edx
call dword [eax]
mov ecx, dword [esp + 0x10]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov dword [esp + 0x10], ecx
mov byte [esp + 0xc8], 1
test ecx, ecx
je 0x4d85ed
mov eax, dword [ecx]
lea edx, [esp + 0x58]
push edx
call dword [eax + 0x54]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc4]
call eax
test eax, eax
je 0x4d85e9
push dword [esp + 0x24]
lea eax, [esp + 0x5c]
push dword [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4d8622
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x30]
mov byte [esp + 0xc8], 0
test ecx, ecx
je 0x4d8603
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x38]
add eax, 4
mov dword [esp + 0x38], eax
cmp eax, esi
jne 0x4d8580
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x4c]
jmp 0x4d87dd
mov edx, dword [esp + 0x30]
push edi
cmp edx, dword [esp + 0x2c]
jge 0x4d8689
mov eax, dword [edi]
mov esi, edi
mov dword [esp + 0x2c], esi
call dword [eax + 4]
mov ecx, dword [esp + 0x38]
mov byte [esp + 0xc8], 2
sub ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
sar ecx, 2
mov dword [esp + 0x38], ecx
cmp eax, dword [esp + 0x1c]
jne 0x4d866b
push ecx
lea ecx, [esp + 0x18]
call fcn.0040a550
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
test eax, eax
je 0x4d8673
xor esi, esi
mov dword [eax], edi
add eax, 4
mov dword [esp + 0x18], eax
lea edx, [eax - 4]
mov eax, dword [esp + 0x14]
lea ecx, [eax + ecx*4]
jmp 0x4d872f
mov eax, esi
sub eax, dword [esp + 0x18]
sar eax, 2
dec eax
cmp edx, eax
mov eax, dword [edi]
jne 0x4d86d5
mov dword [esp + 0x2c], edi
call dword [eax + 4]
lea eax, [esp + 0x28]
mov byte [esp + 0xc8], 3
push eax
lea ecx, [esp + 0x18]
call fcn.00409df0
mov byte [esp + 0xc8], 1
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4d8759
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4d8759
mov esi, edi
mov dword [esp + 0x34], esi
call dword [eax + 4]
mov eax, dword [esp + 0x38]
mov byte [esp + 0xc8], 4
add eax, 4
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
jne 0x4d8716
push ecx
lea ecx, [esp + 0x18]
call fcn.0040a550
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x4d871e
xor esi, esi
mov dword [eax], edi
add eax, 4
mov dword [esp + 0x18], eax
lea edx, [eax - 4]
mov eax, dword [esp + 0x28]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x18]
cmp ecx, edx
je 0x4d8747
cmp edx, eax
je 0x4d8747
sub esp, 8
push eax
call fcn.0040b370
add esp, 0xc
mov byte [esp + 0xc8], 1
test esi, esi
je 0x4d8759
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [esp + 0xc8], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4d876f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov dword [esp + 0x28], eax
cmp esi, eax
je 0x4d879b
mov ecx, dword [esi]
test ecx, ecx
je 0x4d8790
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x28]
add esi, 4
cmp esi, eax
jne 0x4d8780
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
lea eax, [esp + 0x14]
push eax
call fcn.004746d0
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x8c]
call eax
test eax, eax
je 0x4d87d9
mov ecx, dword [edi + 0x40]
sub esp, 0x10
movdqu xmm0, xmmword [edi + 0x54]
mov eax, esp
mov edx, dword [ecx]
movdqu xmmword [eax], xmm0
call dword [edx + 0x2c]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4d87fa
mov ecx, dword [esp + 0x44]
push edi
push 0x515
mov dword [ecx + 0x184], eax
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dword [esp + 0xc8], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4d8833
mov edi, eax
cmp eax, esi
je 0x4d882a
mov ecx, dword [edi]
test ecx, ecx
je 0x4d881f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
add edi, 4
cmp edi, esi
jne 0x4d8813
mov eax, dword [esp + 0x14]
push eax
call fcn.00551995
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.0055199a
mov esp, ebp
pop ebp
ret 8