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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c43a8
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 0x47df2d
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x47df2d
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.004699e0
mov edx, dword [ebp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004b2d04
push ebp
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], esi
call fcn.004b7f23
lea eax, [esp + 0x38]
mov ecx, ebp
push eax
mov dword [esp + 0x74], esi
call fcn.0047b510
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, ebp
call fcn.0047b9f0
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.004b7d87
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.004b2d04
cmp eax, ebp
jne 0x47dcb2
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x47dcb2
push 0
push 0
lea eax, [esp + 0x54]
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x47dca8
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebp
call fcn.0047c550
cmp eax, 1
je 0x47dc92
mov eax, dword [esp + 0x50]
cmp eax, 0x100
jne 0x47dac2
cmp dword [esp + 0x54], 0x1b
je 0x47dcb2
jmp 0x47dacd
cmp eax, 0x204
je 0x47dcb2
mov edx, dword [esp + 0x4c]
mov ecx, dword [ebp + 0x1c]
cmp edx, ecx
je 0x47dae8
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x47dc92
cmp eax, 0x113
jne 0x47db89
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x28]
or bl, 0xff
cmp eax, ecx
mov byte [esp + 0x7c], 0xff
jg 0x47db0e
mov byte [esp + 0x7c], 0
jmp 0x47db19
cmp eax, dword [esp + 0x30]
jl 0x47db19
mov byte [esp + 0x7c], 1
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jg 0x47db29
xor bl, bl
jmp 0x47db31
cmp eax, dword [esp + 0x34]
jl 0x47db31
mov bl, 1
cmp byte [esp + 0x7c], 0xff
jne 0x47db41
cmp bl, 0xff
je 0x47dc92
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47db6a
push eax
lea ecx, [esp + 0x3c]
push esi
push ecx
mov ecx, ebp
call fcn.0047c450
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 0x47dc92
cmp eax, 0x113
je 0x47dbbf
cmp eax, 0x1ff
jbe 0x47dbaf
cmp eax, 0x203
jbe 0x47dbbf
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x47dc92
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.0047b9f0
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 0x47dc3b
push eax
lea eax, [esp + 0x3c]
push esi
push eax
mov ecx, ebp
call fcn.0047c450
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 0x47dc69
push eax
lea edx, [esp + 0x3c]
push esi
push edx
mov ecx, ebp
call fcn.0047c450
test ebx, ebx
jne 0x47dc7f
mov eax, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x80], eax
jmp 0x47dc92
cmp ebx, 0x2afa
jne 0x47dc92
mov dword [esp + 0x80], 1
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004b2d04
cmp eax, ebp
je 0x47da6d
jmp 0x47dcb2
mov eax, dword [esp + 0x54]
push eax
call fcn.004be500
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 0x47dce5
push eax
lea edx, [esp + 0x3c]
push esi
push edx
mov ecx, ebp
call fcn.0047c450
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 0x47df1e
cmp dword [esp + 0x84], 0x2713
jne 0x47df1e
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 0x47dd65
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 0x47dd85
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 0x47ddbc
cmp eax, edi
je 0x47ddb1
push eax
call fcn.004b0ff5
add esp, 4
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
jmp 0x47debf
cmp eax, edi
jne 0x47ddf4
lea edi, [esi*4]
push edi
call fcn.004b0fcc
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 0x47debf
mov ecx, dword [ebx + 0xc]
cmp esi, ecx
jg 0x47de12
cmp esi, edx
jle 0x47de0a
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 0x47debf
mov eax, dword [ebx + 0x10]
cmp eax, edi
jne 0x47de3c
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x47de30
mov eax, 4
jmp 0x47de3c
cmp eax, 0x400
jle 0x47de3c
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x84], eax
jl 0x47de50
mov dword [esp + 0x84], esi
mov eax, dword [esp + 0x84]
lea ecx, [eax*4]
push ecx
call fcn.004b0fcc
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.004b0ff5
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.0047c5e0
mov ecx, ebp
call fcn.0047b760
mov ebp, dword [ebp + 0x134]
test ebp, ebp
je 0x47df0b
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.004b7f95
jmp 0x47df3c
test esi, esi
je 0x47df0b
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
jmp 0x47df0b
mov ecx, dword [esp + 0x78]
cmp ecx, esi
je 0x47df3c
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