Function at 0x4021e0
Capabilities:
Create pipe
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b80c
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x495014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x278], 0
cmp dword [edi + 4], 0
je 0x402226
mov al, 1
jmp 0x402a5b
mov eax, dword [0x49595c]
test eax, eax
je 0x402371
mov al, byte [eax + 0x64]
push ecx
mov ecx, 0x495958
mov byte [ebp - 0x255], al
call fcn.00406ac0
mov ecx, dword [0x49595c]
xor eax, eax
cmp byte [ecx + 0x54], al
je 0x402261
cmp dword [ecx + 0x58], 4
jb 0x402261
cmp byte [ecx + 0x5c], al
setne al
inc eax
cmp byte [ebp - 0x255], 0
mov dword [ebp - 0x25c], eax
je 0x402371
test eax, eax
je 0x402371
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
push 0x19
push str._CrashServerStart__begin_n
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 1
call fcn.00403d00
push 0x27
push str.RC::RCCrashService::Start
push str.d:jenkinsworkspacepc_qncleaner_buildqncleanerprojectsqncservice_src_rccrashservice.cpp
lea eax, [ebp - 0x234]
mov ecx, 0x495958
push eax
push 4
call fcn.00407900
cmp dword [ebp - 0x25c], 1
jbe 0x402306
lea eax, [ebp - 0x234]
mov ecx, 0x495958
push eax
call fcn.00407c10
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x40234d
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402343
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a76
push edx
push ecx
call fcn.00436e80
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov dword [ebp - 4], 0xffffffff
xorps xmm0, xmm0
lea ecx, [ebp - 0x254]
movlpd qword [ebp - 0x254], xmm0
call fcn.00408c50
mov dword [ebp - 4], 7
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
push 0x20c
push eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 8
push eax
call fcn.0044de20
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x4026e9
xor eax, eax
lea ecx, [ebp - 0x21c]
mov word [ebp - 0x12], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402405
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x24c]
call fcn.00403d00
push 0xa
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x234]
push str.TempCrash
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call fcn.00403d00
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 9
push eax
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x274]
call fcn.00419f30
add esp, 4
mov esi, eax
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 0xa
cmp eax, esi
je 0x4024ca
mov ecx, eax
call fcn.004039d0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x24c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x23c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x260]
cmp edx, 8
jb 0x40250e
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402504
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a7b
push edx
push ecx
call fcn.00436e80
add esp, 8
xor eax, eax
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 7
mov word [ebp - 0x274], ax
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x40256f
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402565
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a80
push edx
push ecx
call fcn.00436e80
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov byte [ebp - 4], 8
lea edx, [ebp - 0x234]
mov ecx, dword [ebp - 0x254]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
push eax
lea edx, [ebp - 0x24c]
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x274]
call fcn.00419f30
add esp, 4
mov esi, eax
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 0x14
cmp eax, esi
je 0x4025fe
mov ecx, eax
call fcn.004039d0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x24c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x23c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0x260]
cmp edx, 8
jb 0x402642
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402638
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a85
push edx
push ecx
call fcn.00436e80
add esp, 8
xor eax, eax
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 7
mov word [ebp - 0x274], ax
mov byte [ebp - 4], 0x19
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x4026a3
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402699
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a8a
push edx
push ecx
call fcn.00436e80
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 8
call fcn.004167e0
test al, al
je 0x4026de
lea ecx, [ebp - 0x24c]
call fcn.00420a70
lea ecx, [ebp - 0x24c]
call fcn.004171e0
push 0x3c
call fcn.00436e50
mov esi, eax
mov dword [ebp - 0x25c], esi
push 0x3c
push 0
push esi
mov byte [ebp - 4], 0x1d
call fcn.0044de20
mov ecx, dword [ebp - 0x254]
lea edx, [ebp - 0x274]
add esp, 0x10
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 4]
call eax
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0x1e
push ecx
push edi
push eax
mov ecx, esi
mov dword [ebp - 0x278], 1
call fcn.00408390
mov dword [ebp - 4], 0x1f
mov ecx, dword [edi + 4]
mov dword [edi + 4], eax
test ecx, ecx
je 0x402752
push ecx
call fcn.00403be0
mov dword [ebp - 4], 0x20
mov edx, dword [ebp - 0x260]
cmp edx, 8
jb 0x402799
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40278f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a8f
push edx
push ecx
call fcn.00436e80
add esp, 8
xor eax, eax
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 7
mov word [ebp - 0x274], ax
mov byte [ebp - 4], 8
mov eax, dword [edi + 4]
mov esi, dword [eax + 0x34]
test esi, esi
je 0x40286a
cmp dword [esi + 0x84], 0
jne 0x40286a
push 0
push 1
push 0
mov dword [esi + 0x84], 2
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x40286a
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40286a
push 4
push 0xffffffffffffffff
push esi
push 0x4314d9
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40286a
push dword [esi + 0x38]
lea ecx, [esi + 0x20]
push 0
push 0x40
push 0x40
push 1
push 6
push 0x40080003
call fcn.00403990
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x40286a
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x402980
mov dword [esi + 0x84], 1
mov eax, dword [0x49595c]
test eax, eax
je 0x4029b4
mov al, byte [eax + 0x64]
push ecx
mov ecx, 0x495958
mov byte [ebp - 0x255], al
call fcn.00406ac0
mov ecx, dword [0x49595c]
xor eax, eax
cmp byte [ecx + 0x54], al
je 0x4028a5
cmp dword [ecx + 0x58], 2
jb 0x4028a5
cmp byte [ecx + 0x5c], al
setne al
inc eax
cmp byte [ebp - 0x255], 0
mov dword [ebp - 0x25c], eax
je 0x4029b4
test eax, eax
je 0x4029b4
mov byte [ebp - 4], 0x24
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
push 8
push 0x481bb4
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0x25
call fcn.00403d00
push 0x3b
push str.RC::RCCrashService::Start
push str.d:jenkinsworkspacepc_qncleaner_buildqncleanerprojectsqncservice_src_rccrashservice.cpp
lea eax, [ebp - 0x234]
mov ecx, 0x495958
push eax
push 2
call fcn.00407900
cmp dword [ebp - 0x25c], 1
jbe 0x402944
lea eax, [ebp - 0x234]
mov ecx, 0x495958
push eax
call fcn.00407c10
mov byte [ebp - 4], 0x26
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x402993
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402989
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a94
jmp 0x402989
mov byte [ebp - 0x255], 1
jmp 0x4029bb
push edx
push ecx
call fcn.00436e80
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov byte [ebp - 4], 8
mov byte [ebp - 0x255], 0
mov byte [ebp - 4], 0x2f
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x4029ff
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4029f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a99
push edx
push ecx
call fcn.00436e80
add esp, 8
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
mov dword [ebp - 4], 0x33
mov esi, dword [ebp - 0x250]
test esi, esi
je 0x402a4e
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x402a4e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x402a4e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov al, byte [ebp - 0x255]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00436e3f
mov esp, ebp
pop ebp
ret
call fcn.00450759
call fcn.00450759
call fcn.00450759
call fcn.00450759
call fcn.00450759
call fcn.00450759
call fcn.00450759
call fcn.00450759
int3