Function at 0x45be40
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ebx
mov ebx, ecx
push ebp
push esi
push edi
cmp dword [ebx + 4], 0
je 0x45bef9
mov esi, dword [0x4af0a4]
dec esi
js 0x45be78
lea ebx, [ebx]
mov eax, dword [0x4af0a0]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ebx + 4]
jne 0x45be75
call fcn.0045be40
dec esi
jns 0x45be60
mov eax, dword [ebx + 8]
test eax, eax
je 0x45bebd
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x406
push eax
call ebp
mov edi, eax
xor esi, esi
test edi, edi
jle 0x45bebd
lea esp, [esp]
push 0
push esi
push 0x414
push dword [ebx + 8]
call ebp
test eax, eax
je 0x45beb8
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
inc esi
cmp esi, edi
jl 0x45bea0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45bef9
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 0x45bef9
push dword [ebx + 4]
mov byte [ebx + 0xbe], 1
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [0x4af0a4]
mov ebp, dword [0x4af0a0]
lea eax, [edx - 1]
mov dword [esp + 0x10], eax
test eax, eax
js 0x45bf3c
cmp dword [ebp + eax*4], ebx
je 0x45bf1b
dec eax
jns 0x45bf10
jmp 0x45bf3c
inc eax
cmp eax, edx
jge 0x45bf32
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 [0x4af0a4], edx
mov eax, dword [ebx + 0x60]
mov ecx, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x45bf5e
push eax
call ecx
mov edx, dword [0x4af0a4]
mov ebp, dword [0x4af0a0]
mov ecx, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x45bf74
push eax
call ecx
mov edx, dword [0x4af0a4]
mov ebp, dword [0x4af0a0]
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x45bf8e
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov edx, dword [0x4af0a4]
mov ebp, dword [0x4af0a0]
xor edi, edi
cmp dword [ebx + 0x10], edi
jbe 0x45bffb
xor ebp, ebp
mov esi, dword [ebx + 0x18]
add esi, ebp
mov cl, byte [esi + 4]
cmp cl, 2
jne 0x45bfc2
mov eax, dword [esi + 0x10]
test eax, eax
je 0x45bfc2
test byte [esi + 5], 0x80
push eax
je 0x45bfba
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x45bfd2
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x45bfd2
cmp cl, 0xa
jne 0x45bfd2
push dword [esi + 0x10]
call fcn.004858b4
add esp, 4
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x45bfdf
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 0x45bf97
mov edx, dword [0x4af0a4]
mov ebp, dword [0x4af0a0]
mov esi, dword [ebx + 0x6c]
mov edi, dword [ebx + 0x70]
test esi, esi
je 0x45c031
cmp esi, dword [0x4b0ff4]
je 0x45c031
xor ecx, ecx
test edx, edx
jle 0x45c021
mov eax, dword [ebp + ecx*4]
cmp dword [eax + 0x6c], esi
je 0x45c031
inc ecx
cmp ecx, edx
jl 0x45c013
mov ebp, dword [sym.imp.USER32.dll_DestroyIcon]
push esi
call ebp
cmp edi, esi
je 0x45c031
push edi
call ebp
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x45c046
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.004858b4
add esp, 4
dec dword [ebx + 0x20]
jne 0x45c074
push dword [ebx]
call fcn.004858b4
push ebx
call fcn.00478ef0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret