Function at 0x468290
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8418
push 0x47d4e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffb0
push ebx
push esi
push edi
mov byte [ebp - 0x19], 0
push 2
push 0
push 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x468300
push 0x100000
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00466f00
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [0x4c8cec]
test eax, eax
jne 0x468322
movzx ecx, byte [0x4c8ced]
test ecx, ecx
jne 0x46831b
call fcn.00469b50
mov byte [0x4c8cec], 1
mov byte [ebp - 0x19], 1
push 0x4c8d04
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
jmp 0x46834a
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [0x4c8cf8]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x3c]
jge 0x468388
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x4c8cf4]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call sub.MSVCR110.dll__stricmp
add esp, 8
test eax, eax
jne 0x468386
mov byte [ebp - 0x19], 0
jmp 0x468388
jmp 0x468341
mov dword [ebp - 4], 0xffffffff
call fcn.00468396
jmp 0x4683a2
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x468611
push 8
push 0
lea ecx, [ebp - 0x4c]
push ecx
call sub.MSVCR110.dll_memset
add esp, 0xc
call fcn.00467860
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004677c0
add esp, 8
call fcn.0046b950
movzx ecx, al
test ecx, ecx
je 0x4683ed
lea edx, [ebp - 0x60]
push edx
call fcn.0046b9f0
add esp, 4
jmp 0x468409
push 1
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push 0x18
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [edx], 0x18
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x4c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x60]
mov dword [edx + 0x10], eax
mov dword [ebp - 0x38], 0xffffffff
push 0
push 0x12c
push 0x104
mov ecx, dword [ebp - 0x28]
push ecx
lea edx, [ebp - 0x38]
push edx
call dword [0x4c8cd8]
push eax
push 0x48aee8
call fcn.00467960
add esp, 8
mov byte [ebp - 0x19], al
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
movzx edx, byte [ebp - 0x19]
test edx, edx
jne 0x468486
xor al, al
jmp 0x468614
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x468611
push str.NtCreatePort_succeeded_n
call fcn.00467980
add esp, 4
cmp dword [ebp + 0x10], 0x40
jbe 0x4684ac
mov dword [ebp + 0x10], 0x40
push 0x48
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10
call fcn.0047cd16
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x468523
mov eax, dword [ebp - 0x24]
mov dword [eax], 0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x24]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x24]
mov byte [eax + 0xc], 0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x34], ecx
jmp 0x46852a
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov dword [edx + 0x44], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x14]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x38]
mov dword [ecx + 0x10], edx
push 0
push SysReAllocString
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x34], eax
mov edx, dword [ebp - 0x20]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x44]
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
push 0x467e40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
lea eax, [ebp - 0x44]
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
push 0x467ab0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x40], eax
push 7
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 1
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0x4c8d04
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x20]
push ecx
mov ecx, 0x4c8cf4
call fcn.00469d50
mov dword [ebp - 4], 0xffffffff
call fcn.00468605
jmp 0x468611
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret