Function at 0x50de58
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x260]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x50deb6
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x260]
mov edx, dword [ebp - 8]
call fcn.0041d1bc
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x21c]
add edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 0x20c]
jge 0x50deae
mov dword [eax + 4], edx
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x50de80
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x260]
cmp dword [eax + 8], 0
je 0x50e1cb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
test eax, eax
jl 0x50df32
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x21c]
test eax, eax
jl 0x50df32
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x260]
mov edx, dword [ebp - 8]
call fcn.0041d1bc
mov ebx, eax
mov eax, ebx
call fcn.0044c390
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x50df2a
mov dl, 1
mov eax, ebx
call fcn.00445bd4
push 5
mov eax, ebx
call fcn.0044c390
push eax
call sub.user32.dll_ShowWindow
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x50deee
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x220]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x21c]
sub ecx, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x260]
mov edx, dword [edx + 8]
dec edx
cmp ecx, edx
jge 0x50dff3
inc eax
je 0x50dfb1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x21c]
inc eax
sub eax, edx
jg 0x50dff3
dec eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x260]
mov edx, dword [ebp - 8]
call fcn.0041d1bc
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00445bd4
push 0
mov eax, ebx
call fcn.0044c390
push eax
call sub.user32.dll_ShowWindow
dec dword [ebp - 8]
inc dword [ebp - 0x10]
jne 0x50df7c
jmp 0x50dff3
test edx, edx
jl 0x50dff3
inc edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x260]
mov edx, dword [ebp - 8]
call fcn.0041d1bc
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00445bd4
push 0
mov eax, ebx
call fcn.0044c390
push eax
call sub.user32.dll_ShowWindow
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x50dfc0
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
cmp word [eax + 0x232], 0
je 0x50e03b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x21c]
test eax, eax
jl 0x50e03b
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
push eax
lea eax, [ebp - 9]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x260]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x234]
call dword [ebx + 0x230]
cmp byte [ebp - 9], 0
jne 0x50e165
mov eax, dword [ebp - 4]
cmp word [eax + 0x29a], 0
je 0x50e165
mov eax, dword [ebp - 4]
cmp word [eax + 0x27a], 0
je 0x50e165
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x260]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x50e0da
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x260]
mov edx, dword [ebp - 8]
call fcn.0041d1bc
mov ebx, eax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0xc]
xor edx, edx
push ebp
push 0x50e0c8
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x29c]
call dword [ebx + 0x298]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50e0d2
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x50e083
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x21c]
test eax, eax
jl 0x50e165
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x220]
sub edx, eax
jl 0x50e165
inc edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
sub edx, dword [eax + 0x21c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x260]
call fcn.0041d1bc
mov ebx, eax
mov eax, dword [ebx + 0xc]
mov dword [eax + 0x14], 7
xor edx, edx
push ebp
push 0x50e153
push dword fs:[edx]
mov dword fs:[edx], esp
push eax
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [eax + 0xc]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x27c]
call dword [ebx + 0x278]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50e15d
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x50e0fb
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x240]
test ebx, ebx
je 0x50e1cb
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x50e1cb
mov eax, dword [ebp - 4]
cmp byte [eax + 0x264], 0
je 0x50e1cb
mov eax, ebx
call fcn.0050d0d4
test al, al
jne 0x50e1b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x240]
mov edx, dword [eax + 0x40]
add edx, dword [eax + 0x48]
mov eax, dword [ebp - 4]
sub edx, dword [eax + 0x40]
mov eax, dword [ebp - 4]
call fcn.00445470
jmp 0x50e1cb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x240]
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 4]
sub edx, dword [eax + 0x40]
mov eax, dword [ebp - 4]
call fcn.00445470
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret