Function at 0x507f6c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x507f74
push ebx
push esi
push edi
mov eax, 0x507c7c
call fcn.00407378
mov esi, dword [0x50b418]
xor eax, eax
push ebp
push 0x508288
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, dword [0x50b3f4]
mov edx, dword [edx]
call fcn.00403e84
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00409274
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004090d8
mov edx, dword [ebp - 0x10]
mov eax, 0x50e84c
call fcn.00403d20
mov edx, dword [0x50e84c]
mov eax, 0x5082a0
call fcn.00404238
mov ebx, eax
test ebx, ebx
jle 0x508033
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x50e84c]
call fcn.00403f4c
mov ecx, eax
sub ecx, ebx
lea edx, [ebx + 4]
mov eax, dword [0x50e84c]
call fcn.00404154
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00409274
mov edx, dword [ebp - 0x1c]
mov eax, 0x50e854
call fcn.00403d20
push 0x50e84c
lea ecx, [ebx + 3]
mov edx, 1
mov eax, dword [0x50e84c]
call fcn.00404154
lea edx, [ebp - 0x24]
mov eax, dword [esi]
call fcn.00454160
mov eax, dword [ebp - 0x24]
call fcn.00403f4c
mov ebx, eax
add ebx, 5
mov eax, dword [0x50e84c]
call fcn.00403f4c
cmp ebx, eax
jge 0x5080c5
mov eax, dword [0x50e84c]
call fcn.00403f4c
cmp eax, 0x3f
jle 0x5080c5
mov eax, 0x5082a0
mov edx, dword [0x50e84c]
call fcn.00404238
mov ebx, eax
test ebx, ebx
jle 0x5080a2
sub ebx, 0x3f
cmp ebx, 1
jge 0x50808a
mov ebx, 1
push 0x50e84c
mov ecx, 0x3f
mov edx, ebx
mov eax, dword [0x50e84c]
call fcn.00404154
jmp 0x5080c5
push 0x50e84c
mov eax, dword [0x50e84c]
call fcn.00403f4c
mov edx, eax
sub edx, 0x3e
mov ecx, 0x3f
mov eax, dword [0x50e84c]
call fcn.00404154
mov eax, 0x50e850
mov edx, dword [0x50e84c]
call fcn.00403d20
lea edx, [ebp - 0x28]
mov eax, dword [0x50e850]
call fcn.00409274
cmp dword [ebp - 0x28], 0
je 0x5081d8
mov edx, dword [0x50e850]
mov eax, 0x5082b0
call fcn.00404238
test eax, eax
jle 0x508127
mov eax, 0x5082a0
mov edx, dword [0x50e850]
call fcn.00404238
test eax, eax
jle 0x508127
push 0x5082bc
push 0
call sub.user32.dll_FindWindowA
mov dword [0x50e848], eax
jmp 0x508149
push 0
lea edx, [ebp - 0x2c]
mov eax, dword [0x50e850]
call fcn.004090d8
mov eax, dword [ebp - 0x2c]
call fcn.00404110
push eax
call sub.user32.dll_FindWindowA
mov dword [0x50e848], eax
cmp dword [0x50e848], 0
jbe 0x5081d8
mov eax, dword [0x50e848]
push eax
call sub.user32.dll_SetForegroundWindow
push 9
mov eax, dword [0x50e848]
push eax
call sub.user32.dll_ShowWindow
cmp dword [0x50e854], 0
je 0x508260
xor eax, eax
push ebp
push 0x5081b5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
mov ecx, 0x5082d0
mov edx, dword [0x50e854]
call fcn.00403f98
mov eax, dword [ebp - 0x30]
push eax
call fcn.004304d0
pop edx
call fcn.00430170
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5081bf
push 0
push 0
push 0x1400
mov eax, dword [0x50e848]
push eax
call sub.user32.dll_PostMessageA
jmp 0x508260
mov eax, dword [esi]
call fcn.00453c00
mov eax, dword [esi]
mov edx, 0x5082e8
call fcn.00453804
mov ecx, dword [0x50b1d0]
mov eax, dword [esi]
mov edx, dword [0x4a0414]
call fcn.00453c18
mov ecx, dword [0x50b540]
mov eax, dword [esi]
mov edx, dword [0x4b8dd4]
call fcn.00453c18
lea edx, [ebp - 0x34]
mov eax, dword [0x50b540]
mov eax, dword [eax]
call fcn.00435428
mov eax, dword [ebp - 0x34]
mov edx, 0x508300
call fcn.0040405c
je 0x50824d
lea edx, [ebp - 0x38]
mov eax, dword [0x50b540]
mov eax, dword [eax]
call fcn.00435428
mov eax, dword [ebp - 0x38]
mov edx, 0x508314
call fcn.0040405c
jne 0x508259
mov eax, dword [0x50b540]
mov eax, dword [eax]
call fcn.004509ac
mov eax, dword [esi]
call fcn.00453c98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50828f
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00403cf0
lea eax, [ebp - 0x30]
mov edx, 9
call fcn.00403cf0
ret