Function at 0x41ec40
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b88eb
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
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 0x46ef60
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.00403ad0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0041ddb0
push ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0041ddb0
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 0x41ed3e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebp - 0x40], 0
je 0x41edde
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 0x41ee45
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 0x41ee66
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 0x41ee87
mov eax, dword [0x4fa8c4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x41edb4
push eax
call esi
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x14]
mov dword [0x4fa8c4], eax
call esi
push edi
call esi
lea ecx, [ebp - 0x54]
call fcn.00421f20
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.00402f80
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 5
call fcn.00402f80
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x54]
call fcn.00421fd0
lea ecx, [ebp - 0x64]
call fcn.00403130
push eax
lea eax, [ebp - 0x74]
push str.Cant_impersonate_thread_by_pipe_handle:__s
push eax
call fcn.004038a0
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.00403130
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00404c10
add esp, 8
lea eax, [ebp - 0x88]
push 0x4f7f80
push eax
call fcn.00499368
push str.Cant_open_thread_to_duplicate_impersonate_token
lea ecx, [ebp - 0xb0]
call fcn.0041cc50
push 0x4f80ac
lea eax, [ebp - 0xb0]
push eax
call fcn.00499368
push str.Cant_open_process_token_to_duplicate_impersonate_token
lea ecx, [ebp - 0xd8]
call fcn.0041cc50
push 0x4f80ac
lea eax, [ebp - 0xd8]
push eax
call fcn.00499368
push str.Cant_duplicate_token_from_impersonated_to_a_named_pipe_client_token
lea ecx, [ebp - 0x100]
call fcn.0041cc50
push 0x4f80ac
lea eax, [ebp - 0x100]
push eax
call fcn.00499368
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
call fcn.00499368
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
call fcn.00499368
int3