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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b0ee
mov eax, dword fs:[0]
push eax
sub esp, 0x574
mov eax, dword [0x4a62e4]
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.0040b3d0
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 0x40b712
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.00403c00
push str._tDxdiag_output_filename:
push 0x4a8a50
mov byte [ebp - 4], 1
call fcn.00403660
cmp dword [ebp - 0x42c], 0x10
lea ecx, [ebp - 0x440]
push dword [ebp - 0x430]
cmovae ecx, dword [ebp - 0x440]
push ecx
push eax
call fcn.00404310
mov esi, eax
add esp, 0x20
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.00410a50
movzx ecx, al
push ecx
mov ecx, esi
call fcn.0040fe10
mov ecx, esi
call fcn.0040f650
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x428]
call fcn.00405780
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00450d40
push 0x44
lea eax, [ebp - 0x4e8]
push 0
push eax
call fcn.00450d40
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x428]
push eax
push 0x4836b4
lea eax, [ebp - 0x410]
push 0x400
push eax
movups xmmword [ebp - 0x4a0], xmm0
call fcn.004110c0
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 0x40b868
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b85e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bc7c
push edx
push ecx
call fcn.00442ea6
add esp, 8
test esi, esi
jne 0x40b978
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40b978
cmp dword [ebp - 0x45c], 0x10
lea eax, [ebp - 0x470]
push 0x44
cmovae eax, dword [ebp - 0x470]
lea ecx, [ebp - 0x458]
push str.d:_buildlib_commonwin11_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.0040e510
push 3
push 0x482dd8
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.0040e510
mov byte [ebp - 4], 3
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x580]
push 0x26b
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00405aa0
mov esi, eax
push str.ExeCmd_failed__
push esi
mov byte [ebp - 4], 4
call fcn.00406dd0
push dword [ebp - 0x494]
push esi
call fcn.00406dd0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x580]
call fcn.00406fb0
lea ecx, [ebp - 0x428]
call fcn.00406570
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 1
call fcn.00406570
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.00405230
mov eax, dword [ebp - 0xc8]
mov byte [ebp - 4], 5
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0xbc], 6
jne 0x40ba43
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 0x40bc81
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.00403dc0
jmp 0x40ba70
push 0
push 0x482a94
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
call fcn.0040e510
lea ecx, [ebp - 0xc8]
call fcn.00406f20
mov ecx, dword [ebp - 0x418]
mov byte [ebp - 4], 6
test ecx, ecx
jne 0x40bb78
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40bb9c
push 0x44
push str.d:_buildlib_commonwin11_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.0040e510
push 3
push 0x482dd8
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.0040e510
mov byte [ebp - 4], 8
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x580]
push 0x270
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.00405aa0
mov esi, eax
push str.dxdiag_output_file_read_failed_with
push esi
mov byte [ebp - 4], 9
call fcn.00406dd0
add esp, 8
call fcn.00453fb2
mov ecx, esi
push dword [eax]
call fcn.00406c20
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x580]
call fcn.00406fb0
lea ecx, [ebp - 0x458]
call fcn.00406570
lea ecx, [ebp - 0x488]
call fcn.00406570
jmp 0x40bb9c
lea edx, [edi + 0xc]
lea eax, [ebp - 0x428]
cmp edx, eax
je 0x40bb9c
cmp dword [ebp - 0x414], 0x10
push ecx
cmovae eax, dword [ebp - 0x428]
mov ecx, edx
push eax
call fcn.0040e510
mov edx, dword [ebp - 0x414]
cmp edx, 0x10
jb 0x40bbd6
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bbcc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bcca
push edx
push ecx
call fcn.00442ea6
add esp, 8
mov edx, dword [ebp - 0x45c]
cmp edx, 0x10
jb 0x40bc10
mov ecx, dword [ebp - 0x470]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bc06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bccf
push edx
push ecx
call fcn.00442ea6
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 0x40bc61
mov ecx, dword [ebp - 0x440]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bc57
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bcd4
push edx
push ecx
call fcn.00442ea6
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.00443153
mov esp, ebp
pop ebp
ret
call fcn.00453ee9
test al, 4
je 0x40bc8c
mov esi, str.ios_base::badbit_set
jmp 0x40bc9b
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.0040f7a0
add esp, 8
lea ecx, [ebp - 0x4a4]
push eax
push esi
call fcn.00405f40
push 0x49dbb8
lea eax, [ebp - 0x4a4]
push eax
call fcn.0044fd72
call fcn.00453ee9
call fcn.00453ee9
call fcn.00453ee9
int3