Function at 0x5ba628
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x11], cl
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00405f18
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x5ba9c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5d5d9c]
mov byte [eax], 0
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.004031c8
mov eax, dword [0x5dcdec]
call fcn.00403158
mov eax, 0x5dce08
mov edx, dword [ebp - 8]
call fcn.00405aec
mov eax, dword [0x5d5c84]
cmp byte [eax], 0
je 0x5ba6bd
cmp byte [ebp + 8], 0
je 0x5ba6b3
xor ecx, ecx
mov dl, 1
mov eax, dword [0x5c1534]
call fcn.0042a3cc
mov edx, dword [0x5d5ca8]
mov dword [edx], eax
mov eax, dword [0x5d5ca8]
mov eax, dword [eax]
call fcn.0042a88c
mov edi, 6
jmp 0x5ba9ad
mov eax, dword [ebp - 8]
call fcn.005b4ab8
mov dword [esi], eax
mov eax, dword [esi]
movzx ebx, byte [eax + 0x57]
cmp byte [0x5dcdf4], 0
jne 0x5ba6f7
mov eax, dword [esi]
mov eax, dword [eax + 0x48]
cmp eax, dword [0x5dce00]
jne 0x5ba6f0
mov eax, dword [esi]
mov eax, dword [eax + 0x4c]
cmp eax, dword [0x5dce04]
je 0x5ba6f7
mov byte [0x5dcdf4], 1
cmp byte [0x5dcdf4], 0
je 0x5ba71f
mov dl, 4
mov eax, dword [esi]
call fcn.0047f2b8
mov eax, dword [esi]
mov eax, dword [eax + 0x48]
mov dword [0x5dce00], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x4c]
mov dword [0x5dce04], eax
jmp 0x5ba742
xor edx, edx
mov eax, dword [esi]
call fcn.0047f2b8
mov edx, dword [0x5dcdf8]
mov eax, dword [esi]
call fcn.00482ca4
mov edx, dword [0x5dcdfc]
mov eax, dword [esi]
call fcn.00482ce0
mov byte [0x5dcdf4], 0
mov eax, dword [0x5d5d9c]
mov byte [eax], 0
movzx eax, byte [ebp - 0x11]
xor al, 1
mov edx, dword [esi]
mov byte [edx + 0x382], al
mov eax, dword [esi]
call fcn.005bc100
cmp byte [ebp - 0x11], 0
je 0x5ba8ba
cmp byte [ebp + 8], 0
je 0x5ba77f
mov eax, dword [esi]
mov byte [eax + 0x381], 1
mov eax, dword [esi]
mov dword [eax + 0x374], 0xffffffff
mov eax, dword [esi]
mov byte [eax + 0x370], 0
push ebp
call fcn.005ba5cc
pop ecx
test bl, bl
jne 0x5ba7b3
mov eax, dword [esi]
call fcn.005b44fc
test al, al
jne 0x5ba7b3
mov eax, dword [esi]
mov byte [eax + 0x240], 1
cmp dword [0x5d566c], 0
je 0x5ba81b
mov eax, dword [0x5d566c]
cmp eax, dword [esi]
je 0x5ba81b
mov eax, dword [0x5d566c]
mov byte [eax + 0x370], 1
mov eax, dword [0x5d566c]
call fcn.00482298
push 0
mov eax, dword [0x5d566c]
call fcn.0046fcd8
push eax
call sub.user32.dll_ShowWindow
push 0
mov eax, dword [0x5d5670]
push eax
call sub.user32.dll_ShowWindow
push 0
mov eax, dword [0x5d5674]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 8]
call fcn.005b4294
mov eax, dword [0x5d5d78]
mov eax, dword [eax]
call fcn.00485f60
mov eax, dword [esi]
mov dword [0x5d566c], eax
mov eax, dword [esi]
call fcn.0046fcd8
mov dword [0x5d5670], eax
push ebp
call fcn.005ba5cc
pop ecx
mov eax, dword [esi]
call fcn.005b44fc
test al, al
jne 0x5ba861
mov eax, dword [esi]
mov byte [eax + 0x240], 0
jmp 0x5ba861
mov eax, dword [0x5d5c84]
cmp byte [eax], 0
jne 0x5ba861
mov eax, dword [0x5d5d78]
mov eax, dword [eax]
call fcn.00485f78
mov eax, dword [esi]
cmp dword [eax + 0x374], 0xffffffff
je 0x5ba84b
mov eax, dword [esi]
mov edi, dword [eax + 0x374]
cmp edi, 8
jne 0x5ba88b
mov eax, dword [ebp - 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x378]
call fcn.00405aec
jmp 0x5ba893
mov eax, dword [ebp - 0x10]
call fcn.00405a98
mov eax, 0x5dce08
call fcn.00405a98
mov eax, dword [esi]
call fcn.0047d674
mov dword [0x5dcdf8], eax
mov eax, dword [esi]
call fcn.0047d694
mov dword [0x5dcdfc], eax
jmp 0x5ba999
mov eax, dword [esi]
call fcn.0046fcd8
mov edi, eax
mov eax, dword [esi]
mov byte [eax + 0x370], 0
push ebp
call fcn.005ba5cc
pop ecx
test bl, bl
jne 0x5ba8eb
mov eax, dword [esi]
call fcn.005b44fc
test al, al
jne 0x5ba8eb
mov eax, dword [esi]
mov byte [eax + 0x240], 1
cmp dword [0x5d566c], 0
je 0x5ba953
mov eax, dword [0x5d566c]
cmp eax, dword [esi]
je 0x5ba953
mov eax, dword [0x5d566c]
mov byte [eax + 0x370], 1
mov eax, dword [0x5d566c]
call fcn.00482298
push 0
mov eax, dword [0x5d566c]
call fcn.0046fcd8
push eax
call sub.user32.dll_ShowWindow
push 0
mov eax, dword [0x5d5670]
push eax
call sub.user32.dll_ShowWindow
push 0
mov eax, dword [0x5d5674]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 8]
call fcn.005b4294
mov eax, dword [0x5d5d78]
mov eax, dword [eax]
call fcn.00485f60
mov eax, dword [esi]
mov dword [0x5d566c], eax
mov eax, dword [esi]
call fcn.0046fcd8
mov dword [0x5d5670], eax
push ebp
call fcn.005ba5cc
pop ecx
mov eax, dword [esi]
call fcn.005b44fc
test al, al
jne 0x5ba981
mov eax, dword [esi]
mov byte [eax + 0x240], 0
mov eax, dword [esi]
call fcn.0047d674
mov dword [0x5dcdf8], eax
mov eax, dword [esi]
call fcn.0047d694
mov dword [0x5dcdfc], eax
mov eax, dword [ebp - 0xc]
call fcn.004b087c
test al, al
je 0x5ba9ad
mov eax, dword [ebp - 0xc]
call fcn.00403158
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ba9cf
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405abc
ret