Function at 0x4a066a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, ecx
cmp dword [edi + 0x20], esi
jl 0x4a0687
cmp dword [edi + 0x1c], esi
mov dword [ebp + 8], esi
jge 0x4a068e
mov dword [ebp + 8], 1
mov ecx, ebx
call fcn.0049a374
test eax, eax
jne 0x4a06b5
cmp dword [ebp + 8], esi
jne 0x4a06b5
mov eax, dword [ebx + 0x94]
push 4
push dword [ebx + 4]
mov dword [ebx + 0x90], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 0x88]
lea esi, [ebx + 0x84]
xor edx, edx
test eax, eax
jle 0x4a06d5
mov ecx, dword [esi]
cmp dword [ecx], edi
je 0x4a06fc
inc edx
add ecx, 4
cmp edx, eax
jl 0x4a06c9
or eax, 0xffffffff
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
cmp word [edi + 0x12], 4
mov dword [ebp - 8], ecx
sete al
cmp dword [ebp + 8], 0
movzx eax, al
mov dword [ebp - 0xc], eax
je 0x4a0700
push 5
pop eax
jmp 0x4a0707
mov eax, edx
jmp 0x4a06d8
movsx eax, word [ebx + 0x98]
mov word [edi + 0x10], ax
mov ax, word [ebx + 0x98]
mov word [edi + 0x12], ax
push dword [ebx + 4]
push dword [edi]
call dword [sym.imp.USER32.dll_SetParent]
push edi
push dword [edi]
push dword [edi + 8]
call fcn.00486262
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x4a07b3
lea eax, [ebp - 8]
mov ecx, esi
push eax
mov dword [ebp - 8], edi
call fcn.004a193e
cmp dword [ebp + 0xc], 0
jl 0x4a079b
mov eax, dword [ebx + 0x88]
dec eax
cmp eax, dword [ebp + 0xc]
je 0x4a079b
mov edx, eax
mov dword [ebp - 4], edx
jle 0x4a0790
lea ecx, [eax - 1]
mov dword [ebp - 8], ecx
test ecx, ecx
jl 0x4a076b
cmp ecx, dword [esi + 4]
jl 0x4a076d
xor ecx, ecx
mov eax, dword [esi]
lea eax, [eax + edx*4]
test eax, eax
je 0x4a0780
mov edx, dword [esi]
mov ecx, dword [edx + ecx*4]
mov edx, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
dec edx
dec ecx
cmp edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
jg 0x4a0762
mov eax, dword [esi]
lea eax, [eax + edx*4]
test eax, eax
je 0x4a079b
mov dword [eax], edi
movsx eax, word [ebx + 0x98]
push 0
push eax
push 0x74c
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
and al, 0xfc
add eax, 4
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 0
jne 0x4a08b7
test byte [edi + 0x3e], 0x40
je 0x4a0892
mov eax, dword [ebx + 0x88]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [ebp + 0xc], eax
je 0x4a0892
test eax, eax
mov ecx, eax
jl 0x4a07fb
cmp eax, dword [esi + 4]
jl 0x4a07fd
xor ecx, ecx
mov edx, dword [esi]
cmp dword [edx + ecx*4], edi
je 0x4a07e2
test eax, eax
mov ecx, eax
jl 0x4a080f
cmp eax, dword [esi + 4]
jl 0x4a0811
xor ecx, ecx
mov edx, dword [esi]
mov ecx, dword [edx + ecx*4]
cmp word [ecx + 0x10], 5
je 0x4a07e2
test eax, eax
mov ecx, eax
jl 0x4a0828
cmp eax, dword [esi + 4]
jl 0x4a082a
xor ecx, ecx
mov edx, dword [esi]
mov ecx, dword [edx + ecx*4]
test byte [ecx + 0x3e], 4
jne 0x4a085d
test eax, eax
jl 0x4a083e
cmp eax, dword [esi + 4]
jl 0x4a0840
xor eax, eax
mov ecx, dword [esi]
push dword [ebx + 4]
mov eax, dword [ecx + eax*4]
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [ebp + 8]
push 1
push 0x722
jmp 0x4a0883
test eax, eax
jl 0x4a0866
cmp eax, dword [esi + 4]
jl 0x4a0868
xor eax, eax
mov ecx, dword [esi]
push dword [ebx + 4]
mov eax, dword [ecx + eax*4]
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [ebp + 8]
push 1
push 0x74a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 0xc]
jmp 0x4a07e2
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 0
push 0x74e
push dword [ebx + 4]
call esi
xor eax, eax
cmp dword [ebp - 0xc], eax
je 0x4a08c1
push eax
push eax
push 5
push dword [edi]
call esi
jmp 0x4a08c1
add edi, 0x14
push edi
call dword [sym.imp.USER32.dll_SetRectEmpty]
pop edi
pop esi
pop ebx
leave
ret 8