Function at 0x40a7f0
Capabilities:
Check if file exists
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47df3e
mov eax, dword fs:[0]
push eax
sub esp, 0x574
mov eax, dword [0x4a62c4]
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.0040a530
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 0x40a872
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.00402f10
push str._tDxdiag_output_filename:
push 0x4a87e0
mov byte [ebp - 4], 1
call fcn.00402970
cmp dword [ebp - 0x42c], 0x10
lea ecx, [ebp - 0x440]
push dword [ebp - 0x430]
cmovae ecx, dword [ebp - 0x440]
push ecx
push eax
call fcn.00403620
mov esi, eax
add esp, 0x20
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0040fda0
movzx ecx, al
push ecx
mov ecx, esi
call fcn.0040f160
mov ecx, esi
call fcn.0040e9a0
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x428]
call fcn.00404b00
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00455240
push 0x44
lea eax, [ebp - 0x4e8]
push 0
push eax
call fcn.00455240
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x428]
push eax
push 0x4865ac
lea eax, [ebp - 0x410]
push 0x400
push eax
movups xmmword [ebp - 0x4a0], xmm0
call fcn.00410410
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 0x40a9c8
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a9be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40addc
push edx
push ecx
call fcn.00446e66
add esp, 8
test esi, esi
jne 0x40aad8
call fcn.0042e4b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40aad8
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.0040d860
push 3
push 0x485cd4
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.0040d860
mov byte [ebp - 4], 3
call fcn.0042e4b0
mov edi, eax
lea ecx, [ebp - 0x580]
push 0x26b
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00404e20
mov esi, eax
push str.ExeCmd_failed__
push esi
mov byte [ebp - 4], 4
call fcn.00406150
push dword [ebp - 0x494]
push esi
call fcn.00406150
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x580]
call fcn.00406330
lea ecx, [ebp - 0x428]
call fcn.004058f0
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 1
call fcn.004058f0
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.004045b0
mov eax, dword [ebp - 0xc8]
mov byte [ebp - 4], 5
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0xbc], 6
jne 0x40aba3
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 0x40ade1
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.004030d0
jmp 0x40abd0
push 0
push 0x48595c
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
call fcn.0040d860
lea ecx, [ebp - 0xc8]
call fcn.004062a0
mov ecx, dword [ebp - 0x418]
mov byte [ebp - 4], 6
test ecx, ecx
jne 0x40acd8
call fcn.0042e4b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40acfc
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.0040d860
push 3
push 0x485cd4
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.0040d860
mov byte [ebp - 4], 8
call fcn.0042e4b0
mov edi, eax
lea ecx, [ebp - 0x580]
push 0x270
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.00404e20
mov esi, eax
push str.dxdiag_output_file_read_failed_with
push esi
mov byte [ebp - 4], 9
call fcn.00406150
add esp, 8
call fcn.00458412
mov ecx, esi
push dword [eax]
call fcn.00405fa0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x580]
call fcn.00406330
lea ecx, [ebp - 0x458]
call fcn.004058f0
lea ecx, [ebp - 0x488]
call fcn.004058f0
jmp 0x40acfc
lea edx, [edi + 0xc]
lea eax, [ebp - 0x428]
cmp edx, eax
je 0x40acfc
cmp dword [ebp - 0x414], 0x10
push ecx
cmovae eax, dword [ebp - 0x428]
mov ecx, edx
push eax
call fcn.0040d860
mov edx, dword [ebp - 0x414]
cmp edx, 0x10
jb 0x40ad36
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ad2c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ae2a
push edx
push ecx
call fcn.00446e66
add esp, 8
mov edx, dword [ebp - 0x45c]
cmp edx, 0x10
jb 0x40ad70
mov ecx, dword [ebp - 0x470]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ad66
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ae2f
push edx
push ecx
call fcn.00446e66
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 0x40adc1
mov ecx, dword [ebp - 0x440]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40adb7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ae34
push edx
push ecx
call fcn.00446e66
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.00447113
mov esp, ebp
pop ebp
ret
call fcn.00458349
test al, 4
je 0x40adec
mov esi, str.ios_base::badbit_set
jmp 0x40adfb
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.0040eaf0
add esp, 8
lea ecx, [ebp - 0x4a4]
push eax
push esi
call fcn.004052c0
push 0x49d444
lea eax, [ebp - 0x4a4]
push eax
call fcn.00454272
call fcn.00458349
call fcn.00458349
call fcn.00458349
int3