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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x532c5d
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push esi
push edi
mov eax, dword [0x585698]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
mov eax, dword [ebp + 0x14]
xor edi, edi
mov dword [eax], edi
mov eax, dword [ebx]
call dword [eax + 0x1c]
mov esi, dword [ebx + 0x64]
sub esi, dword [ebx + 0x60]
sar esi, 2
test esi, esi
jbe 0x46a7e7
mov eax, dword [ebx + 0x64]
sub eax, dword [ebx + 0x60]
sar eax, 2
cmp edi, eax
jb 0x46a7d3
call fcn.004f2996
mov eax, dword [ebx + 0x60]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x46a7e2
mov eax, dword [ecx]
call dword [eax + 0x34]
inc edi
cmp edi, esi
jb 0x46a7c1
mov esi, dword [ebx + 0x7c]
sub esi, dword [ebx + 0x78]
and dword [esp + 0x18], 0
sar esi, 2
test esi, esi
jbe 0x46a83a
mov eax, dword [ebx + 0x7c]
sub eax, dword [ebx + 0x78]
mov edi, dword [esp + 0x18]
sar eax, 2
cmp edi, eax
jb 0x46a80f
call fcn.004f2996
mov eax, dword [ebx + 0x78]
mov edi, dword [eax + edi*4]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46a830
push 0
push 0
push 0x785
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
inc dword [esp + 0x18]
cmp dword [esp + 0x18], esi
jb 0x46a7f9
lea eax, [ebx + 0x10c]
push eax
lea eax, [esp + 0xa0]
push eax
call fcn.0046b445
and dword [esp + 0xe0], 0
mov eax, ebx
call fcn.004696ef
lea edi, [ebx + 0xbc]
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], 2
push dword [edi + 0x10]
lea esi, [esp + 0x8c]
call fcn.00480d46
push dword [edi + 0xc]
lea esi, [esp + 0x94]
call fcn.00480d46
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
test eax, eax
je 0x46a8b0
cmp eax, dword [esp + 0x88]
je 0x46a8b5
call fcn.004f2996
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x8c]
je 0x46ab1f
lea esi, [esp + 0x28]
call fcn.00467597
mov ebx, dword [eax]
xor esi, esi
mov dword [esp + 0x98], ebx
cmp ebx, esi
je 0x46a8e4
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov byte [esp + 0xe0], 1
cmp ebx, esi
je 0x46aaf3
lea eax, [esp + 0x3c]
push eax
push ecx
mov eax, esp
mov dword [esp + 0x4c], esp
mov dword [eax], ebx
mov eax, dword [ebx]
push ebx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call dword [eax + 4]
call fcn.00468249
pop ecx
pop ecx
cmp al, 1
jne 0x46aae3
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0xd0]
push eax
lea eax, [esp + 0xa4]
push eax
mov byte [esp + 0x23], 0
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.0046b4e7
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x9c]
lea edi, [esp + 0x70]
lea esi, [esp + 0x20]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x70], eax
call fcn.004a65a0
test al, al
jne 0x46aa0a
call fcn.0046bedd
add eax, 8
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x46aa05
lea eax, [esp + 0x60]
push eax
push ebx
call fcn.00461935
push 1
call fcn.0044b15b
push eax
lea esi, [esp + 0x58]
call fcn.00452238
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x50]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x54]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x58]
sub eax, dword [esp + 0x60]
add eax, dword [esp + 0x50]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x64]
add eax, dword [esp + 0x54]
mov dword [esp + 0x34], eax
mov byte [esp + 0x17], 1
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0xc0]
push eax
add esi, 0x10c
push esi
call fcn.0046b4e7
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x84], eax
mov eax, dword [esi]
lea edi, [esp + 0x80]
lea esi, [esp + 0x20]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x80], eax
call fcn.004a65a0
test al, al
jne 0x46aa90
lea eax, [esp + 0x48]
push eax
lea esi, [esp + 0x24]
lea edi, [esp + 0x34]
call fcn.0046bedd
add eax, 8
push eax
push ecx
mov eax, esp
mov dword [esp + 0x50], esp
mov dword [eax], ebx
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
call fcn.004698ae
call fcn.0046bedd
add eax, 0x18
push eax
jmp 0x46aae5
cmp byte [esp + 0x17], 1
jne 0x46aae3
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0xc8]
push eax
add esi, 0xec
push esi
call fcn.0046b4e7
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x7c], eax
mov eax, dword [esi]
lea edi, [esp + 0x78]
lea esi, [esp + 0x20]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x78], eax
call fcn.004a65a0
test al, al
je 0x46aa5b
push 0
mov eax, dword [esp + 0x20]
push dword [eax + 0x4c]
mov eax, ebx
call fcn.00461f44
mov byte [esp + 0xe0], 0
test ebx, ebx
je 0x46ab05
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
lea esi, [esp + 0x28]
call fcn.0041b5a9
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
jmp 0x46a8a3
add edi, 0x18
dec dword [esp + 0x38]
mov dword [esp + 0x18], edi
jne 0x46a86f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x20]
or dword [esp + 0xe0], 0xffffffff
lea eax, [esp + 0x9c]
push eax
call fcn.0046b49b
xor eax, eax
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10