Function at 0x4106b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423d80
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x42c520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor eax, eax
mov esi, 0x463410
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
call fcn.00410380
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.ZwOpenProcess
push str.ntdll.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.ZwTerminateProcess
push str.ntdll.dll
mov dword [0x463410], eax
call edi
push eax
call ebx
push str.ZwClose
push str.ntdll.dll
mov dword [0x463414], eax
call edi
push eax
call ebx
xor ebx, ebx
mov dword [0x463418], eax
cmp dword [0x463410], ebx
je 0x4108d3
cmp dword [0x463414], ebx
je 0x4108d3
cmp eax, ebx
je 0x4108d3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [0x46345c], eax
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp eax, ebx
je 0x4108d3
push 0x463460
call fcn.00410090
cmp eax, ebx
je 0x4108d3
mov eax, 1
mov dword [ebp - 0x14], eax
xor edi, edi
mov dword [ebp - 0x20], edi
cmp edi, dword [esi + 0x54]
jae 0x4108c8
cmp eax, ebx
je 0x4108d3
cmp dword [ebp + 8], ebx
jne 0x4107c3
lea ecx, [esi + 0x50]
mov eax, edi
call fcn.00410e50
mov edx, dword [eax + 8]
cmp edx, dword [ebp - 0x1c]
jne 0x4108bd
cmp edi, dword [esi + 0x54]
jb 0x4107d2
push 0x80070057
call fcn.00407110
mov ecx, dword [esi + 0x50]
push ebx
push ebx
push esi
lea eax, [edi + edi*2]
mov edx, dword [ecx + eax*4]
push 0x4103f0
lea eax, [ecx + eax*4]
push ebx
push ebx
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x28], ebx
call fcn.00412c26
mov ebx, dword [ebp + 0xc]
add esp, 0x18
push 0
push 0
push esi
push 0x4104c0
push 0
push 0
mov dword [ebx], eax
call fcn.00412c26
mov ecx, dword [ebx]
add esp, 0x18
mov dword [ebx + 4], eax
test ecx, ecx
je 0x410822
cmp ecx, 0xffffffff
jne 0x41082b
test eax, eax
je 0x410884
cmp eax, 0xffffffff
je 0x410884
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x410842
mov dword [ebp - 0x14], 0
lea edi, [esi + 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [esi + 0x44], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [esi + 0x28], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xffffffffffffffff
push 1
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, dword [ebp - 0x20]
jmp 0x41088b
mov dword [ebp - 0x14], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x4108a5
cmp eax, 0xffffffff
je 0x4108a5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 4], 0
mov eax, dword [ebx]
test eax, eax
je 0x4108bd
cmp eax, 0xffffffff
je 0x4108bd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov eax, dword [ebp - 0x14]
inc edi
xor ebx, ebx
jmp 0x410794
cmp eax, ebx
je 0x4108d3
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8