Function at 0x4704b0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
push edi
cmp dword [ebx + 4], 0
je 0x470569
mov esi, dword [0x4f78e4]
sub esi, 1
js 0x4704ea
nop dword [eax + eax]
mov eax, dword [0x4f78e0]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ebx + 4]
jne 0x4704e5
call fcn.004704b0
sub esi, 1
jns 0x4704d0
mov eax, dword [ebx + 8]
test eax, eax
je 0x47052d
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 0x47052d
nop dword [eax + eax]
push 0
push esi
push 0x414
push dword [ebx + 8]
call ebp
test eax, eax
je 0x470528
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
inc esi
cmp esi, edi
jl 0x470510
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x470569
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 + 0xc6], 0
jne 0x470569
push dword [ebx + 4]
mov byte [ebx + 0xc6], 1
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ebp, dword [0x4f78e4]
sub ebp, 1
mov ecx, ebp
js 0x4705a9
mov eax, dword [0x4f78e0]
cmp dword [eax + ecx*4], ebx
je 0x470587
sub ecx, 1
jns 0x470576
jmp 0x4705a9
mov edx, dword [0x4f78e4]
inc ecx
cmp ecx, edx
jge 0x4705a3
mov eax, dword [0x4f78e0]
sub edx, ecx
lea esi, [eax + ecx*4]
mov ecx, edx
lea edi, [esi - 4]
rep movsd dword es:[edi], dword [esi]
mov dword [0x4f78e4], ebp
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x4705df
push 0x1c
push eax
call fcn.004aba18
push 0x1c
push dword [ebx + 0xd0]
call fcn.004aba18
add esp, 0x10
mov dword [ebx + 0xd0], 0
mov dword [ebx + 0xcc], 0
mov eax, dword [ebx + 0x60]
mov ecx, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x4705f5
push eax
call ecx
mov ecx, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x4705ff
push eax
call ecx
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x47060d
push eax
call dword [sym.imp.SHELL32.dll_DragFinish]
mov ecx, dword [ebx + 0xd4]
test ecx, ecx
je 0x47061d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor edi, edi
cmp dword [ebx + 0x10], edi
jbe 0x47068c
xor ebp, ebp
mov esi, dword [ebx + 0x18]
add esi, ebp
mov al, byte [esi + 4]
cmp al, 2
jne 0x470650
mov eax, dword [esi + 0x10]
test eax, eax
je 0x47065f
cmp byte [esi + 5], 0
push eax
jge 0x470648
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x47065f
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x47065f
cmp al, 0xa
jne 0x47065f
push dword [esi + 0x10]
call fcn.004b113e
add esp, 4
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x47066c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x470683
push eax
call fcn.004b113e
add esp, 4
inc edi
add ebp, 0x40
cmp edi, dword [ebx + 0x10]
jb 0x470626
mov esi, dword [ebx + 0x6c]
mov edi, dword [ebx + 0x70]
test esi, esi
je 0x4706d6
cmp esi, dword [0x4fa5ac]
je 0x4706d6
xor ecx, ecx
cmp dword [0x4f78e4], ecx
jle 0x4706c6
nop dword [eax + eax]
mov eax, dword [0x4f78e0]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x6c], esi
je 0x4706d6
inc ecx
cmp ecx, dword [0x4f78e4]
jl 0x4706b0
mov ebp, dword [sym.imp.USER32.dll_DestroyIcon]
push esi
call ebp
cmp edi, esi
je 0x4706d6
push edi
call ebp
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x4706eb
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.004b113e
add esp, 4
add dword [ebx + 0x20], 0xffffffff
jne 0x47071f
push dword [ebx]
call fcn.004b113e
push 0xd8
push ebx
call fcn.004aba18
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret