Function at 0x41ea90
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7abb
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
push ebx
push esi
push edi
mov eax, dword [0x4fb008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x54], vtable.Thread.0
push eax
push 4
lea eax, [ebp - 0x54]
mov byte [ebp - 0x48], 0
push eax
push 0x46ef80
push 0
push 0
mov byte [ebp - 0x47], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x54], vtable.PipeImpersonatedThread.0
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x3c], vtable.StringStorage.0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
push 1
mov ecx, eax
call fcn.00404970
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cc34c
push ecx
call fcn.0049ae40
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0041dc00
push ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0041dc00
mov dword [ebp - 4], 4
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x28]
setne byte [ebp - 0x48]
test eax, eax
je 0x41eb8e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebp - 0x40], 0
je 0x41ec2e
push dword [ebp - 0x4c]
push 0
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x41ec95
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 7
push eax
push 1
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x41ecb6
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 8
push eax
push 1
push 2
push 0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x41ecd7
mov eax, dword [0x4fb8c4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x41ec04
push eax
call esi
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x14]
mov dword [0x4fb8c4], eax
call esi
push edi
call esi
lea ecx, [ebp - 0x54]
call fcn.00421d70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x64]
call fcn.00403e20
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 5
call fcn.00403e20
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x54]
call fcn.00421e20
lea ecx, [ebp - 0x64]
call fcn.00403fd0
push eax
lea eax, [ebp - 0x74]
push str.Cant_impersonate_thread_by_pipe_handle:__s
push eax
call fcn.00404740
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.00403fd0
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00405ab0
add esp, 8
lea eax, [ebp - 0x88]
push 0x4f88b0
push eax
call fcn.00499378
push str.Cant_open_thread_to_duplicate_impersonate_token
lea ecx, [ebp - 0xb0]
call fcn.0041caa0
push 0x4f89dc
lea eax, [ebp - 0xb0]
push eax
call fcn.00499378
push str.Cant_open_process_token_to_duplicate_impersonate_token
lea ecx, [ebp - 0xd8]
call fcn.0041caa0
push 0x4f89dc
lea eax, [ebp - 0xd8]
push eax
call fcn.00499378
push str.Cant_duplicate_token_from_impersonated_to_a_named_pipe_client_token
lea ecx, [ebp - 0x100]
call fcn.0041caa0
push 0x4f89dc
lea eax, [ebp - 0x100]
push eax
call fcn.00499378
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
call fcn.00499378
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
call fcn.00499378
int3