Function at 0x459680
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp dword [ebp + 4], 0
push esi
push edi
je 0x45973e
mov esi, dword [0x4a6404]
dec esi
js 0x4596bc
jmp 0x4596a0
mov eax, dword [0x4a6400]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax + 0xc]
cmp ecx, dword [ebp + 4]
jne 0x4596b9
push eax
call fcn.00459680
add esp, 4
dec esi
jns 0x4596a0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4596fe
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x406
push eax
call edi
mov ebx, eax
xor esi, esi
test ebx, ebx
jle 0x4596fe
lea ecx, [ecx]
mov edx, dword [ebp + 8]
push 0
push esi
push 0x414
push edx
call edi
test eax, eax
je 0x4596f9
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
inc esi
cmp esi, ebx
jl 0x4596e0
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45973e
mov ecx, dword [ebp + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_SetMenu]
cmp byte [ebp + 0xbe], 0
jne 0x45973e
mov eax, dword [ebp + 4]
push eax
mov byte [ebp + 0xbe], 1
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [0x4a6404]
lea edx, [ecx - 1]
mov eax, edx
test eax, eax
js 0x459777
lea ecx, [ecx]
mov esi, dword [0x4a6400]
cmp dword [esi + eax*4], ebp
je 0x459760
dec eax
jns 0x459750
jmp 0x459777
inc eax
cmp eax, ecx
jge 0x45976f
lea esi, [esi + eax*4]
lea edi, [esi - 4]
sub ecx, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [0x4a6404], ecx
mov eax, dword [ebp + 0x60]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x45978d
push eax
call ebx
mov ecx, dword [0x4a6404]
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x45979d
push eax
call ebx
mov ecx, dword [0x4a6404]
mov eax, dword [ebp + 0x68]
test eax, eax
je 0x4597b1
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov ecx, dword [0x4a6404]
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x459808
xor esi, esi
lea ebx, [ebx]
mov eax, dword [ebp + 0x18]
mov cl, byte [eax + esi + 4]
add eax, esi
cmp cl, 2
jne 0x4597e8
mov edx, dword [eax + 0x10]
test edx, edx
je 0x4597e8
test byte [eax + 5], 0x80
push edx
je 0x4597e4
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x4597f9
call ebx
jmp 0x4597f9
cmp cl, 0xa
jne 0x4597f9
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00480f68
add esp, 4
inc edi
add esi, 0x14
cmp edi, dword [ebp + 0x10]
jb 0x4597c0
mov ecx, dword [0x4a6404]
mov edx, dword [ebp + 0x6c]
mov edi, dword [ebp + 0x70]
test edx, edx
je 0x45983f
cmp edx, dword [0x4a82fc]
je 0x45983f
xor eax, eax
test ecx, ecx
jle 0x459833
mov esi, dword [0x4a6400]
mov esi, dword [esi + eax*4]
cmp dword [esi + 0x6c], edx
je 0x45983f
inc eax
cmp eax, ecx
jl 0x459820
mov esi, dword [sym.imp.USER32.dll_DestroyIcon]
push edx
call esi
push edi
call esi
mov eax, dword [ebp + 0x74]
xor esi, esi
cmp eax, esi
je 0x459852
push eax
call dword [sym.imp.USER32.dll_DestroyAcceleratorTable]
mov dword [ebp + 0x74], esi
mov edx, dword [ebp + 0x18]
push edx
mov dword [ebp + 4], esi
mov dword [ebp + 0x10], esi
call fcn.00480f68
add esp, 4
dec dword [ebp + 0x20]
jne 0x45987b
mov eax, dword [ebp]
push eax
call fcn.00480f68
push ebp
call fcn.00480cc8
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret