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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab43e
mov eax, dword fs:[0]
push eax
sub esp, 0x574
mov eax, dword [0x4e23d4]
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.0040a770
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 0x40aab2
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.00403150
push str._tDxdiag_output_filename:
push 0x4e5f58
mov byte [ebp - 4], 1
call fcn.00402bb0
cmp dword [ebp - 0x42c], 0x10
lea ecx, [ebp - 0x440]
push dword [ebp - 0x430]
cmovae ecx, dword [ebp - 0x440]
push ecx
push eax
call fcn.00403860
mov esi, eax
add esp, 0x20
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.00410040
movzx ecx, al
push ecx
mov ecx, esi
call fcn.0040f400
mov ecx, esi
call fcn.0040ebe0
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x428]
call fcn.00404d40
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.004813a0
push 0x44
lea eax, [ebp - 0x4e8]
push 0
push eax
call fcn.004813a0
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x428]
push eax
push 0x4b645c
lea eax, [ebp - 0x410]
push 0x400
push eax
movups xmmword [ebp - 0x4a0], xmm0
call fcn.004106b0
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 0x40ac08
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40abfe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b01c
push edx
push ecx
call fcn.0045bfb6
add esp, 8
test esi, esi
jne 0x40ad18
call fcn.0043bfd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40ad18
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.0040daa0
push 3
push 0x4b5b84
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.0040daa0
mov byte [ebp - 4], 3
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x580]
push 0x263
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00405060
mov esi, eax
push str.ExeCmd_failed__
push esi
mov byte [ebp - 4], 4
call fcn.00406390
push dword [ebp - 0x494]
push esi
call fcn.00406390
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x580]
call fcn.00406570
lea ecx, [ebp - 0x428]
call fcn.00405b30
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 1
call fcn.00405b30
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.004047f0
mov eax, dword [ebp - 0xc8]
mov byte [ebp - 4], 5
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0xbc], 6
jne 0x40ade3
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 0x40b021
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.00403310
jmp 0x40ae10
push 0
push 0x4b57ec
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
call fcn.0040daa0
lea ecx, [ebp - 0xc8]
call fcn.004064e0
mov ecx, dword [ebp - 0x418]
mov byte [ebp - 4], 6
test ecx, ecx
jne 0x40af18
call fcn.0043bfd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40af3c
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.0040daa0
push 3
push 0x4b5b84
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.0040daa0
mov byte [ebp - 4], 8
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x580]
push 0x268
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.00405060
mov esi, eax
push str.dxdiag_output_file_read_failed_with
push esi
mov byte [ebp - 4], 9
call fcn.00406390
add esp, 8
call fcn.00484572
mov ecx, esi
push dword [eax]
call fcn.004061e0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x580]
call fcn.00406570
lea ecx, [ebp - 0x458]
call fcn.00405b30
lea ecx, [ebp - 0x488]
call fcn.00405b30
jmp 0x40af3c
lea edx, [edi + 0xc]
lea eax, [ebp - 0x428]
cmp edx, eax
je 0x40af3c
cmp dword [ebp - 0x414], 0x10
push ecx
cmovae eax, dword [ebp - 0x428]
mov ecx, edx
push eax
call fcn.0040daa0
mov edx, dword [ebp - 0x414]
cmp edx, 0x10
jb 0x40af76
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40af6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b06a
push edx
push ecx
call fcn.0045bfb6
add esp, 8
mov edx, dword [ebp - 0x45c]
cmp edx, 0x10
jb 0x40afb0
mov ecx, dword [ebp - 0x470]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40afa6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b06f
push edx
push ecx
call fcn.0045bfb6
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 0x40b001
mov ecx, dword [ebp - 0x440]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40aff7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b074
push edx
push ecx
call fcn.0045bfb6
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.0045c263
mov esp, ebp
pop ebp
ret
call fcn.004844a9
test al, 4
je 0x40b02c
mov esi, str.ios_base::badbit_set
jmp 0x40b03b
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.0040ed30
add esp, 8
lea ecx, [ebp - 0x4a4]
push eax
push esi
call fcn.00405500
push 0x4d4d04
lea eax, [ebp - 0x4a4]
push eax
call fcn.004803ca
call fcn.004844a9
call fcn.004844a9
call fcn.004844a9
int3