Function at 0x41e070
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b70ab
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 0x46e520
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.00403cc0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb34c
push ecx
call fcn.0049a3f0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0041d1d0
push ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0041d1d0
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 0x41e16e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebp - 0x40], 0
je 0x41e20e
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 0x41e275
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 0x41e296
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 0x41e2b7
mov eax, dword [0x4fa8c4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x41e1e4
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.00421350
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.00403170
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 5
call fcn.00403170
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x54]
call fcn.00421400
lea ecx, [ebp - 0x64]
call fcn.00403320
push eax
lea eax, [ebp - 0x74]
push str.Cant_impersonate_thread_by_pipe_handle:__s
push eax
call fcn.00403a90
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.00403320
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00404e00
add esp, 8
lea eax, [ebp - 0x88]
push 0x4f7790
push eax
call fcn.00498928
push str.Cant_open_thread_to_duplicate_impersonate_token
lea ecx, [ebp - 0xb0]
call fcn.0041c070
push 0x4f78bc
lea eax, [ebp - 0xb0]
push eax
call fcn.00498928
push str.Cant_open_process_token_to_duplicate_impersonate_token
lea ecx, [ebp - 0xd8]
call fcn.0041c070
push 0x4f78bc
lea eax, [ebp - 0xd8]
push eax
call fcn.00498928
push str.Cant_duplicate_token_from_impersonated_to_a_named_pipe_client_token
lea ecx, [ebp - 0x100]
call fcn.0041c070
push 0x4f78bc
lea eax, [ebp - 0x100]
push eax
call fcn.00498928
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
call fcn.00498928
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
call fcn.00498928
int3