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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x5f0524]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], ecx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], esi
push edi
mov dword [esi], 0
cmp eax, 0x200
ja 0x4d7d80
je 0x4d7a6d
cmp eax, 0x14
ja 0x4d7813
je 0x4d7808
sub eax, 2
je 0x4d77e8
sub eax, 0xd
jne 0x4d77f2
mov ecx, ebx
call fcn.004d7260
mov dword [esi], 0
jmp 0x4d8171
mov dword [ebx + 0x98], 0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0051a19b
mov esp, ebp
pop ebp
ret 0x10
mov dword [esi], 1
jmp 0x4d8171
cmp eax, 0x87
je 0x4d7a4e
cmp eax, 0x113
jne 0x4d77f2
cmp byte [ebx + 0xec], 0
je 0x4d77f2
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x2c]
xorps xmm0, xmm0
push eax
push dword [ebx + 0x30]
movups xmmword [esp + 0x34], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [ebx + 0x108]
mov dword [esp + 0x20], esi
test esi, esi
jne 0x4d7877
mov esi, dword [ebx + 0x104]
mov dword [esp + 0x20], esi
mov ecx, dword [ebx + 0x118]
test ecx, ecx
je 0x4d7894
mov eax, dword [ecx]
mov eax, dword [eax + 0x78]
call eax
mov dword [esp + 0x18], 1
test al, al
jne 0x4d789c
mov dword [esp + 0x18], 0
mov ebx, dword [esi]
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x110]
mov eax, dword [ecx]
call dword [eax + 0x5c]
mov ecx, dword [esi + 0x110]
mov edi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x6c]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax]
mov ecx, dword [ecx + 0x110]
mov eax, dword [ecx]
call dword [eax + 0x64]
push dword [esp + 0x18]
push edi
push esi
mov esi, dword [esp + 0x1c]
mov ecx, esi
push dword [eax]
mov eax, dword [esi]
mov eax, dword [eax + 0x12c]
call eax
mov ecx, dword [esp + 0x30]
movzx eax, al
push eax
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
call dword [ebx + 0x24]
mov ecx, dword [esp + 0x1c]
cmp ecx, 1
jne 0x4d79b9
test eax, eax
jne 0x4d792d
mov ecx, dword [esi + 0x110]
push dword [esi + 0x114]
mov eax, dword [ecx]
call dword [eax + 0x8c]
jmp 0x4d797c
cmp eax, 1
jne 0x4d7948
mov ecx, dword [esi + 0x110]
push dword [esi + 0x114]
mov eax, dword [ecx]
call dword [eax + 0x94]
jmp 0x4d797c
cmp eax, 3
jne 0x4d7963
mov ecx, dword [esi + 0x110]
push dword [esi + 0x114]
mov eax, dword [ecx]
call dword [eax + 0x98]
jmp 0x4d797c
cmp eax, 4
jne 0x4d797c
mov ecx, dword [esi + 0x110]
push dword [esi + 0x114]
mov eax, dword [ecx]
call dword [eax + 0x90]
push 1
push 0
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, esi
call fcn.004d7260
mov eax, dword [esp + 0x14]
push 1
mov dword [eax], 0
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0x64
push 2
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x4d8171
cmp ecx, 2
jne 0x4d77f2
test eax, eax
jne 0x4d79dc
mov ecx, dword [esi + 0x110]
push dword [esi + 0x114]
mov eax, dword [ecx]
call dword [eax + 0x8c]
jmp 0x4d7a2b
cmp eax, 1
jne 0x4d79f7
mov ecx, dword [esi + 0x110]
push dword [esi + 0x114]
mov eax, dword [ecx]
call dword [eax + 0x94]
jmp 0x4d7a2b
cmp eax, 3
jne 0x4d7a12
mov ecx, dword [esi + 0x110]
push dword [esi + 0x114]
mov eax, dword [ecx]
call dword [eax + 0x98]
jmp 0x4d7a2b
cmp eax, 4
jne 0x4d7a2b
mov ecx, dword [esi + 0x110]
push dword [esi + 0x114]
mov eax, dword [ecx]
call dword [eax + 0x90]
push 1
push 0
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, esi
call fcn.004d7260
mov eax, dword [esp + 0x14]
mov dword [eax], 0
jmp 0x4d8171
push dword [ebp + 0x14]
push ecx
push 0x87
push dword [ebx + 0x98]
call dword [sym.imp.USER32.dll_DefWindowProcW]
or eax, 4
mov dword [esi], eax
jmp 0x4d8171
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
movsx edi, ax
shr eax, 0x10
movsx esi, ax
lea eax, [esp + 0x2c]
push eax
push dword [ebx + 0x30]
movups xmmword [esp + 0x34], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x2c]
add eax, edi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
add eax, esi
mov esi, dword [ebx + 0x108]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], esi
test esi, esi
jne 0x4d7abb
mov esi, dword [ebx + 0x104]
mov dword [esp + 0x18], esi
mov ecx, dword [ebx + 0x118]
test ecx, ecx
je 0x4d7ad8
mov eax, dword [ecx]
mov eax, dword [eax + 0x78]
call eax
mov dword [esp + 0x14], 1
test al, al
jne 0x4d7ae0
mov dword [esp + 0x14], 0
mov ebx, dword [esi]
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x110]
mov eax, dword [ecx]
call dword [eax + 0x5c]
mov ecx, dword [esi + 0x110]
mov edi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x6c]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax]
mov ecx, dword [ecx + 0x110]
mov eax, dword [ecx]
call dword [eax + 0x64]
push dword [esp + 0x14]
push edi
push esi
mov esi, dword [esp + 0x1c]
mov ecx, esi
push dword [eax]
mov eax, dword [esi]
mov eax, dword [eax + 0x12c]
call eax
mov edi, dword [esp + 0x28]
mov ecx, edi
movzx eax, al
push eax
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x44]
push dword [esp + 0x4c]
call dword [ebx + 0x24]
cmp byte [esi + 0xec], 0
je 0x4d7c9b
cmp byte [esi + 0xf8], 0
je 0x4d7c3b
mov ecx, dword [esi + 0x118]
test ecx, ecx
je 0x4d7b83
mov eax, dword [ecx]
mov eax, dword [eax + 0x78]
call eax
mov dword [esp + 0x14], 1
test al, al
jne 0x4d7b8b
mov dword [esp + 0x14], 0
mov ecx, dword [esi + 0x110]
mov ebx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x6c]
mov ecx, dword [esi + 0x110]
mov edi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x64]
mov esi, eax
mov eax, dword [esp + 0x10]
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 0x12c]
call edx
push dword [esp + 0x14]
test al, al
mov eax, dword [esp + 0x24]
push edi
cmovne eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
mov ecx, edi
push dword [esi]
mov dword [esp + 0x2c], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x12c]
call eax
mov ecx, dword [esp + 0x24]
movzx eax, al
push eax
push dword [esp + 0x48]
mov eax, dword [esp + 0x34]
push dword [esp + 0x48]
sub eax, dword [edi + 0xfc]
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [edi + 0x100]
push eax
call dword [ebx + 0x28]
mov ecx, dword [edi + 0x110]
mov ebx, eax
mov edx, dword [ecx]
call dword [edx + 0x5c]
cmp ebx, dword [eax]
je 0x4d77f2
mov ecx, dword [edi + 0x110]
mov esi, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x5c]
mov ecx, edi
sub ebx, dword [eax]
push ebx
call dword [esi + 0x150]
jmp 0x4d77f2
mov ecx, dword [esi + 0xf4]
cmp ecx, 2
jne 0x4d7c52
cmp eax, dword [esi + 0xf0]
je 0x4d77f2
test eax, eax
je 0x4d7c77
cmp eax, 2
je 0x4d7c77
cmp eax, 4
je 0x4d7c77
test ecx, ecx
je 0x4d77f2
mov dword [esi + 0xf4], 0
jmp 0x4d7d56
cmp eax, dword [esi + 0xf0]
jne 0x4d77f2
cmp ecx, 2
je 0x4d77f2
mov dword [esi + 0xf4], 2
jmp 0x4d7d56
mov ecx, dword [esp + 0x1c]
test cl, 1
jne 0x4d77f2
mov ecx, dword [esi + 0xf4]
cmp ecx, 1
jne 0x4d7cbf
cmp eax, dword [esi + 0xf0]
je 0x4d77f2
test eax, eax
je 0x4d7d17
cmp eax, 2
je 0x4d7d17
cmp eax, 4
je 0x4d7d17
test ecx, ecx
je 0x4d7cef
push 1
push 0
push dword [esi + 0x30]
mov dword [esi + 0xf4], 0
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, esi
call fcn.004d7260
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004f4693
lea ecx, [esi + 0x10]
neg esi
sbb esi, esi
and esi, ecx
cmp eax, esi
jne 0x4d77f2
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x4d77f2
mov dword [esi + 0xf0], eax
cmp ecx, 1
je 0x4d7d56
mov dword [esi + 0xf4], 1
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004f4693
mov edx, esi
lea ecx, [esi + 0x10]
neg edx
sbb edx, edx
and edx, ecx
cmp eax, edx
je 0x4d7d56
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004f4693
push 1
push 0
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, esi
call fcn.004d7260
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0051a19b
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0x40f
ja 0x4d815d
je 0x4d8152
sub eax, 0x201
je 0x4d7ef6
sub eax, 1
jne 0x4d77f2
cmp byte [ebx + 0xec], al
je 0x4d7ee0
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
movsx edi, ax
shr eax, 0x10
movsx esi, ax
lea eax, [esp + 0x2c]
push eax
push dword [ebx + 0x30]
movups xmmword [esp + 0x34], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x2c]
add eax, edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
add eax, esi
mov esi, dword [ebx + 0x108]
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], esi
test esi, esi
jne 0x4d7dff
mov esi, dword [ebx + 0x104]
mov dword [esp + 0x24], esi
mov ecx, dword [ebx + 0x118]
test ecx, ecx
je 0x4d7e1c
mov eax, dword [ecx]
mov eax, dword [eax + 0x78]
call eax
mov dword [esp + 0x1c], 1
test al, al
jne 0x4d7e24
mov dword [esp + 0x1c], 0
mov ebx, dword [esi]
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x110]
mov eax, dword [ecx]
call dword [eax + 0x5c]
mov ecx, dword [esi + 0x110]
mov edi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x6c]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax]
mov ecx, dword [ecx + 0x110]
mov eax, dword [ecx]
call dword [eax + 0x64]
push dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x18]
mov ecx, edi
push esi
push dword [eax]
mov eax, dword [edi]
mov eax, dword [eax + 0x12c]
call eax
mov ecx, dword [esp + 0x34]
movzx eax, al
push eax
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x38]
push dword [esp + 0x40]
call dword [ebx + 0x24]
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push 1
push dword [edi + 0x30]
call esi
push 2
push dword [edi + 0x30]
call esi
cmp byte [edi + 0xf8], 0
je 0x4d7eb2
mov byte [edi + 0xf8], 0
cmp dword [edi + 0xf4], 0
je 0x4d7ed9
push 1
push 0
push dword [edi + 0x30]
mov dword [edi + 0xf4], 0
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, edi
call fcn.004d7260
mov byte [edi + 0xec], 0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0051a19b
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
movsx edi, ax
shr eax, 0x10
movsx esi, ax
lea eax, [esp + 0x2c]
push eax
push dword [ebx + 0x30]
movups xmmword [esp + 0x34], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x2c]
add eax, edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
add eax, esi
mov esi, dword [ebx + 0x108]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], esi
test esi, esi
jne 0x4d7f44
mov esi, dword [ebx + 0x104]
mov dword [esp + 0x24], esi
mov ecx, dword [ebx + 0x118]
test ecx, ecx
je 0x4d7f61
mov eax, dword [ecx]
mov eax, dword [eax + 0x78]
call eax
mov dword [esp + 0x1c], 1
test al, al
jne 0x4d7f69
mov dword [esp + 0x1c], 0
mov ebx, dword [esi]
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x110]
mov eax, dword [ecx]
call dword [eax + 0x5c]
mov ecx, dword [esi + 0x110]
mov edi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x6c]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax]
mov ecx, dword [ecx + 0x110]
mov eax, dword [ecx]
call dword [eax + 0x64]
push dword [esp + 0x1c]
push edi
push esi
mov esi, dword [esp + 0x1c]
mov ecx, esi
push dword [eax]
mov eax, dword [esi]
mov eax, dword [eax + 0x12c]
call eax
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
movzx eax, al
push eax
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push edi
push dword [esp + 0x3c]
call dword [ebx + 0x24]
mov dword [esi + 0xf0], eax
test eax, eax
je 0x4d8097
cmp eax, 2
je 0x4d8097
cmp eax, 4
je 0x4d8097
cmp eax, 1
jne 0x4d8043
mov edx, dword [esi + 0x114]
mov byte [esi + 0xec], al
test edx, edx
je 0x4d8018
mov ecx, dword [esi + 0x110]
push edx
mov eax, dword [ecx]
call dword [eax + 0x94]
push 1
push 0
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, esi
call fcn.004d7260
push 0
push 0x1f4
push 1
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x4d8171
cmp eax, 3
jne 0x4d8171
mov edx, dword [esi + 0x114]
mov byte [esi + 0xec], 1
test edx, edx
je 0x4d806c
mov ecx, dword [esi + 0x110]
push edx
mov eax, dword [ecx]
call dword [eax + 0x98]
push 1
push 0
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, esi
call fcn.004d7260
push 0
push 0x1f4
push 1
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x4d8171
mov byte [esi + 0xec], 1
test eax, eax
je 0x4d80c2
cmp eax, 4
jne 0x4d80ed
mov edx, dword [esi + 0x114]
test edx, edx
je 0x4d80db
mov ecx, dword [esi + 0x110]
push edx
mov eax, dword [ecx]
call dword [eax + 0x90]
jmp 0x4d80db
mov edx, dword [esi + 0x114]
test edx, edx
je 0x4d80db
mov ecx, dword [esi + 0x110]
push edx
mov eax, dword [ecx]
call dword [eax + 0x8c]
push 0
push 0x1f4
push 1
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [esi + 0xf4], 2
je 0x4d8114
push 1
push 0
push dword [esi + 0x30]
mov dword [esi + 0xf4], 2
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, esi
call fcn.004d7260
cmp dword [esi + 0xf0], 2
jne 0x4d8171
mov eax, dword [esi]
mov ecx, esi
mov byte [esi + 0xf8], 1
mov eax, dword [eax + 0x12c]
call eax
mov ecx, dword [esi + 0x110]
test al, al
cmovne edi, dword [esp + 0x14]
mov dword [esi + 0xfc], edi
mov eax, dword [ecx]
call dword [eax + 0x5c]
mov eax, dword [eax]
mov dword [esi + 0x100], eax
jmp 0x4d8171
mov eax, dword [ebx + 0x10]
lea ecx, [ebx + 0x10]
call dword [eax + 0x60]
jmp 0x4d8171
cmp eax, 0x8002
jne 0x4d77f2
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc4]
mov ecx, dword [esp + 0x3c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051a19b
mov esp, ebp
pop ebp
ret 0x10