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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [0x5f0524]
xor eax, esp
mov dword [esp + 0xc8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov dword [esp + 0x7c], eax
mov ecx, dword [ebp + 0xc]
push esi
push edi
cmp byte [ebx + 0xab8], 0
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], edx
jne 0x4cfe2e
mov eax, dword [ebx + 0x5d8]
mov dword [esp + 0x58], 0
mov eax, dword [eax + edx*4]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x608]
mov esi, dword [eax + ecx*4]
mov dword [esp + 0x38], esi
mov eax, dword [esi + 0x1c]
mov edi, dword [eax + edx*4]
mov dword [esp + 0x3c], edi
test edx, edx
je 0x4cf47e
cmp byte [ebx + 0x49b], 0
je 0x4cf49b
push 2
push ecx
push 0x102c
push dword [ebx + 0x98]
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [esp + 0x60], 1
test eax, eax
jne 0x4cf4a0
mov byte [esp + 0x60], 0
mov edx, dword [esp + 0x28]
test dl, 1
je 0x4cf4ba
cmp byte [ebx + 0xac2], 0
mov byte [esp + 0x90], 1
jne 0x4cf4c2
mov byte [esp + 0x90], 0
cmp byte [esi + 0x25], 0
jne 0x4cf4d2
cmp byte [edi + 0x28], 0
jne 0x4cf4d2
xor dl, dl
jmp 0x4cf4d4
mov dl, 1
cmp byte [esi + 0x26], 0
mov al, byte [edi + 0x29]
mov dword [esp + 0x18], edx
mov byte [esp + 0x68], al
jne 0x4cf4f0
cmp byte [edi + 0x2a], 0
mov byte [esp + 0x17], 0
je 0x4cf4f5
mov byte [esp + 0x17], 1
cmp byte [edi + 0x31], 0
je 0x4cf506
cmp byte [edi + 0x32], 0
mov byte [esp + 0x24], 1
je 0x4cf50b
mov byte [esp + 0x24], 0
mov eax, dword [edi + 0x1c]
xor cl, cl
mov esi, dword [edi + 0x14]
cmp eax, 0x424660
mov dword [esp + 0x8c], esi
mov esi, dword [esp + 0x38]
sete byte [esp + 0x9c]
cmp eax, 0x424840
mov dword [esp + 0x10], ecx
mov byte [esp + 0x54], cl
sete byte [esp + 0x98]
cmp eax, 0x424840
jne 0x4cf55e
cmp dword [esp + 0x8c], 0xa
mov eax, 1
movzx edx, dl
cmove edx, eax
mov dword [esp + 0x18], edx
cmp byte [edi + 0x33], 0
jne 0x4cf56e
cmp byte [edi + 0x32], 0
je 0x4cf648
lea eax, [esp + 0xc4]
mov dword [esp + 0x2c], 0
push eax
push dword [ebx + 0x30]
xorps xmm0, xmm0
mov dword [esp + 0x38], 0
movups xmmword [esp + 0xcc], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x4cf5c1
mov eax, dword [esp + 0xc4]
sub dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc8]
sub dword [esp + 0x30], eax
jmp 0x4cf5d1
mov dword [esp + 0x30], 0xffff8001
mov dword [esp + 0x2c], 0xffff8001
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xb4]
push eax
push 0
push edx
push dword [esp + 0x34]
xorps xmm0, xmm0
lea ecx, [ebx + 0x10]
movups xmmword [esp + 0xc4], xmm0
call fcn.004fce86
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0xb4]
mov edx, dword [edi + 0x34]
cmp edx, ecx
jg 0x4cf644
mov eax, dword [edi + 0x3c]
add eax, edx
cmp eax, ecx
jle 0x4cf644
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0xb8]
mov ecx, dword [edi + 0x38]
cmp ecx, edx
jg 0x4cf644
mov eax, dword [edi + 0x40]
add eax, ecx
mov ecx, dword [esp + 0x10]
cmp eax, edx
movzx ecx, cl
mov eax, 1
cmovg ecx, eax
mov dword [esp + 0x10], ecx
mov byte [esp + 0x54], cl
jmp 0x4cf648
mov ecx, dword [esp + 0x10]
test cl, cl
je 0x4cf6d9
mov eax, dword [ebx + 0xa28]
cmp eax, edi
je 0x4cf68a
test eax, eax
je 0x4cf67e
mov eax, dword [ebx + 0xa24]
push ecx
mov ecx, ebx
mov eax, dword [eax + 0xc]
push eax
mov dword [ebx + 0xa24], esi
mov dword [ebx + 0xa28], edi
call fcn.004cef00
jmp 0x4cf68a
mov dword [ebx + 0xa24], esi
mov dword [ebx + 0xa28], edi
mov eax, dword [ebx + 0x98]
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_GetCapture]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
je 0x4cf6a9
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
cmp byte [edi + 0x32], 0
je 0x4cf6c4
movzx eax, byte [esp + 0x24]
mov ecx, 1
cmp byte [edi + 0x31], 0
cmovne eax, ecx
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp byte [edi + 0x33], cl
movzx eax, al
cmovne ecx, eax
mov byte [esp + 0x54], cl
jmp 0x4cf6ea
movzx eax, byte [esp + 0x24]
xor ecx, ecx
cmp byte [edi + 0x32], cl
cmovne eax, ecx
mov byte [esp + 0x24], al
mov eax, dword [ebx + 0xab0]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x5c], 0xffffffff
cmp eax, ecx
jne 0x4cf776
mov eax, dword [ebx + 0x5d8]
mov dword [esp + 0x5c], 0
mov eax, dword [eax]
cmp byte [eax + 0x24], 0
je 0x4cf7d6
mov eax, dword [ebx + 0xab4]
cmp eax, 2
jne 0x4cf737
mov byte [esp + 0x60], 1
jmp 0x4cf7de
mov edx, dword [esp + 0x20]
cmp byte [edx + 0x24], 0
je 0x4cf7d6
cmp eax, 1
jne 0x4cf763
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x4cf7d6
call fcn.004d6580
lea esi, [eax + 1]
mov dword [esp + 0x10], esi
jmp 0x4cf7de
test ecx, ecx
jle 0x4cf74a
mov eax, dword [ebx + 0x608]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, dword [eax + 0x30]
jmp 0x4cf74d
dec eax
cmp eax, ecx
jne 0x4cf7de
mov eax, dword [ebx + 0x5d8]
mov dword [esp + 0x5c], 1
mov eax, dword [eax]
cmp byte [eax + 0x24], 0
je 0x4cf7d6
mov eax, dword [ebx + 0xab4]
cmp eax, 2
je 0x4cf7de
mov edx, dword [esp + 0x20]
cmp byte [edx + 0x24], 0
je 0x4cf7d6
test eax, eax
je 0x4cf74a
mov eax, dword [ebx + 0x5ec]
lea ecx, [ebx + 0x5ec]
call dword [eax + 0x30]
mov edx, dword [esp + 0x28]
lea ecx, [edx + 1]
cmp ecx, eax
jge 0x4cf74a
mov eax, dword [ebx + 0x608]
mov eax, dword [eax + edx*4 + 4]
mov ecx, dword [eax + 0x30]
jmp 0x4cf74d
mov dword [esp + 0x10], 0
mov eax, dword [ebx + 0xa9c]
xorps xmm0, xmm0
mov ecx, dword [ebx + 0xa98]
test eax, eax
movups xmmword [esp + 0xa4], xmm0
cmovne ecx, eax
lea eax, [esp + 0xa4]
push eax
push 0
push dword [esp + 0x24]
mov dword [esp + 0x7c], ecx
lea ecx, [ebx + 0x10]
push dword [esp + 0x34]
call fcn.004fce86
cmp dword [esp + 0x1c], 0
jne 0x4cf85f
xorps xmm0, xmm0
lea ecx, [ebx + 0x10]
movups xmmword [esp + 0xb4], xmm0
call fcn.00502c7d
lea ecx, [esp + 0xb4]
push ecx
push 0
push 0x1207
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0xb4]
add dword [esp + 0xa4], eax
add dword [esp + 0xac], eax
mov eax, dword [ebx + 0xad0]
lea ecx, [ebx + 0xad0]
call dword [eax + 0x30]
mov edx, dword [esp + 0x1c]
mov ecx, eax
mov eax, dword [ebx + 0xaec]
cmp dword [eax + ecx*4 - 4], edx
jne 0x4cf8ae
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
dec eax
cmp dword [esp + 0xac], eax
jge 0x4cf8ae
cmp byte [ebx + 0xa94], 0
mov ecx, ebx
mov eax, dword [ebx]
je 0x4cf8a4
call dword [eax + 0x24]
dec eax
jmp 0x4cf8a7
call dword [eax + 0x24]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x22], 0
je 0x4cf925
cmp dword [edi + 0x20], 0
je 0x4cf925
mov eax, dword [ebx + 0xacc]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, eax
call fcn.00408f00
cmp byte [edi + 0x30], 0
mov esi, eax
mov ecx, dword [ebx + 0xacc]
je 0x4cf8ff
push esi
call fcn.004cc740
mov ecx, dword [ebx + 0xacc]
push esi
call fcn.004ccac0
jmp 0x4cf914
sub esp, 0x20
push esi
call fcn.004cc930
mov ecx, dword [ebx + 0xacc]
push esi
call fcn.004ccba0
mov dword [esp + 0x58], eax
test esi, esi
je 0x4cf925
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
call dword [eax + 4]
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0xac]
sub edx, dword [esp + 0xa8]
sub ecx, dword [esp + 0xa4]
call fcn.00466aa0
mov ecx, ebx
mov dword [ebx + 0xa4], eax
neg ecx
lea edx, [ebx + 0x10]
push 0
sbb ecx, ecx
and ecx, edx
mov edx, eax
call fcn.0049d120
add esp, 4
mov esi, eax
mov ecx, edi
mov dword [esp + 0x50], esi
push 0
call fcn.004d68e0
cmp byte [esp + 0x17], 0
mov edx, dword [esp + 0x18]
mov dword [esp + 0x40], eax
je 0x4cf988
mov ecx, 0x3e4
jmp 0x4cf997
test dl, dl
mov ecx, 0x184
mov eax, 0x2b4
cmovne ecx, eax
lea eax, [ecx + ebx]
mov byte [esp + 0x88], 1
mov dword [esp + 0x18], eax
test dl, dl
mov eax, 0x21c
mov byte [esp + 0x80], 0
mov ecx, 0x34c
mov dword [esp + 0x44], 0
cmovne eax, ecx
mov dword [esp + 0x48], 0
add eax, ebx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
cmp eax, dword [ebx + 0xb74]
jne 0x4cfb10
mov byte [esp + 0x88], 0
mov byte [esp + 0x80], 1
call fcn.0043f250
push dword [esp + 0x40]
mov esi, eax
mov ecx, esi
mov dword [esp + 0x48], esi
mov edx, dword [esi]
call dword [edx + 0x38]
mov edx, dword [esi]
mov ecx, esi
push dword [ebx + 0xb78]
call dword [edx + 0x54]
cmp byte [ebx + 0xb7c], 0
je 0x4cfa28
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x6c]
cmp byte [ebx + 0xb7d], 0
je 0x4cfa3a
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x74]
mov ecx, dword [esp + 0x18]
mov esi, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [esp + 0x18]
sar eax, 0x10
movzx eax, al
push eax
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [esp + 0x1c]
shr eax, 8
movzx eax, al
push eax
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [esp + 0x4c]
movzx eax, al
push eax
call dword [esi + 0x40]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
call fcn.0043f250
push dword [esp + 0x40]
mov esi, eax
mov ecx, esi
mov dword [esp + 0x4c], esi
mov edx, dword [esi]
call dword [edx + 0x38]
mov edx, dword [esi]
mov ecx, esi
push dword [ebx + 0xb78]
call dword [edx + 0x54]
cmp byte [ebx + 0xb7c], 0
je 0x4cfaad
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x6c]
cmp byte [ebx + 0xb7d], 0
je 0x4cfabf
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x74]
mov ecx, dword [esp + 0x34]
mov esi, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [esp + 0x34]
sar eax, 0x10
movzx eax, al
push eax
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [esp + 0x38]
shr eax, 8
movzx eax, al
push eax
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [esp + 0x50]
movzx eax, al
push eax
call dword [esi + 0x40]
mov ecx, dword [ebx + 0xb80]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x34], eax
mov eax, dword [ecx]
call dword [eax + 0x50]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x64], 0
mov dl, byte [ecx + 0x24]
test dl, dl
je 0x4cfb5a
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x4cfb56
call fcn.004d6580
mov ecx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x1c], eax
jmp 0x4cfb62
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], 0
test esi, esi
je 0x4cfb6f
lea eax, [esi + 8]
mov dword [esp + 0x38], eax
jmp 0x4cfb77
mov dword [esp + 0x38], 0
movzx eax, byte [ecx + 0x23]
mov esi, dword [edi + 0x2c]
mov edi, dword [edi + 0x24]
mov byte [esp + 0x94], al
movzx eax, byte [ecx + 0x22]
lea ecx, [ebx + 0x5ec]
mov byte [esp + 0x2c], al
mov eax, dword [ecx]
mov byte [esp + 0xa0], dl
call dword [eax + 0x30]
push dword [esp + 0x98]
lea ecx, [esp + 0x68]
mov edx, dword [esp + 0x74]
push dword [esp + 0xa0]
dec eax
push dword [esp + 0x5c]
mov edx, dword [edx]
push dword [esp + 0x30]
push dword [esp + 0x90]
push dword [esp + 0x9c]
push ecx
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esp + 0x98]
push ecx
push dword [esp + 0x44]
mov ecx, dword [esp + 0x60]
push esi
push dword [esp + 0xd0]
mov esi, dword [esp + 0x54]
push 0
push edi
push dword [esp + 0xd0]
push dword [esp + 0x98]
push dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x64]
push ecx
push dword [esp + 0x90]
mov ecx, dword [esp + 0x7c]
cmp ecx, eax
push dword [esp + 0xe0]
sete al
test ecx, ecx
movzx eax, al
push eax
sete al
mov ecx, dword [esp + 0xcc]
movzx eax, al
push eax
push dword [esp + 0xbc]
movzx eax, byte [ebx + 0x49b]
push dword [esp + 0x74]
push dword [esp + 0xf8]
push eax
push dword [esp + 0xd8]
mov eax, dword [esp + 0x124]
push dword [esp + 0xd4]
sub eax, dword [esp + 0x120]
push dword [esi + 0x18]
push eax
mov eax, dword [esp + 0x12c]
sub eax, dword [esp + 0x124]
push eax
push 0
push 0
push dword [ebx + 0xa4]
push dword [esp + 0xc8]
call dword [edx + 0x28]
mov eax, dword [esp + 0x64]
cmp dword [ebx + 0xb70], eax
jge 0x4cfcb3
mov dword [ebx + 0xb70], eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4cfcc3
lea ecx, [eax + 4]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4cfcd3
lea ecx, [eax + 4]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x74]
mov dword [ecx + 0x34], eax
mov eax, dword [esp + 0x78]
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x7c]
mov dword [ecx + 0x3c], eax
mov eax, dword [esp + 0x64]
mov dword [ecx + 0x40], eax
cmp byte [esi + 0x22], 0
je 0x4cfd0f
cmp dword [ecx + 0x20], 0
je 0x4cfd0f
mov eax, dword [ebx + 0xacc]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebx + 0xb84]
test ecx, ecx
je 0x4cfd90
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [ebx + 0xb84]
mov dword [esp + 0x3c], eax
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov ecx, dword [ebx + 0xb84]
mov edi, eax
mov edx, dword [ecx]
call dword [edx + 0x24]
mov ecx, dword [esp + 0x4c]
mov ebx, eax
mov ecx, dword [ecx + 0xb84]
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov esi, eax
mov dword [esp + 0x6c], edi
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x50]
push dword [eax + 0x98]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
lea eax, [edx + esi]
push eax
lea eax, [ecx + ebx]
push eax
push edx
push ecx
mov ecx, dword [esp + 0x94]
call fcn.004fbd8e
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0xb0]
sub edx, dword [esp + 0xa8]
mov esi, dword [esp + 0x50]
mov dword [ebx + 0x490], edx
test esi, esi
je 0x4cfdb1
lea edi, [esi + 8]
jmp 0x4cfdb3
xor edi, edi
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa4]
sub eax, ecx
mov ebx, dword [esp + 0xa8]
add ebx, dword [ebp + 0x1c]
add ecx, dword [ebp + 0x18]
mov dword [esp + 0x3c], eax
test edi, edi
jne 0x4cfddc
xor eax, eax
jmp 0x4cfddf
mov eax, dword [edi + 4]
push 0xcc0020
push 0
push 0
push eax
mov eax, dword [esp + 0x94]
push edx
push dword [esp + 0x50]
push ebx
push ecx
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_BitBlt]
mov ebx, dword [esp + 0x4c]
test esi, esi
je 0x4cfe11
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
call dword [eax + 4]
mov ecx, dword [ebx + 0xa4]
test ecx, ecx
je 0x4cfe2e
mov eax, dword [ecx + 4]
add ecx, 4
call dword [eax + 4]
mov dword [ebx + 0xa4], 0
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051a19b
mov esp, ebp
pop ebp
ret 0x18