Function at 0x40eca0
Capabilities:
Check if file exists
Create process on windows
Delete file
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b623e
mov eax, dword fs:[0]
push eax
sub esp, 0x574
mov eax, dword [0x4f0464]
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 - 0x48c], edi
lea eax, [ebp - 0x440]
push eax
call fcn.0040e9e0
cmp dword [ebp - 0x42c], 0x10
lea eax, [ebp - 0x440]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ed22
cmp dword [ebp - 0x42c], 0x10
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x470]
push str.dxdiag__whql:off__t
push eax
call fcn.004073c0
push str._tDxdiag_output_filename:
push 0x4f43f0
mov byte [ebp - 4], 1
call fcn.00406e20
cmp dword [ebp - 0x42c], 0x10
lea ecx, [ebp - 0x440]
push dword [ebp - 0x430]
cmovae ecx, dword [ebp - 0x440]
push ecx
push eax
call fcn.00407ad0
mov esi, eax
add esp, 0x20
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.004142b0
movzx ecx, al
push ecx
mov ecx, esi
call fcn.00413670
mov ecx, esi
call fcn.00412e50
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x428]
call fcn.00408fb0
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0048c160
push 0x44
lea eax, [ebp - 0x4e8]
push 0
push eax
call fcn.0048c160
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x428]
push eax
push 0x4c245c
lea eax, [ebp - 0x410]
push 0x400
push eax
movups xmmword [ebp - 0x4a0], xmm0
call fcn.00414920
add esp, 0x28
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x4e8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x410]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0xffffffffffffffff
push dword [ebp - 0x4a0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x414]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp edx, 0x10
jb 0x40ee78
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ee6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f28c
push edx
push ecx
call fcn.00466e06
add esp, 8
test esi, esi
jne 0x40ef88
call fcn.00445180
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40ef88
cmp dword [ebp - 0x45c], 0x10
lea eax, [ebp - 0x470]
push 0x70
cmovae eax, dword [ebp - 0x470]
lea ecx, [ebp - 0x458]
push str.d:jenkins.jenkinsworkspacelib_commonwin11_update_assistantwin11_update_assistant_srccheckwin11_check.cpp
mov dword [ebp - 0x494], eax
mov dword [ebp - 0x448], esi
mov dword [ebp - 0x444], 0xf
mov byte [ebp - 0x458], 0
call fcn.00411d10
push 3
push 0x4c1b84
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 2
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
call fcn.00411d10
mov byte [ebp - 4], 3
call fcn.00445180
mov edi, eax
lea ecx, [ebp - 0x580]
push 0x263
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.004092d0
mov esi, eax
push str.ExeCmd_failed__
push esi
mov byte [ebp - 4], 4
call fcn.0040a600
push dword [ebp - 0x494]
push esi
call fcn.0040a600
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x580]
call fcn.0040a7e0
lea ecx, [ebp - 0x428]
call fcn.00409da0
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 1
call fcn.00409da0
mov edi, dword [ebp - 0x48c]
cmp dword [ebp - 0x42c], 0x10
lea eax, [ebp - 0x440]
push 1
cmovae eax, dword [ebp - 0x440]
lea ecx, [ebp - 0xc8]
push 0x40
push 0x20
push eax
call fcn.00408a60
mov eax, dword [ebp - 0xc8]
mov byte [ebp - 4], 5
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0xbc], 6
jne 0x40f053
mov eax, dword [ebp + ecx - 0xbc]
and eax, 0x17
mov dword [ebp + ecx - 0xb8], 7
mov dword [ebp + ecx - 0xbc], eax
test al, 7
jne 0x40f291
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0x428]
mov word [ebp - 0x48c], 1
push dword [ebp - 0x48c]
mov dword [ebp - 0x418], 0
mov eax, dword [eax + 4]
push dword [ebp - 0x48c]
mov byte [ebp - 0x493], 0
push 0
mov eax, dword [ebp + eax - 0x90]
test eax, eax
mov dword [ebp - 0x414], 0xf
sete byte [ebp - 0x494]
mov byte [ebp - 0x428], 0
push dword [ebp - 0x494]
push eax
call fcn.00407580
jmp 0x40f080
push 0
push 0x4c17ec
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
call fcn.00411d10
lea ecx, [ebp - 0xc8]
call fcn.0040a750
mov ecx, dword [ebp - 0x418]
mov byte [ebp - 4], 6
test ecx, ecx
jne 0x40f188
call fcn.00445180
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40f1ac
push 0x70
push str.d:jenkins.jenkinsworkspacelib_commonwin11_update_assistantwin11_update_assistant_srccheckwin11_check.cpp
lea ecx, [ebp - 0x488]
mov dword [ebp - 0x478], eax
mov dword [ebp - 0x474], 0xf
mov byte [ebp - 0x488], al
call fcn.00411d10
push 3
push 0x4c1b84
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 7
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0xf
mov byte [ebp - 0x458], 0
call fcn.00411d10
mov byte [ebp - 4], 8
call fcn.00445180
mov edi, eax
lea ecx, [ebp - 0x580]
push 0x268
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.004092d0
mov esi, eax
push str.dxdiag_output_file_read_failed_with
push esi
mov byte [ebp - 4], 9
call fcn.0040a600
add esp, 8
call fcn.0048f342
mov ecx, esi
push dword [eax]
call fcn.0040a450
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x580]
call fcn.0040a7e0
lea ecx, [ebp - 0x458]
call fcn.00409da0
lea ecx, [ebp - 0x488]
call fcn.00409da0
jmp 0x40f1ac
lea edx, [edi + 0xc]
lea eax, [ebp - 0x428]
cmp edx, eax
je 0x40f1ac
cmp dword [ebp - 0x414], 0x10
push ecx
cmovae eax, dword [ebp - 0x428]
mov ecx, edx
push eax
call fcn.00411d10
mov edx, dword [ebp - 0x414]
cmp edx, 0x10
jb 0x40f1e6
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f1dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f2da
push edx
push ecx
call fcn.00466e06
add esp, 8
mov edx, dword [ebp - 0x45c]
cmp edx, 0x10
jb 0x40f220
mov ecx, dword [ebp - 0x470]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f216
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f2df
push edx
push ecx
call fcn.00466e06
add esp, 8
mov edx, dword [ebp - 0x42c]
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 0xf
mov byte [ebp - 0x470], 0
cmp edx, 0x10
jb 0x40f271
mov ecx, dword [ebp - 0x440]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f267
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f2e4
push edx
push ecx
call fcn.00466e06
add esp, 8
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.004670b3
mov esp, ebp
pop ebp
ret
call fcn.0048f279
test al, 4
je 0x40f29c
mov esi, str.ios_base::badbit_set
jmp 0x40f2ab
test al, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x490]
push 1
push eax
call fcn.00412fa0
add esp, 8
lea ecx, [ebp - 0x4a4]
push eax
push esi
call fcn.00409770
push 0x4e1f04
lea eax, [ebp - 0x4a4]
push eax
call fcn.0048b18a
call fcn.0048f279
call fcn.0048f279
call fcn.0048f279
int3