Function at 0x461660
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ebx
mov ebx, ecx
push ebp
push esi
push edi
cmp dword [ebx + 4], 0
je 0x461719
mov esi, dword [0x4db778]
sub esi, 1
js 0x46169a
nop dword [eax]
mov eax, dword [0x4db774]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ebx + 4]
jne 0x461695
call fcn.00461660
sub esi, 1
jns 0x461680
mov eax, dword [ebx + 8]
test eax, eax
je 0x4616dd
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x406
push eax
call ebp
mov edi, eax
xor esi, esi
test edi, edi
jle 0x4616dd
nop dword [eax + eax]
push 0
push esi
push 0x414
push dword [ebx + 8]
call ebp
test eax, eax
je 0x4616d8
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
inc esi
cmp esi, edi
jl 0x4616c0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x461719
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetMenu]
cmp byte [ebx + 0xbe], 0
jne 0x461719
push dword [ebx + 4]
mov byte [ebx + 0xbe], 1
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [0x4db778]
mov ebp, dword [0x4db774]
lea eax, [edx - 1]
mov dword [esp + 0x10], eax
test eax, eax
js 0x46175e
cmp dword [ebp + eax*4], ebx
je 0x46173d
sub eax, 1
jns 0x461730
jmp 0x46175e
inc eax
cmp eax, edx
jge 0x461754
lea esi, [eax*4]
add esi, ebp
sub edx, eax
mov ecx, edx
lea edi, [esi - 4]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x10]
mov dword [0x4db778], edx
mov eax, dword [ebx + 0x60]
mov ecx, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x461780
push eax
call ecx
mov edx, dword [0x4db778]
mov ebp, dword [0x4db774]
mov ecx, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x461796
push eax
call ecx
mov edx, dword [0x4db778]
mov ebp, dword [0x4db774]
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x4617b0
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov edx, dword [0x4db778]
mov ebp, dword [0x4db774]
xor edi, edi
cmp dword [ebx + 0x10], edi
jbe 0x461824
xor ebp, ebp
nop dword [eax]
mov esi, dword [ebx + 0x18]
add esi, ebp
mov cl, byte [esi + 4]
cmp cl, 2
jne 0x4617eb
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4617eb
cmp byte [esi + 5], 0
push eax
jge 0x4617e3
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x4617fb
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4617fb
cmp cl, 0xa
jne 0x4617fb
push dword [esi + 0x10]
call fcn.00495d53
add esp, 4
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x461808
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
inc edi
mov dword [esi + 0xc], 0
add ebp, 0x14
cmp edi, dword [ebx + 0x10]
jb 0x4617c0
mov edx, dword [0x4db778]
mov ebp, dword [0x4db774]
mov esi, dword [ebx + 0x6c]
mov edi, dword [ebx + 0x70]
test esi, esi
je 0x46185e
cmp esi, dword [0x4debf4]
je 0x46185e
xor ecx, ecx
test edx, edx
jle 0x46184e
nop dword [eax]
mov eax, dword [ebp + ecx*4]
cmp dword [eax + 0x6c], esi
je 0x46185e
inc ecx
cmp ecx, edx
jl 0x461840
mov ebp, dword [sym.imp.USER32.dll_DestroyIcon]
push esi
call ebp
cmp edi, esi
je 0x46185e
push edi
call ebp
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x461873
push eax
call dword [sym.imp.USER32.dll_DestroyAcceleratorTable]
mov dword [ebx + 0x74], 0
push dword [ebx + 0x18]
mov dword [ebx + 4], 0
mov dword [ebx + 0x10], 0
call fcn.00495d53
add esp, 4
add dword [ebx + 0x20], 0xffffffff
jne 0x4618a7
push dword [ebx]
call fcn.00495d53
push 0xc4
push ebx
call fcn.00490a1e
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret