Function at 0x51e834
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 0x51ee96
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x51e889
mov eax, dword [ebp - 4]
test byte [eax + 0x374], 4
je 0x51e889
lea edx, [ebp - 0x18]
mov eax, dword [0x550478]
call fcn.00408f14
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x4221a0]
call fcn.00412bb4
call fcn.00404c3c
mov eax, dword [0x5570e0]
call fcn.00524b84
mov eax, dword [ebp - 4]
or byte [eax + 0x374], 4
xor edx, edx
push ebp
push 0x51ee79
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x51ee33
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e2], 0
je 0x51ed27
xor eax, eax
push ebp
push 0x51e8ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffab
call fcn.00404414
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51e903
mov eax, dword [ebp - 4]
cmp byte [eax + 0x288], 4
je 0x51e92f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x288], 6
jne 0x51ea13
mov eax, dword [ebp - 4]
cmp byte [eax + 0x287], 1
jne 0x51ea13
mov eax, dword [ebp - 4]
cmp byte [eax + 0x287], 1
jne 0x51e975
mov eax, dword [0x5570e0]
mov eax, dword [eax + 0x40]
call fcn.0052c2f0
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x51e957
adc ebx, 0
mov eax, dword [0x5570e0]
mov eax, dword [eax + 0x40]
call fcn.0052c334
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x4c]
sar esi, 1
jns 0x51e9a8
adc esi, 0
jmp 0x51e9a8
lea edx, [ebp - 0x14]
mov eax, dword [0x5570e4]
call fcn.00521df0
mov ebx, dword [ebp - 0xc]
sub ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x51e995
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 0x51e9a8
adc esi, 0
mov eax, dword [0x5570e4]
call fcn.00520ca0
cmp ebx, eax
jge 0x51e9c2
mov eax, dword [0x5570e4]
call fcn.00520ca0
mov ebx, eax
mov eax, dword [0x5570e4]
call fcn.00520c94
cmp esi, eax
jge 0x51e9dc
mov eax, dword [0x5570e4]
call fcn.00520c94
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 + 0x88]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x57], 0
je 0x51ec33
mov eax, dword [ebp - 4]
call fcn.0051c0b8
jmp 0x51ec33
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x288]
mov edx, eax
add dl, 0xfa
sub dl, 2
jae 0x51eb38
mov eax, dword [0x5570e0]
mov esi, dword [eax + 0x40]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x288], 7
jne 0x51ea5a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x516304]
call fcn.004043a4
test al, al
je 0x51ea5a
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x51ea9b
cmp esi, dword [ebp - 4]
je 0x51ea9b
mov eax, esi
call fcn.0051a24c
mov ebx, eax
mov eax, dword [esi + 0x48]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x48]
sar eax, 1
jns 0x51ea7c
adc eax, 0
add ebx, eax
mov eax, esi
call fcn.0051a26c
mov edx, dword [esi + 0x4c]
mov ecx, dword [ebp - 4]
sub edx, dword [ecx + 0x4c]
sar edx, 1
jns 0x51ea95
adc edx, 0
add eax, edx
mov esi, eax
jmp 0x51eacd
mov eax, dword [0x5570e4]
call fcn.00520c88
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x51eab4
adc ebx, 0
mov eax, dword [0x5570e4]
call fcn.00520c7c
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x4c]
sar esi, 1
jns 0x51eacd
adc esi, 0
mov eax, dword [0x5570e4]
call fcn.00520ca0
cmp ebx, eax
jge 0x51eae7
mov eax, dword [0x5570e4]
call fcn.00520ca0
mov ebx, eax
mov eax, dword [0x5570e4]
call fcn.00520c94
cmp esi, eax
jge 0x51eb01
mov eax, dword [0x5570e4]
call fcn.00520c94
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 + 0x88]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x57], 0
je 0x51ec33
mov eax, dword [ebp - 4]
call fcn.0051c0b8
jmp 0x51ec33
cmp al, 5
jne 0x51ec33
mov eax, dword [ebp - 4]
cmp byte [eax + 0x287], 1
jne 0x51eb86
mov eax, dword [0x5570e0]
mov eax, dword [eax + 0x40]
call fcn.0052c2f0
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x51eb68
adc ebx, 0
mov eax, dword [0x5570e0]
mov eax, dword [eax + 0x40]
call fcn.0052c334
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x4c]
sar esi, 1
jns 0x51ebe2
adc esi, 0
jmp 0x51ebe2
mov eax, dword [0x5570e4]
call fcn.00520cb8
mov ebx, eax
sar ebx, 1
jns 0x51eb99
adc ebx, 0
mov eax, dword [0x5570e4]
call fcn.00520ca0
add ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
sar eax, 1
jns 0x51ebb2
adc eax, 0
sub ebx, eax
mov eax, dword [0x5570e4]
call fcn.00520cac
mov esi, eax
sar esi, 1
jns 0x51ebc7
adc esi, 0
mov eax, dword [0x5570e4]
call fcn.00520c94
add esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
sar eax, 1
jns 0x51ebe0
adc eax, 0
sub esi, eax
mov eax, dword [0x5570e4]
call fcn.00520ca0
cmp ebx, eax
jge 0x51ebfc
mov eax, dword [0x5570e4]
call fcn.00520ca0
mov ebx, eax
mov eax, dword [0x5570e4]
call fcn.00520c94
cmp esi, eax
jge 0x51ec16
mov eax, dword [0x5570e4]
call fcn.00520c94
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 + 0x88]
mov eax, dword [ebp - 4]
mov byte [eax + 0x288], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x287], 1
jne 0x51ed02
mov eax, dword [ebp - 4]
cmp byte [eax + 0x283], 2
jne 0x51ec8f
push 0
mov eax, dword [ebp - 4]
call fcn.0053541c
push eax
push 0x223
mov eax, dword [0x5570e0]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x36c]
push eax
call sub.user32.dll_SendMessageW
push 3
mov eax, dword [ebp - 4]
call fcn.0053541c
push eax
call sub.user32.dll_ShowWindow
jmp 0x51ece0
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x283]
mov eax, dword [eax*4 + 0x54f924]
push eax
mov eax, dword [ebp - 4]
call fcn.0053541c
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.0053541c
push eax
push 0x409e4c
call sub.user32.dll_CallWindowProcW
mov eax, dword [ebp - 4]
call fcn.0052cc88
push 0
push 0
push 0x234
mov eax, dword [0x5570e0]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x36c]
push eax
call sub.user32.dll_SendMessageW
jmp 0x51ee61
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x283]
mov eax, dword [eax*4 + 0x54f924]
push eax
mov eax, dword [ebp - 4]
call fcn.0053541c
push eax
call sub.user32.dll_ShowWindow
jmp 0x51ee61
xor eax, eax
push ebp
push 0x51ed4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffac
call fcn.00404414
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51ed62
mov eax, dword [0x5570e4]
mov eax, dword [eax + 0x64]
cmp eax, dword [ebp - 4]
jne 0x51ed79
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0051d588
mov eax, dword [ebp - 4]
cmp byte [eax + 0x287], 1
jne 0x51ed95
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xb0]
jmp 0x51ee61
mov eax, dword [ebp - 4]
test byte [eax + 0x374], 8
je 0x51edc3
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0053541c
push eax
call sub.user32.dll_SetWindowPos
jmp 0x51ee61
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0053541c
mov esi, eax
call sub.user32.dll_GetActiveWindow
cmp esi, eax
jne 0x51edf8
mov eax, dword [ebp - 4]
call fcn.0053541c
call fcn.00517a60
test eax, eax
jne 0x51edf8
mov eax, dword [ebp - 4]
call fcn.0053541c
call fcn.00517d90
mov ebx, eax
test ebx, ebx
je 0x51ee21
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0053541c
push eax
call sub.user32.dll_SetWindowPos
push ebx
call sub.user32.dll_SetActiveWindow
jmp 0x51ee61
push 0
mov eax, dword [ebp - 4]
call fcn.0053541c
push eax
call sub.user32.dll_ShowWindow
jmp 0x51ee61
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
je 0x51ee61
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0
je 0x51ee61
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e2], 0
je 0x51ee61
push 1
mov eax, dword [ebp - 4]
call fcn.0053541c
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51ee80
mov eax, dword [ebp - 4]
and byte [eax + 0x374], 0xfb
ret