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

Disassembly:
push 0xffffffffffffffff
push 0x565eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7b5c]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xa8], 0
je 0x4d4eb8
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x68]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ebx, dword [esp + 0x6c]
mov eax, ebx
cdq
idiv dword [esi + 0x98]
mov ecx, dword [esp + 0x68]
mov edi, eax
mov eax, ecx
cdq
idiv dword [esi + 0x94]
mov ebp, eax
test ecx, ecx
jl 0x4d4c24
test ebx, ebx
jl 0x4d4c24
cmp edi, dword [esi + 0x74]
jne 0x4d4c24
cmp ebp, dword [esi + 0x78]
je 0x4d4eb8
push esi
lea ecx, [esp + 0x44]
call fcn.0050a14e
mov dword [esp + 0x5c], 0
test edi, edi
jl 0x4d4d34
test ebp, ebp
jl 0x4d4d34
mov eax, dword [esi + 0xa0]
cmp edi, eax
jge 0x4d4c5c
cmp ebp, dword [esi + 0x9c]
jl 0x4d4d34
cmp edi, eax
mov ebx, eax
jl 0x4d4c69
inc edi
mov dword [esi + 0xa0], edi
cmp ebp, dword [esi + 0x9c]
jl 0x4d4c78
inc ebp
mov dword [esi + 0x9c], ebp
mov ecx, dword [esi + 0x20]
push 0
lea eax, [esp + 0x34]
push eax
push 0
push ecx
call fcn.0044bbe0
mov eax, dword [0x5ececc]
neg eax
add eax, eax
sub eax, dword [esi + 0xa4]
add esp, 0x10
sub eax, dword [esi + 0x90]
add eax, dword [esp + 0x3c]
cdq
idiv dword [esi + 0x98]
mov ecx, eax
mov eax, dword [0x5ecec8]
neg eax
add eax, eax
sub eax, dword [esi + 0x8c]
add eax, dword [esp + 0x38]
cdq
idiv dword [esi + 0x94]
mov edx, dword [esi + 0xa0]
cmp edx, ecx
jge 0x4d4cd5
mov ecx, edx
mov dword [esi + 0xa0], ecx
mov ecx, dword [esi + 0x9c]
cmp ecx, eax
jl 0x4d4ce7
mov ecx, eax
mov dword [esi + 0x9c], ecx
push 0
mov ecx, esi
call fcn.004d47a0
cmp ebx, dword [esi + 0xa0]
jge 0x4d4d28
xor edi, edi
cmp dword [esi + 0x9c], edi
jle 0x4d4d1f
mov edx, dword [esp + 0x44]
push edi
push ebx
push edx
mov ecx, esi
call fcn.004d46a0
inc edi
cmp edi, dword [esi + 0x9c]
jl 0x4d4d08
inc ebx
cmp ebx, dword [esi + 0xa0]
jl 0x4d4cfe
mov eax, dword [esp + 0x44]
push eax
mov ecx, esi
call fcn.004d4610
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sub eax, dword [esi + 0xa4]
mov ebx, dword [esp + 0x68]
dec ecx
cmp ebx, ecx
mov dword [esp + 0x2c], eax
jl 0x4d4d64
mov ebx, ecx
mov dword [esp + 0x68], ebx
dec eax
cmp dword [esp + 0x6c], eax
jl 0x4d4d6f
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x74]
xor ecx, ecx
test eax, eax
setl cl
xor edx, edx
dec ecx
and ecx, eax
mov eax, dword [esi + 0x78]
test eax, eax
setl dl
mov dword [esp + 0x1c], ecx
dec edx
and edx, eax
mov eax, dword [esp + 0x6c]
mov ebp, edx
cdq
idiv dword [esi + 0x98]
mov edi, eax
mov eax, ebx
cdq
idiv dword [esi + 0x94]
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], eax
test ebx, ebx
jl 0x4d4e68
cmp dword [esp + 0x6c], 0
jl 0x4d4e68
cmp ecx, edi
mov dword [esp + 0x1c], ecx
jl 0x4d4dd2
mov dword [esp + 0x1c], edi
jle 0x4d4dd2
mov dword [esp + 0x18], ecx
jmp 0x4d4dd8
mov dword [esp + 0x18], edi
mov ecx, edi
cmp ebp, eax
jge 0x4d4de4
mov edx, ebp
mov dword [esp + 0x14], edx
jmp 0x4d4dea
mov dword [esp + 0x14], eax
mov edx, eax
cmp ebp, eax
jg 0x4d4df0
mov ebp, eax
xor ebx, ebx
test ecx, ecx
jl 0x4d4e20
cmp edx, ebp
mov edi, edx
jg 0x4d4e1b
lea esp, [esp]
mov eax, dword [esp + 0x44]
push edi
push ebx
push eax
mov ecx, esi
call fcn.004d46a0
inc edi
cmp edi, ebp
jle 0x4d4e00
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc ebx
cmp ebx, ecx
jle 0x4d4df6
mov ebx, dword [esp + 0x1c]
cmp ebx, ecx
jg 0x4d4e52
xor edi, edi
test edx, edx
jl 0x4d4e4d
mov edi, edi
mov ecx, dword [esp + 0x44]
push edi
push ebx
push ecx
mov ecx, esi
call fcn.004d46a0
inc edi
cmp edi, dword [esp + 0x14]
jle 0x4d4e30
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc ebx
cmp ebx, ecx
jle 0x4d4e28
mov edx, dword [esp + 0x44]
push edx
mov ecx, esi
call fcn.004d4a00
mov dword [esp + 0x5c], 0xffffffff
jmp 0x4d4eaf
or edi, 0xffffffff
xor ebx, ebx
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
test ecx, ecx
jl 0x4d4e9f
xor edi, edi
test ebp, ebp
jl 0x4d4e97
lea ecx, [ecx]
mov eax, dword [esp + 0x44]
push edi
push ebx
push eax
mov ecx, esi
call fcn.004d46a0
inc edi
cmp edi, ebp
jle 0x4d4e80
mov ecx, dword [esp + 0x1c]
inc ebx
cmp ebx, ecx
jle 0x4d4e77
or edi, 0xffffffff
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, esi
call fcn.004d4a00
mov dword [esp + 0x5c], edi
lea ecx, [esp + 0x40]
call fcn.0050a1a2
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0xc