Function at 0x5b9ad4
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 0x5b9e68
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5d4d9c]
mov byte [eax], 0
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.004031c8
mov eax, dword [0x5dbde8]
call fcn.00403158
mov eax, 0x5dbe04
mov edx, dword [ebp - 8]
call fcn.00405aec
mov eax, dword [0x5d4c84]
cmp byte [eax], 0
je 0x5b9b69
cmp byte [ebp + 8], 0
je 0x5b9b5f
xor ecx, ecx
mov dl, 1
mov eax, dword [0x5c09d4]
call fcn.0042a3cc
mov edx, dword [0x5d4ca8]
mov dword [edx], eax
mov eax, dword [0x5d4ca8]
mov eax, dword [eax]
call fcn.0042a88c
mov edi, 6
jmp 0x5b9e4d
mov eax, dword [ebp - 8]
call fcn.005b4014
mov dword [esi], eax
mov eax, dword [esi]
movzx ebx, byte [eax + 0x57]
cmp byte [0x5dbdf0], 0
jne 0x5b9ba3
mov eax, dword [esi]
mov eax, dword [eax + 0x48]
cmp eax, dword [0x5dbdfc]
jne 0x5b9b9c
mov eax, dword [esi]
mov eax, dword [eax + 0x4c]
cmp eax, dword [0x5dbe00]
je 0x5b9ba3
mov byte [0x5dbdf0], 1
cmp byte [0x5dbdf0], 0
je 0x5b9bcb
mov dl, 4
mov eax, dword [esi]
call fcn.0047f2b8
mov eax, dword [esi]
mov eax, dword [eax + 0x48]
mov dword [0x5dbdfc], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x4c]
mov dword [0x5dbe00], eax
jmp 0x5b9bee
xor edx, edx
mov eax, dword [esi]
call fcn.0047f2b8
mov edx, dword [0x5dbdf4]
mov eax, dword [esi]
call fcn.00482ca4
mov edx, dword [0x5dbdf8]
mov eax, dword [esi]
call fcn.00482ce0
mov byte [0x5dbdf0], 0
mov eax, dword [0x5d4d9c]
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.005bb5a0
cmp byte [ebp - 0x11], 0
je 0x5b9d66
cmp byte [ebp + 8], 0
je 0x5b9c2b
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.005b9a78
pop ecx
test bl, bl
jne 0x5b9c5f
mov eax, dword [esi]
call fcn.005b3a58
test al, al
jne 0x5b9c5f
mov eax, dword [esi]
mov byte [eax + 0x240], 1
cmp dword [0x5d466c], 0
je 0x5b9cc7
mov eax, dword [0x5d466c]
cmp eax, dword [esi]
je 0x5b9cc7
mov eax, dword [0x5d466c]
mov byte [eax + 0x370], 1
mov eax, dword [0x5d466c]
call fcn.00482298
push 0
mov eax, dword [0x5d466c]
call fcn.0046fcd8
push eax
call sub.user32.dll_ShowWindow
push 0
mov eax, dword [0x5d4670]
push eax
call sub.user32.dll_ShowWindow
push 0
mov eax, dword [0x5d4674]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 8]
call fcn.005b37f0
mov eax, dword [0x5d4d78]
mov eax, dword [eax]
call fcn.00485f60
mov eax, dword [esi]
mov dword [0x5d466c], eax
mov eax, dword [esi]
call fcn.0046fcd8
mov dword [0x5d4670], eax
push ebp
call fcn.005b9a78
pop ecx
mov eax, dword [esi]
call fcn.005b3a58
test al, al
jne 0x5b9d0d
mov eax, dword [esi]
mov byte [eax + 0x240], 0
jmp 0x5b9d0d
mov eax, dword [0x5d4c84]
cmp byte [eax], 0
jne 0x5b9d0d
mov eax, dword [0x5d4d78]
mov eax, dword [eax]
call fcn.00485f78
mov eax, dword [esi]
cmp dword [eax + 0x374], 0xffffffff
je 0x5b9cf7
mov eax, dword [esi]
mov edi, dword [eax + 0x374]
cmp edi, 8
jne 0x5b9d37
mov eax, dword [ebp - 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x378]
call fcn.00405aec
jmp 0x5b9d3f
mov eax, dword [ebp - 0x10]
call fcn.00405a98
mov eax, 0x5dbe04
call fcn.00405a98
mov eax, dword [esi]
call fcn.0047d674
mov dword [0x5dbdf4], eax
mov eax, dword [esi]
call fcn.0047d694
mov dword [0x5dbdf8], eax
jmp 0x5b9e45
mov eax, dword [esi]
call fcn.0046fcd8
mov edi, eax
mov eax, dword [esi]
mov byte [eax + 0x370], 0
push ebp
call fcn.005b9a78
pop ecx
test bl, bl
jne 0x5b9d97
mov eax, dword [esi]
call fcn.005b3a58
test al, al
jne 0x5b9d97
mov eax, dword [esi]
mov byte [eax + 0x240], 1
cmp dword [0x5d466c], 0
je 0x5b9dff
mov eax, dword [0x5d466c]
cmp eax, dword [esi]
je 0x5b9dff
mov eax, dword [0x5d466c]
mov byte [eax + 0x370], 1
mov eax, dword [0x5d466c]
call fcn.00482298
push 0
mov eax, dword [0x5d466c]
call fcn.0046fcd8
push eax
call sub.user32.dll_ShowWindow
push 0
mov eax, dword [0x5d4670]
push eax
call sub.user32.dll_ShowWindow
push 0
mov eax, dword [0x5d4674]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 8]
call fcn.005b37f0
mov eax, dword [0x5d4d78]
mov eax, dword [eax]
call fcn.00485f60
mov eax, dword [esi]
mov dword [0x5d466c], eax
mov eax, dword [esi]
call fcn.0046fcd8
mov dword [0x5d4670], eax
push ebp
call fcn.005b9a78
pop ecx
mov eax, dword [esi]
call fcn.005b3a58
test al, al
jne 0x5b9e2d
mov eax, dword [esi]
mov byte [eax + 0x240], 0
mov eax, dword [esi]
call fcn.0047d674
mov dword [0x5dbdf4], eax
mov eax, dword [esi]
call fcn.0047d694
mov dword [0x5dbdf8], eax
mov eax, dword [ebp - 0xc]
call fcn.00403158
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b9e6f
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405abc
ret