Function at 0x410f50
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 0x57a60d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x5e1040]
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.004040d0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
push 8
push 0x5d25ec
cmp eax, 8
jb 0x410ff0
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.00547de0
add esp, 0xc
mov byte [esi + 8], 0
jmp 0x411001
mov byte [ebp - 0x54], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x54]
push 8
call fcn.00403f70
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 0x411038
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.00547de0
add esp, 0xc
mov byte [esi + 6], 0
jmp 0x411049
mov byte [ebp - 0x54], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x54]
push 6
call fcn.00403f70
push 1
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x41105d
xor ecx, ecx
jmp 0x41108c
push 0
push 0
push 1
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x411075
xor ecx, ecx
jmp 0x41108c
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]
cmp eax, 0xb7
jne 0x4110c1
push 0x5d2600
push 0x5d260c
jmp 0x4110cb
push 0x5d2620
push str.CMainWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x41110d
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 0x411111
mov byte [ebp - 0x4d], 1
test esi, esi
je 0x41111c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x41114c
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x411142
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41116d
push ecx
push edx
call fcn.004224f3
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.004224b5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0054c0bc
int3