Function at 0x50c550
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2493
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x6340c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x4c], 0
jne 0x50c86c
cmp dword [edi + 0x48], 0
je 0x50c86c
mov ecx, dword [edi + 0x40]
mov eax, dword [edi + 0x3c]
dec ecx
and ecx, dword [edi + 0x44]
push dword [eax + ecx*4]
lea ecx, [ebp - 0x88]
call fcn.0046d570
mov dword [ebp - 4], 0
mov esi, dword [edi + 0x40]
mov eax, dword [edi + 0x3c]
dec esi
and esi, dword [edi + 0x44]
mov esi, dword [eax + esi*4]
lea ecx, [esi + 0x1c]
call fcn.00444b00
lea ecx, [esi + 4]
call fcn.00444b00
add dword [edi + 0x48], 0xffffffff
jne 0x50c5df
mov dword [edi + 0x44], 0
jmp 0x50c5e2
inc dword [edi + 0x44]
mov eax, dword [ebp - 0x88]
xorps xmm0, xmm0
mov dword [edi + 0x34], eax
lea eax, [ebp - 0x38]
push eax
push dword [edi + 0x24]
movups xmmword [ebp - 0x38], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x38]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x50c61d
lea eax, [ebp - 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [edi + 0x24]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [ebp - 0x94], esi
push ecx
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 1
call fcn.00449fd0
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x50]
call fcn.0044a700
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x138]
call fcn.004656e0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x50c695
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x50]
call fcn.00446620
add esp, 8
mov edx, 0x5dccb8
lea ecx, [ebp - 0x138]
call fcn.0044d3d0
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x50]
call fcn.0044a700
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x138]
call fcn.004656e0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x50c6e1
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x50]
call fcn.00446620
add esp, 8
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x148]
call fcn.00449f10
mov edx, eax
mov byte [ebp - 4], 5
cmp dword [edx + 0x14], 8
jb 0x50c6fe
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50c717
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004459d0
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x50c74b
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x50]
call fcn.00446620
add esp, 8
cmp dword [ebp - 0x14], 8
lea ebx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ebx, dword [ebp - 0x28]
cmp eax, 0xffffffff
jne 0x50c765
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x90]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
mov ecx, dword [edi + 0x24]
push 0xfffffffffffffff0
push ecx
cmp dword [ebp - 0x90], eax
jle 0x50c799
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and ecx, 0xfffffdff
jmp 0x50c7a7
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ecx, 0x200
cmp eax, ecx
je 0x50c7b7
push ecx
push 0xfffffffffffffff0
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [edi + 0x24]
call fcn.005218f0
push esi
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, edi
call fcn.0050c460
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [ebp - 0x54], 0
je 0x50c808
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push 0x1388
push dword [edi + 0x30]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [ebp - 0x14]
mov byte [edi + 0x4c], 1
cmp eax, 8
jb 0x50c83a
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.00446620
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00449500
lea ecx, [ebp - 0x6c]
call fcn.00444b00
lea ecx, [ebp - 0x84]
call fcn.00444b00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c59c5
mov esp, ebp
pop ebp
ret