Function at 0x5a6040
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov byte [esp], dl
mov ebx, eax
test byte [ebx + 0x2d4], 0x80
jne 0x5a63f0
xor edi, edi
mov eax, ebx
call fcn.005ca308
mov eax, dword [ebx + 0x270]
call fcn.0059bc24
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 0x24]
cmp byte [eax + 6], 0
je 0x5a63f0
mov edx, dword [ebx + 0x2d4]
or edx, 0x80
mov eax, ebx
call fcn.005caeb0
mov eax, dword [ebx + 0x2cc]
call fcn.0045f528
xor ecx, ecx
mov edx, 0x51
call fcn.00577c08
cmp dword [ebx + 0x26c], 0
je 0x5a60be
lea eax, [ebx + 0x26c]
call fcn.004126f4
push 1
mov ecx, ebx
mov dl, 1
mov eax, dword [0x5a46d0]
call fcn.0055f290
mov esi, eax
mov dword [ebx + 0x26c], esi
mov eax, dword [ebx + 0x2cc]
cmp byte [eax + 0x328], 0
je 0x5a60fd
movzx eax, byte [eax + 0x329]
mov dword [esp + 4], eax
fild dword [esp + 4]
fstp qword [esi + 0xd0]
wait
jmp 0x5a610f
xor eax, eax
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], 0x406fe000
mov eax, dword [ebx + 0x2e0]
mov dword [esi + 0xc0], eax
mov eax, dword [ebx + 0x2cc]
call fcn.0045f528
mov dword [esi + 0xbc], eax
cmp byte [ebx + 0x48], 0
je 0x5a6151
mov eax, dword [ebx + 0x270]
call fcn.0059bc24
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 0x24]
mov al, byte [eax + 8]
mov byte [esi + 0xb8], al
jmp 0x5a6158
mov byte [esi + 0xb8], 0xff
mov eax, dword [ebx + 0x270]
call fcn.0059bc24
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 0x24]
cmp word [eax + 4], 0xc
jbe 0x5a61bb
mov eax, dword [ebx + 0x270]
call fcn.0059bc24
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 0x24]
movzx eax, word [eax + 4]
mov dword [esp + 4], eax
fild dword [esp + 4]
fdiv dword [0x5a63f8]
xor eax, eax
mov al, byte [esi + 0xb8]
mov edx, 0xff
sub edx, eax
mov dword [esp + 8], edx
fild dword [esp + 8]
fdivrp st(1)
fstp qword [esi + 0xc8]
wait
jmp 0x5a61d9
xor eax, eax
mov al, byte [esi + 0xb8]
mov edx, 0xff
sub edx, eax
mov dword [esp + 4], edx
fild dword [esp + 4]
fstp qword [esi + 0xc8]
wait
mov edx, 0xc
mov eax, esi
call fcn.0055f188
mov eax, dword [ebx + 0x2e0]
test eax, eax
je 0x5a6300
mov esi, eax
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x2cc]
call fcn.0045f528
xor ecx, ecx
mov edx, 0x52
call fcn.00577c08
mov cl, 0xff
xor edx, edx
mov eax, esi
call fcn.005c5f10
mov eax, dword [esi + 0x20]
mov ebp, dword [eax + 0x2cc]
cmp byte [ebp + 0x328], 0
je 0x5a6246
push 2
push 0
push 0x1fffffff
mov eax, ebp
call fcn.0045f528
push eax
mov eax, dword [0x63ef80]
mov eax, dword [eax]
call eax
mov byte [esi + 0x26], 1
push 0x61b
push 0
push 0
push 0
push 0
mov eax, dword [esi + 0x2c]
call fcn.0045f528
push eax
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x2cc]
call fcn.0045f528
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x2cc]
call fcn.0045f528
xor ecx, ecx
xor edx, edx
call fcn.00578a38
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x26c]
mov dl, 1
call fcn.0055f168
push 0
mov eax, dword [esi + 0x2c]
mov ecx, 0xf012
mov edx, 0x112
call fcn.004588bc
mov byte [esi + 0x17], 0
cmp dword [esi + 4], 0xffffffff
je 0x5a63e1
cmp dword [esi + 8], 0xffffffff
je 0x5a63e1
cmp dword [esi + 8], 0
jge 0x5a63e1
call fcn.0057aba0
test al, al
je 0x5a63e1
mov ebp, dword [esi + 0x2c]
mov eax, dword [ebp + 0x48]
push eax
mov eax, dword [ebp + 0x4c]
push eax
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov eax, ebp
mov esi, dword [eax]
call dword [esi + 0x88]
jmp 0x5a63e1
mov esi, dword [ebx + 0x2cc]
cmp byte [esi + 0x328], 0
jne 0x5a63b7
push 0
mov eax, esi
call fcn.0045f528
xor ecx, ecx
xor edx, edx
call fcn.005a4e74
mov edi, eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x2cc]
call fcn.0045f528
push eax
call sub.user32.dll_GetWindowLongA
test eax, 0x80000
jne 0x5a636d
push 0xffffffffffffffec
mov eax, dword [ebx + 0x2cc]
call fcn.0045f528
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
push eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x2cc]
call fcn.0045f528
push eax
call sub.user32.dll_SetWindowLongA
push 2
push 0xff
push 0x1fffffff
mov eax, dword [ebx + 0x2cc]
call fcn.0045f528
push eax
mov eax, dword [0x63ef80]
mov eax, dword [eax]
call eax
push 0x585
push 0
push 0
mov eax, dword [ebx + 0x2cc]
call fcn.0045f528
push eax
call sub.user32.dll_RedrawWindow
push 0
mov eax, edi
call fcn.0045f528
push eax
call sub.user32.dll_ShowWindow
mov dl, 1
mov eax, dword [ebx + 0x26c]
call fcn.0055f168
cmp byte [esp], 0
je 0x5a63e1
push 0
mov ecx, 0xf012
mov edx, 0x112
mov eax, dword [ebx + 0x2cc]
call fcn.004588bc
cmp byte [esp], 0
je 0x5a63f0
mov edx, edi
mov eax, ebx
call fcn.005a5b14
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret