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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c18e8
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 0x4714fd
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x4714fd
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.0045cfa0
mov edx, dword [ebp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004b2fd2
push ebp
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], esi
call fcn.004b822c
lea eax, [esp + 0x38]
mov ecx, ebp
push eax
mov dword [esp + 0x74], esi
call fcn.0046ead0
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, ebp
call fcn.0046efb0
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.004b8090
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.004b2fd2
cmp eax, ebp
jne 0x471282
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x471282
push 0
push 0
lea eax, [esp + 0x54]
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x471278
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebp
call fcn.0046fb20
cmp eax, 1
je 0x471262
mov eax, dword [esp + 0x50]
cmp eax, 0x100
jne 0x471092
cmp dword [esp + 0x54], 0x1b
je 0x471282
jmp 0x47109d
cmp eax, 0x204
je 0x471282
mov edx, dword [esp + 0x4c]
mov ecx, dword [ebp + 0x1c]
cmp edx, ecx
je 0x4710b8
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x471262
cmp eax, 0x113
jne 0x471159
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x28]
or bl, 0xff
cmp eax, ecx
mov byte [esp + 0x7c], 0xff
jg 0x4710de
mov byte [esp + 0x7c], 0
jmp 0x4710e9
cmp eax, dword [esp + 0x30]
jl 0x4710e9
mov byte [esp + 0x7c], 1
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jg 0x4710f9
xor bl, bl
jmp 0x471101
cmp eax, dword [esp + 0x34]
jl 0x471101
mov bl, 1
cmp byte [esp + 0x7c], 0xff
jne 0x471111
cmp bl, 0xff
je 0x471262
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47113a
push eax
lea ecx, [esp + 0x3c]
push esi
push ecx
mov ecx, ebp
call fcn.0046fa20
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 0x471262
cmp eax, 0x113
je 0x47118f
cmp eax, 0x1ff
jbe 0x47117f
cmp eax, 0x203
jbe 0x47118f
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x471262
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.0046efb0
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 0x47120b
push eax
lea eax, [esp + 0x3c]
push esi
push eax
mov ecx, ebp
call fcn.0046fa20
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 0x471239
push eax
lea edx, [esp + 0x3c]
push esi
push edx
mov ecx, ebp
call fcn.0046fa20
test ebx, ebx
jne 0x47124f
mov eax, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x80], eax
jmp 0x471262
cmp ebx, 0x2afa
jne 0x471262
mov dword [esp + 0x80], 1
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004b2fd2
cmp eax, ebp
je 0x47103d
jmp 0x471282
mov eax, dword [esp + 0x54]
push eax
call fcn.004bcc54
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 0x4712b5
push eax
lea edx, [esp + 0x3c]
push esi
push edx
mov ecx, ebp
call fcn.0046fa20
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 0x4714ee
cmp dword [esp + 0x84], 0x2713
jne 0x4714ee
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 0x471335
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 0x471355
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 0x47138c
cmp eax, edi
je 0x471381
push eax
call fcn.004b12e4
add esp, 4
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
jmp 0x47148f
cmp eax, edi
jne 0x4713c4
lea edi, [esi*4]
push edi
call fcn.004b12bb
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 0x47148f
mov ecx, dword [ebx + 0xc]
cmp esi, ecx
jg 0x4713e2
cmp esi, edx
jle 0x4713da
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 0x47148f
mov eax, dword [ebx + 0x10]
cmp eax, edi
jne 0x47140c
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x471400
mov eax, 4
jmp 0x47140c
cmp eax, 0x400
jle 0x47140c
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x84], eax
jl 0x471420
mov dword [esp + 0x84], esi
mov eax, dword [esp + 0x84]
lea ecx, [eax*4]
push ecx
call fcn.004b12bb
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.004b12e4
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.0046fbb0
mov ecx, ebp
call fcn.0046ed20
mov ebp, dword [ebp + 0x134]
test ebp, ebp
je 0x4714db
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.004b829e
jmp 0x47150c
test esi, esi
je 0x4714db
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
jmp 0x4714db
mov ecx, dword [esp + 0x78]
cmp ecx, esi
je 0x47150c
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