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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a1ef8
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 0x46550d
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x46550d
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.00450ad0
mov edx, dword [ebp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00493687
push ebp
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], esi
call fcn.004987cb
lea eax, [esp + 0x38]
mov ecx, ebp
push eax
mov dword [esp + 0x74], esi
call fcn.00462900
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, ebp
call fcn.00462de0
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.0049862f
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.00493687
cmp eax, ebp
jne 0x465292
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x465292
push 0
push 0
lea eax, [esp + 0x54]
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x465288
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebp
call fcn.00463b30
cmp eax, 1
je 0x465272
mov eax, dword [esp + 0x50]
cmp eax, 0x100
jne 0x4650a2
cmp dword [esp + 0x54], 0x1b
je 0x465292
jmp 0x4650ad
cmp eax, 0x204
je 0x465292
mov edx, dword [esp + 0x4c]
mov ecx, dword [ebp + 0x1c]
cmp edx, ecx
je 0x4650c8
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x465272
cmp eax, 0x113
jne 0x465169
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x28]
or bl, 0xff
cmp eax, ecx
mov byte [esp + 0x7c], 0xff
jg 0x4650ee
mov byte [esp + 0x7c], 0
jmp 0x4650f9
cmp eax, dword [esp + 0x30]
jl 0x4650f9
mov byte [esp + 0x7c], 1
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jg 0x465109
xor bl, bl
jmp 0x465111
cmp eax, dword [esp + 0x34]
jl 0x465111
mov bl, 1
cmp byte [esp + 0x7c], 0xff
jne 0x465121
cmp bl, 0xff
je 0x465272
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46514a
push eax
lea ecx, [esp + 0x3c]
push esi
push ecx
mov ecx, ebp
call fcn.00463a30
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 0x465272
cmp eax, 0x113
je 0x46519f
cmp eax, 0x1ff
jbe 0x46518f
cmp eax, 0x203
jbe 0x46519f
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x465272
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.00462de0
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 0x46521b
push eax
lea eax, [esp + 0x3c]
push esi
push eax
mov ecx, ebp
call fcn.00463a30
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 0x465249
push eax
lea edx, [esp + 0x3c]
push esi
push edx
mov ecx, ebp
call fcn.00463a30
test ebx, ebx
jne 0x46525f
mov eax, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x80], eax
jmp 0x465272
cmp ebx, 0x2afa
jne 0x465272
mov dword [esp + 0x80], 1
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00493687
cmp eax, ebp
je 0x46504d
jmp 0x465292
mov eax, dword [esp + 0x54]
push eax
call fcn.0049d2ef
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 0x4652c5
push eax
lea edx, [esp + 0x3c]
push esi
push edx
mov ecx, ebp
call fcn.00463a30
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 0x4654fe
cmp dword [esp + 0x84], 0x2713
jne 0x4654fe
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 0x465345
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 0x465365
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 0x46539c
cmp eax, edi
je 0x465391
push eax
call fcn.00491938
add esp, 4
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
jmp 0x46549f
cmp eax, edi
jne 0x4653d4
lea edi, [esi*4]
push edi
call fcn.0049190f
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 0x46549f
mov ecx, dword [ebx + 0xc]
cmp esi, ecx
jg 0x4653f2
cmp esi, edx
jle 0x4653ea
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 0x46549f
mov eax, dword [ebx + 0x10]
cmp eax, edi
jne 0x46541c
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x465410
mov eax, 4
jmp 0x46541c
cmp eax, 0x400
jle 0x46541c
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x84], eax
jl 0x465430
mov dword [esp + 0x84], esi
mov eax, dword [esp + 0x84]
lea ecx, [eax*4]
push ecx
call fcn.0049190f
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.00491938
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.00463bc0
mov ecx, ebp
call fcn.00462b50
mov ebp, dword [ebp + 0x134]
test ebp, ebp
je 0x4654eb
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.0049883d
jmp 0x46551c
test esi, esi
je 0x4654eb
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
jmp 0x4654eb
mov ecx, dword [esp + 0x78]
cmp ecx, esi
je 0x46551c
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