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

Disassembly:
push 0xffffffffffffffff
push 0x50a9c2
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54b708]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x2c]
push 2
push 0xffffffffffffffff
xor ebp, ebp
push 0x100c
push eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
lea ebx, [ebp + 1]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
add esi, ebx
je 0x470aa0
mov ecx, dword [edi + 0x2c]
push 2
lea ebp, [esi - 1]
push ebp
push 0x100c
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
lea edx, [esp + 0x50]
push edx
add eax, 1
push ebp
lea ecx, [edi + 0xc]
mov esi, eax
call fcn.004a9020
test ebx, ebx
je 0x470a87
push 0
lea eax, [esp + 0x30]
push eax
push ebp
lea ecx, [edi + 0xc]
call fcn.004a9020
xor ebx, ebx
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x30]
push edx
mov eax, edx
push eax
call dword [sym.imp.USER32.dll_UnionRect]
test esi, esi
jne 0x470a47
xor ebp, ebp
lea ecx, [edi + 0xc]
push ecx
lea ecx, [esp + 0x60]
call fcn.004a67c7
lea ecx, [esp + 0x3c]
mov dword [esp + 0x7c], ebp
call fcn.004a62e0
mov esi, vtable.CBitmap.0
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], esi
mov byte [esp + 0x7c], 2
mov edx, dword [esp + 0x60]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x40]
call fcn.004a6734
test eax, eax
jne 0x470b1d
mov byte [esp + 0x7c], 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
call fcn.0041d380
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7c], 0
call fcn.004a67ae
lea ecx, [esp + 0x5c]
mov dword [esp + 0x7c], 0xffffffff
call fcn.004a681b
xor eax, eax
jmp 0x470cf7
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x64]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x28]
call fcn.004a69fb
test eax, eax
je 0x470ae5
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x40]
push ecx
push edx
call fcn.004a6a80
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
push 0xff00ff
push eax
push ecx
push ebp
push ebp
lea ecx, [esp + 0x50]
mov dword [esp + 0x30], esi
call fcn.004a6d9b
mov edx, dword [edi + 0x2c]
push 2
push 0xffffffffffffffff
push 0x100c
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
add eax, 1
je 0x470c08
lea ebp, [edi + 0x32c]
jmp 0x470ba4
mov eax, dword [esp + 0x18]
push 2
lea ebx, [eax - 1]
mov eax, dword [edi + 0x2c]
push ebx
push 0x100c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp]
add eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x30]
mov ecx, ebp
xor esi, esi
call eax
test eax, eax
jle 0x470bfb
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
neg ecx
push ecx
neg edx
push edx
push esi
push ebx
lea eax, [esp + 0x4c]
push eax
call fcn.004704f0
mov edx, dword [ebp]
mov eax, dword [edx + 0x30]
mov ecx, ebp
add esi, 1
call eax
cmp esi, eax
jl 0x470bd0
cmp dword [esp + 0x18], 0
jne 0x470ba0
mov esi, dword [esp + 0x1c]
xor ebp, ebp
cmp esi, ebp
jne 0x470c10
xor esi, esi
jmp 0x470c13
mov esi, dword [esi + 4]
mov ecx, dword [esp + 0x40]
push esi
push ecx
call fcn.004a6a80
push 8
call fcn.0049c081
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
mov byte [esp + 0x7c], 3
je 0x470c40
mov ecx, eax
call fcn.004a92b4
mov esi, eax
jmp 0x470c42
xor esi, esi
mov byte [esp + 0x7c], 2
mov edx, dword [esp + 0x38]
sub edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
push 1
push ebp
push 1
push edx
push eax
mov ecx, esi
call fcn.004a9646
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 4]
push ecx
push eax
call fcn.004a77b8
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00476610
lea ecx, [esp + 0x24]
call fcn.004a6a4e
mov ebx, dword [esp + 0x84]
cmp ebx, ebp
je 0x470cc0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [edi + 0x2c]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x30]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov byte [esp + 0x7c], 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.CBitmap.0
call fcn.0041d380
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7c], 0
call fcn.004a67ae
lea ecx, [esp + 0x5c]
mov dword [esp + 0x7c], 0xffffffff
call fcn.004a681b
mov eax, esi
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 4