Function at 0x411700
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b59d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x5df040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x11
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push str.Global_ONCE_RUN_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
call fcn.00404110
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
push 8
push 0x5d1604
cmp eax, 8
jb 0x4117a0
cmp edx, 0xf
lea esi, [ebp - 0x2c]
lea eax, [ecx + 8]
cmova esi, dword [ebp - 0x2c]
add esi, ecx
mov dword [ebp - 0x1c], eax
push esi
call fcn.00548d90
add esp, 0xc
mov byte [esi + 8], 0
jmp 0x4117b1
mov byte [ebp - 0x54], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x54]
push 8
call fcn.00403fb0
mov edx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
push 6
push str._Main_
cmp eax, 6
jb 0x4117e8
cmp edx, 0xf
lea esi, [ebp - 0x2c]
lea eax, [ecx + 6]
cmova esi, dword [ebp - 0x2c]
add esi, ecx
mov dword [ebp - 0x1c], eax
push esi
call fcn.00548d90
add esp, 0xc
mov byte [esi + 6], 0
jmp 0x4117f9
mov byte [ebp - 0x54], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x54]
push 6
call fcn.00403fb0
push 1
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x41180d
xor ecx, ecx
jmp 0x41183c
push 0
push 0
push 1
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x411825
xor ecx, ecx
jmp 0x41183c
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x30], 1
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
push 1
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov esi, eax
mov dword [ebp - 0x54], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5d1618
push str.CMainWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x4118aa
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push edi
call esi
mov esi, dword [ebp - 0x54]
mov byte [ebp - 0x4d], 0
jmp 0x4118ae
mov byte [ebp - 0x4d], 1
test esi, esi
je 0x4118b9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x4118e9
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4118df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41190a
push ecx
push edx
call fcn.004234d3
add esp, 8
mov al, byte [ebp - 0x4d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00423495
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0054d06c
int3