Function at 0x50a574
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50abd6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x50a5c9
mov eax, dword [ebp - 4]
test byte [eax + 0x384], 4
je 0x50a5c9
lea edx, [ebp - 0x18]
mov eax, dword [0x67d85c]
call fcn.0040aad4
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x4393f8]
call fcn.00424010
call fcn.00406340
mov eax, dword [0x6832f8]
call fcn.00510b1c
mov eax, dword [ebp - 4]
or byte [eax + 0x384], 4
xor edx, edx
push ebp
push 0x50abb9
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x50ab73
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1ea], 0
je 0x50aa67
xor eax, eax
push ebp
push 0x50a62c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffaa
call fcn.0040543c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50a643
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29f], 4
je 0x50a66f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29f], 6
jne 0x50a753
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29e], 1
jne 0x50a753
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29e], 1
jne 0x50a6b5
mov eax, dword [0x6832f8]
mov eax, dword [eax + 0x44]
call fcn.0048e1cc
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x50a697
adc ebx, 0
mov eax, dword [0x6832f8]
mov eax, dword [eax + 0x44]
call fcn.0048e20c
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x4c]
sar esi, 1
jns 0x50a6e8
adc esi, 0
jmp 0x50a6e8
lea edx, [ebp - 0x14]
mov eax, dword [0x6832fc]
call fcn.0050dca4
mov ebx, dword [ebp - 0xc]
sub ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x50a6d5
adc ebx, 0
mov esi, dword [ebp - 8]
sub esi, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x4c]
sar esi, 1
jns 0x50a6e8
adc esi, 0
mov eax, dword [0x6832fc]
call fcn.0050ca48
cmp ebx, eax
jge 0x50a702
mov eax, dword [0x6832fc]
call fcn.0050ca48
mov ebx, eax
mov eax, dword [0x6832fc]
call fcn.0050ca40
cmp esi, eax
jge 0x50a71c
mov eax, dword [0x6832fc]
call fcn.0050ca40
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x98]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x59], 0
je 0x50a973
mov eax, dword [ebp - 4]
call fcn.00507e04
jmp 0x50a973
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x29f]
mov edx, eax
add dl, 0xfa
sub dl, 2
jae 0x50a878
mov eax, dword [0x6832f8]
mov esi, dword [eax + 0x44]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29f], 7
jne 0x50a79a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x4fd9a4]
call fcn.00405398
test al, al
je 0x50a79a
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x50a7db
cmp esi, dword [ebp - 4]
je 0x50a7db
mov eax, esi
call fcn.00505f38
mov ebx, eax
mov eax, dword [esi + 0x48]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x48]
sar eax, 1
jns 0x50a7bc
adc eax, 0
add ebx, eax
mov eax, esi
call fcn.00505f58
mov edx, dword [esi + 0x4c]
mov ecx, dword [ebp - 4]
sub edx, dword [ecx + 0x4c]
sar edx, 1
jns 0x50a7d5
adc edx, 0
add eax, edx
mov esi, eax
jmp 0x50a80d
mov eax, dword [0x6832fc]
call fcn.0050ca38
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x50a7f4
adc ebx, 0
mov eax, dword [0x6832fc]
call fcn.0050ca30
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x4c]
sar esi, 1
jns 0x50a80d
adc esi, 0
mov eax, dword [0x6832fc]
call fcn.0050ca48
cmp ebx, eax
jge 0x50a827
mov eax, dword [0x6832fc]
call fcn.0050ca48
mov ebx, eax
mov eax, dword [0x6832fc]
call fcn.0050ca40
cmp esi, eax
jge 0x50a841
mov eax, dword [0x6832fc]
call fcn.0050ca40
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x98]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x59], 0
je 0x50a973
mov eax, dword [ebp - 4]
call fcn.00507e04
jmp 0x50a973
cmp al, 5
jne 0x50a973
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29e], 1
jne 0x50a8c6
mov eax, dword [0x6832f8]
mov eax, dword [eax + 0x44]
call fcn.0048e1cc
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x50a8a8
adc ebx, 0
mov eax, dword [0x6832f8]
mov eax, dword [eax + 0x44]
call fcn.0048e20c
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x4c]
sar esi, 1
jns 0x50a922
adc esi, 0
jmp 0x50a922
mov eax, dword [0x6832fc]
call fcn.0050ca58
mov ebx, eax
sar ebx, 1
jns 0x50a8d9
adc ebx, 0
mov eax, dword [0x6832fc]
call fcn.0050ca48
add ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
sar eax, 1
jns 0x50a8f2
adc eax, 0
sub ebx, eax
mov eax, dword [0x6832fc]
call fcn.0050ca50
mov esi, eax
sar esi, 1
jns 0x50a907
adc esi, 0
mov eax, dword [0x6832fc]
call fcn.0050ca40
add esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
sar eax, 1
jns 0x50a920
adc eax, 0
sub esi, eax
mov eax, dword [0x6832fc]
call fcn.0050ca48
cmp ebx, eax
jge 0x50a93c
mov eax, dword [0x6832fc]
call fcn.0050ca48
mov ebx, eax
mov eax, dword [0x6832fc]
call fcn.0050ca40
cmp esi, eax
jge 0x50a956
mov eax, dword [0x6832fc]
call fcn.0050ca40
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x98]
mov eax, dword [ebp - 4]
mov byte [eax + 0x29f], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29e], 1
jne 0x50aa42
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29a], 2
jne 0x50a9cf
push 0
mov eax, dword [ebp - 4]
call fcn.00497884
push eax
push 0x223
mov eax, dword [0x6832f8]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + 0x37c]
push eax
call sub.user32.dll_SendMessageW
push 3
mov eax, dword [ebp - 4]
call fcn.00497884
push eax
call sub.user32.dll_ShowWindow
jmp 0x50aa20
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x29a]
mov eax, dword [eax*4 + 0x676144]
push eax
mov eax, dword [ebp - 4]
call fcn.00497884
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
shl edx, 0x10
or eax, edx
push eax
push 0
push 5
mov eax, dword [ebp - 4]
call fcn.00497884
push eax
push 0x40d1a0
call sub.user32.dll_CallWindowProcW
mov eax, dword [ebp - 4]
call fcn.0048eb88
push 0
push 0
push 0x234
mov eax, dword [0x6832f8]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + 0x37c]
push eax
call sub.user32.dll_SendMessageW
jmp 0x50aba1
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x29a]
mov eax, dword [eax*4 + 0x676144]
push eax
mov eax, dword [ebp - 4]
call fcn.00497884
push eax
call sub.user32.dll_ShowWindow
jmp 0x50aba1
xor eax, eax
push ebp
push 0x50aa8b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffab
call fcn.0040543c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50aaa2
mov eax, dword [0x6832fc]
mov eax, dword [eax + 0x68]
cmp eax, dword [ebp - 4]
jne 0x50aab9
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005092cc
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29e], 1
jne 0x50aad5
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc0]
jmp 0x50aba1
mov eax, dword [ebp - 4]
test byte [eax + 0x384], 8
je 0x50ab03
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00497884
push eax
call sub.user32.dll_SetWindowPos
jmp 0x50aba1
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00497884
mov esi, eax
call sub.user32.dll_GetActiveWindow
cmp esi, eax
jne 0x50ab38
mov eax, dword [ebp - 4]
call fcn.00497884
call fcn.00503458
test eax, eax
jne 0x50ab38
mov eax, dword [ebp - 4]
call fcn.00497884
call fcn.00503788
mov ebx, eax
test ebx, ebx
je 0x50ab61
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00497884
push eax
call sub.user32.dll_SetWindowPos
push ebx
call sub.user32.dll_SetActiveWindow
jmp 0x50aba1
push 0
mov eax, dword [ebp - 4]
call fcn.00497884
push eax
call sub.user32.dll_ShowWindow
jmp 0x50aba1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
je 0x50aba1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
je 0x50aba1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1ea], 0
je 0x50aba1
push 1
mov eax, dword [ebp - 4]
call fcn.00497884
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50abc0
mov eax, dword [ebp - 4]
and byte [eax + 0x384], 0xfb
ret