Function at 0x41ef90
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb18b
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
push ebx
push esi
push edi
mov eax, dword [0x554008]
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 0x472140
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.00403af0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x524da8
push ecx
call fcn.0049dfe0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0041e0f0
push ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0041e0f0
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 0x41f08e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebp - 0x40], 0
je 0x41f12e
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 0x41f195
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 0x41f1b6
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 0x41f1d7
mov eax, dword [0x5548c4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x41f104
push eax
call esi
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x14]
mov dword [0x5548c4], eax
call esi
push edi
call esi
lea ecx, [ebp - 0x54]
call fcn.00422270
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.00402fa0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 5
call fcn.00402fa0
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x54]
call fcn.00422320
lea ecx, [ebp - 0x64]
call fcn.00403150
push eax
lea eax, [ebp - 0x74]
push str.Cant_impersonate_thread_by_pipe_handle:__s
push eax
call fcn.004038c0
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.00403150
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00403f20
add esp, 8
lea eax, [ebp - 0x88]
push 0x5520f0
push eax
call fcn.0049c518
push str.Cant_open_thread_to_duplicate_impersonate_token
lea ecx, [ebp - 0xb0]
call fcn.0041cf90
push 0x55221c
lea eax, [ebp - 0xb0]
push eax
call fcn.0049c518
push str.Cant_open_process_token_to_duplicate_impersonate_token
lea ecx, [ebp - 0xd8]
call fcn.0041cf90
push 0x55221c
lea eax, [ebp - 0xd8]
push eax
call fcn.0049c518
push str.Cant_duplicate_token_from_impersonated_to_a_named_pipe_client_token
lea ecx, [ebp - 0x100]
call fcn.0041cf90
push 0x55221c
lea eax, [ebp - 0x100]
push eax
call fcn.0049c518
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
call fcn.0049c518
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
call fcn.0049c518
int3