Function at 0x40f390
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58905f
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x5d8a84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0x597d5c
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.00413a10
mov dword [ebp - 4], 0
call fcn.0041a9d0
test al, al
jne 0x40f4de
call fcn.0044e890
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40fa13
push 0x5e
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optcommon_nvdrs_wrapper_nvdrs_wapper.cc
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], 0xf
mov byte [ebp - 0x284], al
call fcn.00413a10
push 3
push 0x597844
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0xf
mov byte [ebp - 0x26c], 0
call fcn.00413a10
mov byte [ebp - 4], 2
call fcn.0044e890
mov edi, eax
lea ecx, [ebp - 0x338]
push 0x43c
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00409420
mov esi, eax
push str.system_version_not_support
push esi
mov byte [ebp - 4], 3
call fcn.0040a790
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x338]
call fcn.0040a8b0
lea ecx, [ebp - 0x26c]
call fcn.00409db0
lea ecx, [ebp - 0x284]
call fcn.00409db0
jmp 0x40fa13
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00555710
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push str.nBench
push eax
call esi
push str.CheckRtx.exe
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f687
call fcn.0044e890
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40fa13
push 0x5e
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optcommon_nvdrs_wrapper_nvdrs_wapper.cc
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], 0xf
mov byte [ebp - 0x26c], al
call fcn.00413a10
push 3
push 0x597844
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 4
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 0xf
mov byte [ebp - 0x284], 0
call fcn.00413a10
mov byte [ebp - 4], 5
call fcn.0044e890
mov dword [ebp - 0x288], eax
lea ecx, [ebp - 0x2a0]
lea eax, [ebp - 0x218]
push eax
call fcn.00409150
mov esi, eax
push 0x448
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x338]
call fcn.00409420
mov edi, eax
push str.CheckRtx.exe_is_not_exist__path:
push edi
mov byte [ebp - 4], 7
call fcn.0040a790
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x40f636
mov esi, dword [esi]
test esi, esi
mov eax, str._null_
cmovne eax, esi
push eax
push edi
call fcn.004077b0
mov ecx, dword [ebp - 0x288]
add esp, 8
mov eax, dword [ecx]
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x338]
call fcn.0040a8b0
lea ecx, [ebp - 0x2a0]
call fcn.00409e00
lea ecx, [ebp - 0x284]
call fcn.00409db0
lea ecx, [ebp - 0x26c]
call fcn.00409db0
jmp 0x40fa13
xorps xmm0, xmm0
mov dword [ebp - 0x25c], 0
push 0x26
xor eax, eax
mov dword [ebp - 0x258], 7
push str.8019B47F_5C1D_4D35_95BE_F7D4BB3983AC
lea ecx, [ebp - 0x26c]
mov word [ebp - 0x26c], ax
movups xmmword [ebp - 0x250], xmm0
movups xmmword [ebp - 0x240], xmm0
call fcn.00413b10
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x250]
call fcn.00408f60
mov ecx, 0x500000
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], ecx
mov edx, dword [ebp - 0x258]
mov byte [ebp - 4], 0xa
cmp edx, 8
jb 0x40f73c
mov ecx, dword [ebp - 0x26c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f72c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa92
push edx
push ecx
call fcn.004721e2
mov ecx, dword [ebp - 0x234]
add esp, 8
cmp dword [ebp - 0x240], 0
je 0x40f8dd
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
cmovae eax, dword [ebp - 0x250]
push eax
push ecx
push 0
push 0x40
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x238], eax
test eax, eax
je 0x40f8dd
lea eax, [ebp - 0x218]
push 0xbb8
push eax
call fcn.0041b220
add esp, 8
lea eax, [ebp - 0x284]
lea ecx, [ebp - 0x250]
push eax
call fcn.0040fcc0
mov esi, eax
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x40f82a
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x40f7e7
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f7dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa97
push edx
push ecx
call fcn.004721e2
add esp, 8
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x270]
cmp edx, 0x10
jb 0x40f864
mov ecx, dword [ebp - 0x284]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f85a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa9c
push edx
push ecx
call fcn.004721e2
add esp, 8
cmp dword [ebp - 0x220], 0
jne 0x40f87f
push 1
push 0x597d5c
lea ecx, [ebp - 0x230]
call fcn.00413a10
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x40f89a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x238], 0
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x40fa13
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fa09
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40faa1
jmp 0x40fa09
call fcn.0044e890
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40f9b8
push 0x5e
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optcommon_nvdrs_wrapper_nvdrs_wapper.cc
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], 0xf
mov byte [ebp - 0x26c], al
call fcn.00413a10
push 3
push 0x597844
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 0xf
mov byte [ebp - 0x284], 0
call fcn.00413a10
mov byte [ebp - 4], 0xc
call fcn.0044e890
mov edi, eax
lea ecx, [ebp - 0x338]
push 0x44e
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00409420
mov esi, eax
push str.filemapping_open_fail_
push esi
mov byte [ebp - 4], 0xd
call fcn.0040a790
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x338]
call fcn.0040a8b0
lea ecx, [ebp - 0x284]
call fcn.00409db0
lea ecx, [ebp - 0x26c]
call fcn.00409db0
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x40f9d3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x238], 0
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x40fa13
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fa09
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40faa6
push edx
push ecx
call fcn.004721e2
add esp, 8
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.0055a2de
mov edx, dword [ebp - 0x21c]
add esp, 4
test eax, eax
setne al
mov byte [ebp - 0x251], al
cmp edx, 0x10
jb 0x40fa77
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fa67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40faab
push edx
push ecx
call fcn.004721e2
mov al, byte [ebp - 0x251]
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.004724a6
mov esp, ebp
pop ebp
ret
call fcn.00558e1a
call fcn.00558e1a
call fcn.00558e1a
call fcn.00558e1a
call fcn.00558e1a
call fcn.00558e1a
int3