Function at 0x4106e0
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, 0x463510
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
call fcn.004103b0
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 [0x463510], eax
call edi
push eax
call ebx
push str.ZwClose
push str.ntdll.dll
mov dword [0x463514], eax
call edi
push eax
call ebx
xor ebx, ebx
mov dword [0x463518], eax
cmp dword [0x463510], ebx
je 0x410903
cmp dword [0x463514], ebx
je 0x410903
cmp eax, ebx
je 0x410903
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [0x46355c], eax
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp eax, ebx
je 0x410903
push 0x463560
call fcn.004100c0
cmp eax, ebx
je 0x410903
mov eax, 1
mov dword [ebp - 0x14], eax
xor edi, edi
mov dword [ebp - 0x20], edi
cmp edi, dword [esi + 0x54]
jae 0x4108f8
cmp eax, ebx
je 0x410903
cmp dword [ebp + 8], ebx
jne 0x4107f3
lea ecx, [esi + 0x50]
mov eax, edi
call fcn.00410e80
mov edx, dword [eax + 8]
cmp edx, dword [ebp - 0x1c]
jne 0x4108ed
cmp edi, dword [esi + 0x54]
jb 0x410802
push 0x80070057
call fcn.004070e0
mov ecx, dword [esi + 0x50]
push ebx
push ebx
push esi
lea eax, [edi + edi*2]
mov edx, dword [ecx + eax*4]
push 0x410420
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.00412c56
mov ebx, dword [ebp + 0xc]
add esp, 0x18
push 0
push 0
push esi
push 0x4104f0
push 0
push 0
mov dword [ebx], eax
call fcn.00412c56
mov ecx, dword [ebx]
add esp, 0x18
mov dword [ebx + 4], eax
test ecx, ecx
je 0x410852
cmp ecx, 0xffffffff
jne 0x41085b
test eax, eax
je 0x4108b4
cmp eax, 0xffffffff
je 0x4108b4
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x410872
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 0x4108bb
mov dword [ebp - 0x14], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x4108d5
cmp eax, 0xffffffff
je 0x4108d5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 4], 0
mov eax, dword [ebx]
test eax, eax
je 0x4108ed
cmp eax, 0xffffffff
je 0x4108ed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov eax, dword [ebp - 0x14]
inc edi
xor ebx, ebx
jmp 0x4107c4
cmp eax, ebx
je 0x410903
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