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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46991c
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x493014]
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 0x402206
mov al, 1
jmp 0x402a3b
mov eax, dword [0x49395c]
test eax, eax
je 0x402351
mov al, byte [eax + 0x64]
push ecx
mov ecx, 0x493958
mov byte [ebp - 0x255], al
call fcn.00406750
mov ecx, dword [0x49395c]
xor eax, eax
cmp byte [ecx + 0x54], al
je 0x402241
cmp dword [ecx + 0x58], 4
jb 0x402241
cmp byte [ecx + 0x5c], al
setne al
inc eax
cmp byte [ebp - 0x255], 0
mov dword [ebp - 0x25c], eax
je 0x402351
test eax, eax
je 0x402351
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.00403ce0
push 0x27
push str.RC::RCCrashService::Start
push str.d:jenkinsworkspacepc_qncleaner_buildqncleanerprojectsqncservice_src_rccrashservice.cpp
lea eax, [ebp - 0x234]
mov ecx, 0x493958
push eax
push 4
call fcn.00407590
cmp dword [ebp - 0x25c], 1
jbe 0x4022e6
lea eax, [ebp - 0x234]
mov ecx, 0x493958
push eax
call fcn.004078a0
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x40232d
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402323
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a56
push edx
push ecx
call fcn.00434f80
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.004088e0
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.0044bf20
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x4026c9
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 0x4023e5
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x24c]
call fcn.00403ce0
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.00403ce0
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 9
push eax
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x274]
call fcn.004189b0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 0xa
cmp eax, esi
je 0x4024aa
mov ecx, eax
call fcn.004039b0
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 0x4024ee
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4024e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a5b
push edx
push ecx
call fcn.00434f80
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 0x40254f
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402545
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a60
push edx
push ecx
call fcn.00434f80
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.004189b0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 0x14
cmp eax, esi
je 0x4025de
mov ecx, eax
call fcn.004039b0
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 0x402622
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402618
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a65
push edx
push ecx
call fcn.00434f80
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 0x402683
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402679
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a6a
push edx
push ecx
call fcn.00434f80
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.004153b0
test al, al
je 0x4026be
lea ecx, [ebp - 0x24c]
call fcn.0041ef40
lea ecx, [ebp - 0x24c]
call fcn.00415db0
push 0x3c
call fcn.00434f50
mov esi, eax
mov dword [ebp - 0x25c], esi
push 0x3c
push 0
push esi
mov byte [ebp - 4], 0x1d
call fcn.0044bf20
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.00408020
mov dword [ebp - 4], 0x1f
mov ecx, dword [edi + 4]
mov dword [edi + 4], eax
test ecx, ecx
je 0x402732
push ecx
call fcn.00403bc0
mov dword [ebp - 4], 0x20
mov edx, dword [ebp - 0x260]
cmp edx, 8
jb 0x402779
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40276f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a6f
push edx
push ecx
call fcn.00434f80
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 0x40284a
cmp dword [esi + 0x84], 0
jne 0x40284a
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 0x40284a
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40284a
push 4
push 0xffffffffffffffff
push esi
push 0x42f5d9
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40284a
push dword [esi + 0x38]
lea ecx, [esi + 0x20]
push 0
push 0x40
push 0x40
push 1
push 6
push 0x40080003
call fcn.00403970
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x40284a
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x402960
mov dword [esi + 0x84], 1
mov eax, dword [0x49395c]
test eax, eax
je 0x402994
mov al, byte [eax + 0x64]
push ecx
mov ecx, 0x493958
mov byte [ebp - 0x255], al
call fcn.00406750
mov ecx, dword [0x49395c]
xor eax, eax
cmp byte [ecx + 0x54], al
je 0x402885
cmp dword [ecx + 0x58], 2
jb 0x402885
cmp byte [ecx + 0x5c], al
setne al
inc eax
cmp byte [ebp - 0x255], 0
mov dword [ebp - 0x25c], eax
je 0x402994
test eax, eax
je 0x402994
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 0x47fbb4
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0x25
call fcn.00403ce0
push 0x3b
push str.RC::RCCrashService::Start
push str.d:jenkinsworkspacepc_qncleaner_buildqncleanerprojectsqncservice_src_rccrashservice.cpp
lea eax, [ebp - 0x234]
mov ecx, 0x493958
push eax
push 2
call fcn.00407590
cmp dword [ebp - 0x25c], 1
jbe 0x402924
lea eax, [ebp - 0x234]
mov ecx, 0x493958
push eax
call fcn.004078a0
mov byte [ebp - 4], 0x26
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x402973
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402969
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a74
jmp 0x402969
mov byte [ebp - 0x255], 1
jmp 0x40299b
push edx
push ecx
call fcn.00434f80
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 0x4029df
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4029d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a79
push edx
push ecx
call fcn.00434f80
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 0x402a2e
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x402a2e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x402a2e
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.00434f3f
mov esp, ebp
pop ebp
ret
call fcn.0044e859
call fcn.0044e859
call fcn.0044e859
call fcn.0044e859
call fcn.0044e859
call fcn.0044e859
call fcn.0044e859
call fcn.0044e859
int3