Function at 0x511408
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd0
mov ebx, eax
mov edi, esp
cmp byte [ebx + 0x4a], 0
jne 0x511680
mov byte [ebx + 0x4a], 1
mov eax, ebx
call fcn.0051170c
mov eax, dword [ebx + 8]
call fcn.0048d1e8
push eax
call sub.user32.dll_GetParent
mov ecx, eax
mov dl, 1
mov eax, dword [0x501494]
call fcn.00487670
mov esi, eax
mov dword [ebx + 0x44], esi
mov dword [esi + 0x278], ebx
mov byte [esi + 0x27c], 1
mov edx, edi
mov eax, ebx
call fcn.00512018
mov eax, dword [ebx + 8]
cmp byte [eax + 0x69], 1
jne 0x5114b3
mov eax, edi
call fcn.0040c244
test al, al
jne 0x5114b3
mov edx, dword [edi]
neg edx
mov eax, edi
xor ecx, ecx
call fcn.0040c25c
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
test al, al
je 0x5114b3
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 4]
test al, al
je 0x5114a5
mov eax, edi
xor ecx, ecx
mov edx, 2
call fcn.0040c25c
jmp 0x5114b3
mov eax, edi
xor ecx, ecx
mov edx, 1
call fcn.0040c25c
mov eax, ebx
call fcn.005113c8
test al, al
je 0x5114f1
push 8
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
push eax
mov eax, dword [edi + 8]
mov ebp, dword [edi]
sub eax, ebp
push eax
mov esi, dword [ebx + 8]
mov eax, dword [esi + 0x4c]
add eax, dword [edi + 4]
push eax
mov eax, dword [esi + 0x48]
add eax, ebp
push eax
push 0xffffffffffffffff
mov eax, dword [ebx + 0x44]
call fcn.0048d1e8
push eax
call sub.user32.dll_SetWindowPos
jmp 0x511522
push 8
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
push eax
mov eax, dword [edi + 8]
mov ebp, dword [edi]
sub eax, ebp
push eax
mov esi, dword [ebx + 8]
mov eax, dword [esi + 0x4c]
add eax, dword [edi + 4]
push eax
mov eax, dword [esi + 0x48]
add eax, ebp
push eax
push 0
mov eax, dword [ebx + 0x44]
call fcn.0048d1e8
push eax
call sub.user32.dll_SetWindowPos
lea edx, [esp + 0x20]
mov eax, ebx
call fcn.00512018
lea eax, [esp + 0x20]
call fcn.0040c244
test al, al
je 0x51154c
push 0
mov eax, dword [ebx + 0x44]
call fcn.0048d1e8
push eax
call sub.user32.dll_ShowWindow
jmp 0x51155c
push 5
mov eax, dword [ebx + 0x44]
call fcn.0048d1e8
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 8]
call fcn.0048d1e8
push eax
call sub.user32.dll_GetParent
mov ecx, eax
mov dl, 1
mov eax, dword [0x501494]
call fcn.00487670
mov esi, eax
mov dword [ebx + 0x2c], esi
mov dword [esi + 0x278], ebx
mov byte [esi + 0x27c], 0
mov edx, edi
mov eax, ebx
call fcn.00512290
mov eax, dword [ebx + 8]
cmp byte [eax + 0x69], 1
jne 0x5115d3
lea edx, [esp + 0x20]
mov eax, ebx
call fcn.00512018
lea eax, [esp + 0x20]
call fcn.0040c244
test al, al
jne 0x5115d3
lea edx, [esp + 0x10]
mov eax, ebx
call fcn.00512018
lea eax, [esp + 0x10]
call fcn.0040bb8c
mov edx, eax
mov eax, edi
xor ecx, ecx
call fcn.0040c25c
mov eax, ebx
call fcn.005113c8
test al, al
je 0x511611
push 8
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
push eax
mov eax, dword [edi + 8]
mov ebp, dword [edi]
sub eax, ebp
push eax
mov esi, dword [ebx + 8]
mov eax, dword [esi + 0x4c]
add eax, dword [edi + 4]
push eax
mov eax, dword [esi + 0x48]
add eax, ebp
push eax
push 0xffffffffffffffff
mov eax, dword [ebx + 0x2c]
call fcn.0048d1e8
push eax
call sub.user32.dll_SetWindowPos
jmp 0x511642
push 8
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
push eax
mov eax, dword [edi + 8]
mov ebp, dword [edi]
sub eax, ebp
push eax
mov esi, dword [ebx + 8]
mov eax, dword [esi + 0x4c]
add eax, dword [edi + 4]
push eax
mov eax, dword [esi + 0x48]
add eax, ebp
push eax
push 0
mov eax, dword [ebx + 0x2c]
call fcn.0048d1e8
push eax
call sub.user32.dll_SetWindowPos
lea edx, [esp + 0x20]
mov eax, ebx
call fcn.00512290
lea eax, [esp + 0x20]
call fcn.0040c244
test al, al
je 0x51166c
push 0
mov eax, dword [ebx + 0x2c]
call fcn.0048d1e8
push eax
call sub.user32.dll_ShowWindow
jmp 0x51167c
push 5
mov eax, dword [ebx + 0x2c]
call fcn.0048d1e8
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x4a], 0
add esp, 0x30
pop ebp
pop edi
pop esi
pop ebx
ret