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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468fac
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x492014]
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 0x402186
mov al, 1
jmp 0x4029bb
mov eax, dword [0x49295c]
test eax, eax
je 0x4022d1
mov al, byte [eax + 0x64]
push ecx
mov ecx, 0x492958
mov byte [ebp - 0x255], al
call fcn.004066c0
mov ecx, dword [0x49295c]
xor eax, eax
cmp byte [ecx + 0x54], al
je 0x4021c1
cmp dword [ecx + 0x58], 4
jb 0x4021c1
cmp byte [ecx + 0x5c], al
setne al
inc eax
cmp byte [ebp - 0x255], 0
mov dword [ebp - 0x25c], eax
je 0x4022d1
test eax, eax
je 0x4022d1
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.00403c60
push 0x27
push str.RC::RCCrashService::Start
push str.d:jenkinsworkspacepc_qncleaner_buildqncleanerprojectsqncservice_src_rccrashservice.cpp
lea eax, [ebp - 0x234]
mov ecx, 0x492958
push eax
push 4
call fcn.00407500
cmp dword [ebp - 0x25c], 1
jbe 0x402266
lea eax, [ebp - 0x234]
mov ecx, 0x492958
push eax
call fcn.00407810
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x4022ad
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4022a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4029d6
push edx
push ecx
call fcn.00434612
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.00408850
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.0044b5b0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x402649
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 0x402365
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x24c]
call fcn.00403c60
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.00403c60
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 9
push eax
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x274]
call fcn.00418050
add esp, 4
mov esi, eax
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 0xa
cmp eax, esi
je 0x40242a
mov ecx, eax
call fcn.00403930
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 0x40246e
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402464
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4029db
push edx
push ecx
call fcn.00434612
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 0x4024cf
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4024c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4029e0
push edx
push ecx
call fcn.00434612
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.00418050
add esp, 4
mov esi, eax
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 0x14
cmp eax, esi
je 0x40255e
mov ecx, eax
call fcn.00403930
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 0x4025a2
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402598
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4029e5
push edx
push ecx
call fcn.00434612
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 0x402603
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4025f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4029ea
push edx
push ecx
call fcn.00434612
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.00414a50
test al, al
je 0x40263e
lea ecx, [ebp - 0x24c]
call fcn.0041e5e0
lea ecx, [ebp - 0x24c]
call fcn.00415450
push 0x3c
call fcn.004345e2
mov esi, eax
mov dword [ebp - 0x25c], esi
push 0x3c
push 0
push esi
mov byte [ebp - 4], 0x1d
call fcn.0044b5b0
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.00407f90
mov dword [ebp - 4], 0x1f
mov ecx, dword [edi + 4]
mov dword [edi + 4], eax
test ecx, ecx
je 0x4026b2
push ecx
call fcn.00403b40
mov dword [ebp - 4], 0x20
mov edx, dword [ebp - 0x260]
cmp edx, 8
jb 0x4026f9
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4026ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4029ef
push edx
push ecx
call fcn.00434612
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 0x4027ca
cmp dword [esi + 0x84], 0
jne 0x4027ca
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 0x4027ca
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x4027ca
push 4
push 0xffffffffffffffff
push esi
push 0x42ec69
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x4027ca
push dword [esi + 0x38]
lea ecx, [esi + 0x20]
push 0
push 0x40
push 0x40
push 1
push 6
push 0x40080003
call fcn.004038f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x4027ca
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4028e0
mov dword [esi + 0x84], 1
mov eax, dword [0x49295c]
test eax, eax
je 0x402914
mov al, byte [eax + 0x64]
push ecx
mov ecx, 0x492958
mov byte [ebp - 0x255], al
call fcn.004066c0
mov ecx, dword [0x49295c]
xor eax, eax
cmp byte [ecx + 0x54], al
je 0x402805
cmp dword [ecx + 0x58], 2
jb 0x402805
cmp byte [ecx + 0x5c], al
setne al
inc eax
cmp byte [ebp - 0x255], 0
mov dword [ebp - 0x25c], eax
je 0x402914
test eax, eax
je 0x402914
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 0x47eba4
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0x25
call fcn.00403c60
push 0x3b
push str.RC::RCCrashService::Start
push str.d:jenkinsworkspacepc_qncleaner_buildqncleanerprojectsqncservice_src_rccrashservice.cpp
lea eax, [ebp - 0x234]
mov ecx, 0x492958
push eax
push 2
call fcn.00407500
cmp dword [ebp - 0x25c], 1
jbe 0x4028a4
lea eax, [ebp - 0x234]
mov ecx, 0x492958
push eax
call fcn.00407810
mov byte [ebp - 4], 0x26
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x4028f3
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4028e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4029f4
jmp 0x4028e9
mov byte [ebp - 0x255], 1
jmp 0x40291b
push edx
push ecx
call fcn.00434612
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 0x40295f
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402955
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4029f9
push edx
push ecx
call fcn.00434612
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 0x4029ae
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4029ae
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4029ae
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.004345d1
mov esp, ebp
pop ebp
ret
call fcn.0044dee9
call fcn.0044dee9
call fcn.0044dee9
call fcn.0044dee9
call fcn.0044dee9
call fcn.0044dee9
call fcn.0044dee9
call fcn.0044dee9
int3