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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4db878
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
mov ebp, ecx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0x154], esi
je 0x4a1edd
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x4a1edd
mov edi, dword [esp + 0x7c]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call fcn.0048d350
mov edx, dword [ebp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004cae75
push ebp
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], esi
call fcn.004d00d0
lea eax, [esp + 0x38]
mov ecx, ebp
push eax
mov dword [esp + 0x74], esi
call fcn.0049f2e0
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, ebp
call fcn.0049f7c0
mov esi, dword [eax]
mov edx, dword [esp + 0x40]
push 1
push edi
mov ebx, dword [eax + 4]
push edx
call dword [sym.imp.GDI32.dll_DPtoLP]
mov eax, dword [edi]
mov ecx, dword [esp + 0x80]
add eax, esi
mov esi, dword [edi + 4]
add esi, ebx
xor ebx, ebx
mov dword [edi + 4], esi
mov esi, dword [esp + 0x78]
push ebx
mov dword [edi], eax
mov eax, dword [esi]
push edi
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.004cff34
mov edx, dword [ebp + 0x1c]
push ebx
push 0x64
push 0x65
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esp + 0x80], ebx
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004cae75
cmp eax, ebp
jne 0x4a1c62
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x4a1c62
push 0
push 0
lea eax, [esp + 0x54]
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4a1c58
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebp
call fcn.004a0500
cmp eax, 1
je 0x4a1c42
mov eax, dword [esp + 0x50]
cmp eax, 0x100
jne 0x4a1a72
cmp dword [esp + 0x54], 0x1b
je 0x4a1c62
jmp 0x4a1a7d
cmp eax, 0x204
je 0x4a1c62
mov edx, dword [esp + 0x4c]
mov ecx, dword [ebp + 0x1c]
cmp edx, ecx
je 0x4a1a98
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4a1c42
cmp eax, 0x113
jne 0x4a1b39
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x28]
or bl, 0xff
cmp eax, ecx
mov byte [esp + 0x7c], 0xff
jg 0x4a1abe
mov byte [esp + 0x7c], 0
jmp 0x4a1ac9
cmp eax, dword [esp + 0x30]
jl 0x4a1ac9
mov byte [esp + 0x7c], 1
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jg 0x4a1ad9
xor bl, bl
jmp 0x4a1ae1
cmp eax, dword [esp + 0x34]
jl 0x4a1ae1
mov bl, 1
cmp byte [esp + 0x7c], 0xff
jne 0x4a1af1
cmp bl, 0xff
je 0x4a1c42
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a1b1a
push eax
lea ecx, [esp + 0x3c]
push esi
push ecx
mov ecx, ebp
call fcn.004a0400
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_DeleteMetaFile]
mov dword [esp + 0x10], 0
mov eax, dword [ebp]
xor ecx, ecx
mov ch, bl
push 1
mov cl, byte [esp + 0x80]
push 0
push ecx
mov ecx, ebp
call dword [eax + 0xbc]
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x84], 0x2713
jne 0x4a1c42
cmp eax, 0x113
je 0x4a1b6f
cmp eax, 0x1ff
jbe 0x4a1b5f
cmp eax, 0x203
jbe 0x4a1b6f
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4a1c42
mov ecx, dword [ebp + 0x1c]
lea eax, [esp + 0x60]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x60]
push 1
push edx
push eax
call dword [sym.imp.GDI32.dll_DPtoLP]
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, ebp
call fcn.0049f7c0
mov ebx, dword [edi]
mov edx, eax
mov eax, dword [edx]
sub eax, ebx
mov ebx, dword [edi + 4]
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x60]
add edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x64]
sub ecx, ebx
add edx, ecx
test eax, eax
mov dword [esp + 0x64], edx
je 0x4a1beb
push eax
lea eax, [esp + 0x3c]
push esi
push eax
mov ecx, ebp
call fcn.004a0400
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.GDI32.dll_DeleteMetaFile]
mov dword [esp + 0x10], 0
mov edx, dword [esi]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x4c]
push eax
push ecx
push 0x2713
mov ecx, esi
call dword [edx + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a1c19
push eax
lea edx, [esp + 0x3c]
push esi
push edx
mov ecx, ebp
call fcn.004a0400
test ebx, ebx
jne 0x4a1c2f
mov eax, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x80], eax
jmp 0x4a1c42
cmp ebx, 0x2afa
jne 0x4a1c42
mov dword [esp + 0x80], 1
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004cae75
cmp eax, ebp
je 0x4a1a1d
jmp 0x4a1c62
mov eax, dword [esp + 0x54]
push eax
call fcn.004d4a87
mov ecx, dword [ebp + 0x1c]
push 0x65
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a1c95
push eax
lea edx, [esp + 0x3c]
push esi
push edx
mov ecx, ebp
call fcn.004a0400
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_DeleteMetaFile]
mov eax, dword [esp + 0x80]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x14]
cmp dword [esp + 0x14], 1
jne 0x4a1ece
cmp dword [esp + 0x84], 0x2713
jne 0x4a1ece
call dword [sym.imp.USER32.dll_GetMessagePos]
mov ecx, eax
lea edx, [esp + 0x18]
shr eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x1c]
and ecx, 0xffff
push edx
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x4a1d15
mov ecx, dword [esi + 0xc]
add ecx, 0x1f4
mov dword [esi + 0x14], ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x4a1d35
mov edx, dword [esi + 0x10]
add edx, 0x12c
mov dword [esi + 0x18], edx
mov ebx, dword [ebp + 0x154]
xor edi, edi
add ebx, 0xc
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov esi, edx
mov dword [esp + 0x7c], esi
inc esi
cmp esi, edi
jne 0x4a1d6c
cmp eax, edi
je 0x4a1d61
push eax
call fcn.004c9115
add esp, 4
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
jmp 0x4a1e6f
cmp eax, edi
jne 0x4a1da4
lea edi, [esi*4]
push edi
call fcn.004c90ec
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
jmp 0x4a1e6f
mov ecx, dword [ebx + 0xc]
cmp esi, ecx
jg 0x4a1dc2
cmp esi, edx
jle 0x4a1dba
mov ecx, esi
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebx + 8], esi
jmp 0x4a1e6f
mov eax, dword [ebx + 0x10]
cmp eax, edi
jne 0x4a1dec
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4a1de0
mov eax, 4
jmp 0x4a1dec
cmp eax, 0x400
jle 0x4a1dec
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x84], eax
jl 0x4a1e00
mov dword [esp + 0x84], esi
mov eax, dword [esp + 0x84]
lea ecx, [eax*4]
push ecx
call fcn.004c90ec
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x84], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x80]
mov edx, dword [ebx + 8]
lea esi, [ecx + 1]
lea edi, [eax + edx*4]
mov ecx, esi
xor eax, eax
sub ecx, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
push eax
call fcn.004c9115
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
add esp, 8
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], eax
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
push 0
mov dword [edx + eax*4], ecx
mov eax, dword [ebp + 0x154]
push ecx
mov ecx, ebp
mov dword [eax + 8], 1
call fcn.004a0590
mov ecx, ebp
call fcn.0049f530
mov ebp, dword [ebp + 0x134]
test ebp, ebp
je 0x4a1ebb
mov ecx, dword [ebp + 0x108]
push 0
push 0xffffffffffffffff
push 0x186
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x38]
mov dword [esp + 0x70], 0xffffffff
call fcn.004d0142
jmp 0x4a1eec
test esi, esi
je 0x4a1ebb
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
jmp 0x4a1ebb
mov ecx, dword [esp + 0x78]
cmp ecx, esi
je 0x4a1eec
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 0x14