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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49ddb8
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 0x46890d
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x46890d
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.00453cc0
mov edx, dword [ebp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0048fd69
push ebp
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], esi
call fcn.00494eab
lea eax, [esp + 0x38]
mov ecx, ebp
push eax
mov dword [esp + 0x74], esi
call fcn.00465d00
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, ebp
call fcn.004661e0
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.00494d0f
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.0048fd69
cmp eax, ebp
jne 0x468692
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x468692
push 0
push 0
lea eax, [esp + 0x54]
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x468688
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebp
call fcn.00466f30
cmp eax, 1
je 0x468672
mov eax, dword [esp + 0x50]
cmp eax, 0x100
jne 0x4684a2
cmp dword [esp + 0x54], 0x1b
je 0x468692
jmp 0x4684ad
cmp eax, 0x204
je 0x468692
mov edx, dword [esp + 0x4c]
mov ecx, dword [ebp + 0x1c]
cmp edx, ecx
je 0x4684c8
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x468672
cmp eax, 0x113
jne 0x468569
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x28]
or bl, 0xff
cmp eax, ecx
mov byte [esp + 0x7c], 0xff
jg 0x4684ee
mov byte [esp + 0x7c], 0
jmp 0x4684f9
cmp eax, dword [esp + 0x30]
jl 0x4684f9
mov byte [esp + 0x7c], 1
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jg 0x468509
xor bl, bl
jmp 0x468511
cmp eax, dword [esp + 0x34]
jl 0x468511
mov bl, 1
cmp byte [esp + 0x7c], 0xff
jne 0x468521
cmp bl, 0xff
je 0x468672
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46854a
push eax
lea ecx, [esp + 0x3c]
push esi
push ecx
mov ecx, ebp
call fcn.00466e30
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 0x468672
cmp eax, 0x113
je 0x46859f
cmp eax, 0x1ff
jbe 0x46858f
cmp eax, 0x203
jbe 0x46859f
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x468672
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.004661e0
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 0x46861b
push eax
lea eax, [esp + 0x3c]
push esi
push eax
mov ecx, ebp
call fcn.00466e30
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 0x468649
push eax
lea edx, [esp + 0x3c]
push esi
push edx
mov ecx, ebp
call fcn.00466e30
test ebx, ebx
jne 0x46865f
mov eax, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x80], eax
jmp 0x468672
cmp ebx, 0x2afa
jne 0x468672
mov dword [esp + 0x80], 1
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0048fd69
cmp eax, ebp
je 0x46844d
jmp 0x468692
mov eax, dword [esp + 0x54]
push eax
call fcn.0049913f
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 0x4686c5
push eax
lea edx, [esp + 0x3c]
push esi
push edx
mov ecx, ebp
call fcn.00466e30
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 0x4688fe
cmp dword [esp + 0x84], 0x2713
jne 0x4688fe
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 0x468745
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 0x468765
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 0x46879c
cmp eax, edi
je 0x468791
push eax
call fcn.0048e018
add esp, 4
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
jmp 0x46889f
cmp eax, edi
jne 0x4687d4
lea edi, [esi*4]
push edi
call fcn.0048dfef
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 0x46889f
mov ecx, dword [ebx + 0xc]
cmp esi, ecx
jg 0x4687f2
cmp esi, edx
jle 0x4687ea
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 0x46889f
mov eax, dword [ebx + 0x10]
cmp eax, edi
jne 0x46881c
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x468810
mov eax, 4
jmp 0x46881c
cmp eax, 0x400
jle 0x46881c
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x84], eax
jl 0x468830
mov dword [esp + 0x84], esi
mov eax, dword [esp + 0x84]
lea ecx, [eax*4]
push ecx
call fcn.0048dfef
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.0048e018
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.00466fc0
mov ecx, ebp
call fcn.00465f50
mov ebp, dword [ebp + 0x134]
test ebp, ebp
je 0x4688eb
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.00494f1d
jmp 0x46891c
test esi, esi
je 0x4688eb
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
jmp 0x4688eb
mov ecx, dword [esp + 0x78]
cmp ecx, esi
je 0x46891c
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