Function at 0x40ea20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588f99
mov eax, dword fs:[0]
push eax
sub esp, 0x3a4
mov eax, dword [0x5d8a84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx], 0
jne 0x40f36c
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00555710
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x597a70
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [ebp - 0x218]
push eax
call edi
mov esi, eax
test esi, esi
jne 0x40eab1
push 0x597a70
call edi
mov esi, eax
call fcn.004027b0
mov dword [ebp - 0x250], eax
test eax, eax
je 0x40ebb6
call fcn.0044e890
push 2
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx eax, al
sub eax, 1
jne 0x40ebaf
push 0x5e
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optcommon_nvdrs_wrapper_nvdrs_wapper.cc
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], al
call fcn.00413a10
push 3
push 0x597844
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
call fcn.00413a10
mov byte [ebp - 4], 1
call fcn.0044e890
mov edi, eax
lea ecx, [ebp - 0x318]
push 0x81
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00409420
mov esi, eax
push str._Initialize_error:
push esi
mov byte [ebp - 4], 2
call fcn.0040a790
add esp, 8
mov ecx, esi
push dword [ebp - 0x250]
call fcn.0040a450
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x318]
call fcn.0040a8b0
lea ecx, [ebp - 0x234]
call fcn.00409db0
lea ecx, [ebp - 0x24c]
call fcn.00409db0
xor al, al
jmp 0x40f36e
lea eax, [ebx + 4]
push eax
call fcn.00401820
add esp, 4
mov dword [ebp - 0x250], eax
test eax, eax
je 0x40ecbe
call fcn.0044e890
push 2
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx eax, al
sub eax, 1
jne 0x40ebaf
push 0x5e
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optcommon_nvdrs_wrapper_nvdrs_wapper.cc
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], al
call fcn.00413a10
push 3
push 0x597844
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 3
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], 0
call fcn.00413a10
mov byte [ebp - 4], 4
call fcn.0044e890
mov edi, eax
lea ecx, [ebp - 0x318]
push 0x87
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00409420
mov esi, eax
mov byte [ebp - 4], 5
push str._CreateSession_error:
push esi
call fcn.0040a790
add esp, 8
mov ecx, esi
push dword [ebp - 0x250]
call fcn.0040a450
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x318]
call fcn.0040a8b0
lea ecx, [ebp - 0x24c]
call fcn.00409db0
lea ecx, [ebp - 0x234]
call fcn.00409db0
xor al, al
jmp 0x40f36e
cmp dword [ebx + 8], 0
lea eax, [ebx + 8]
mov dword [ebp - 0x21c], 0
jne 0x40eda4
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.00401410
add esp, 8
mov dword [ebp - 0x250], eax
test eax, eax
je 0x40eda4
call fcn.0044e890
push 2
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx eax, al
sub eax, 1
jne 0x40ebaf
push 0x5e
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optcommon_nvdrs_wrapper_nvdrs_wapper.cc
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], al
call fcn.00413a10
push 3
push 0x597844
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 6
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], 0
call fcn.00413a10
mov byte [ebp - 4], 7
call fcn.0044e890
mov edi, eax
lea ecx, [ebp - 0x318]
push 0x8f
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00409420
mov esi, eax
mov byte [ebp - 4], 8
push str._EnumPhysicalGPUs_error:
jmp 0x40ec78
test esi, esi
je 0x40f28b
push 0x597acc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0xc], eax
test eax, eax
je 0x40f1ad
push 0x8a2cf5f5
call eax
add esp, 4
mov dword [ebx + 0x10], eax
test eax, eax
jne 0x40eebd
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 0x40eebd
push 0x5e
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optcommon_nvdrs_wrapper_nvdrs_wapper.cc
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], al
call fcn.00413a10
push 3
push 0x597844
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 9
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], 0
call fcn.00413a10
mov byte [ebp - 4], 0xa
call fcn.0044e890
mov edi, eax
lea ecx, [ebp - 0x318]
push 0x9c
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00409420
mov esi, eax
push str.init_SetSettings_ptr_failed
push esi
mov byte [ebp - 4], 0xb
call fcn.0040a790
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x318]
call fcn.0040a8b0
lea ecx, [ebp - 0x24c]
call fcn.00409db0
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0xffffffff
call fcn.00409db0
mov eax, dword [ebx + 0xc]
push 0xea99498d
call eax
add esp, 4
mov dword [ebx + 0x14], eax
test eax, eax
jne 0x40efba
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 0x40efba
push 0x5e
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optcommon_nvdrs_wrapper_nvdrs_wapper.cc
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], al
call fcn.00413a10
push 3
push 0x597844
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], 0
call fcn.00413a10
mov byte [ebp - 4], 0xd
call fcn.0044e890
mov edi, eax
lea ecx, [ebp - 0x318]
push 0xa2
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00409420
mov esi, eax
push str.init_GetSettings_ptr_failed
push esi
mov byte [ebp - 4], 0xe
call fcn.0040a790
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x318]
call fcn.0040a8b0
lea ecx, [ebp - 0x24c]
call fcn.00409db0
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0xffffffff
call fcn.00409db0
mov eax, dword [ebx + 0xc]
push 0xcfd6983e
call eax
add esp, 4
mov dword [ebx + 0x18], eax
test eax, eax
jne 0x40f0b7
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 0x40f0b7
push 0x5e
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optcommon_nvdrs_wrapper_nvdrs_wapper.cc
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], al
call fcn.00413a10
push 3
push 0x597844
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 0xf
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], 0
call fcn.00413a10
mov byte [ebp - 4], 0x10
call fcn.0044e890
mov edi, eax
lea ecx, [ebp - 0x318]
push 0xa8
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00409420
mov esi, eax
push str.init_EnumSettings_ptr_failed
push esi
mov byte [ebp - 4], 0x11
call fcn.0040a790
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x318]
call fcn.0040a8b0
lea ecx, [ebp - 0x24c]
call fcn.00409db0
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0xffffffff
call fcn.00409db0
mov eax, dword [ebx + 0xc]
push 0x1eb13791
call eax
add esp, 4
mov dword [ebx + 0x1c], eax
test eax, eax
jne 0x40f369
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 0x40f369
push 0x5e
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optcommon_nvdrs_wrapper_nvdrs_wapper.cc
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], al
call fcn.00413a10
push 3
push 0x597844
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 0x12
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], 0
call fcn.00413a10
mov byte [ebp - 4], 0x13
call fcn.0044e890
mov edi, eax
lea ecx, [ebp - 0x318]
push 0xae
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00409420
mov esi, eax
push str.init_GetSettingNameFromId_ptr_failed
push esi
mov byte [ebp - 4], 0x14
call fcn.0040a790
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x318]
call fcn.0040a8b0
lea ecx, [ebp - 0x24c]
call fcn.00409db0
lea ecx, [ebp - 0x234]
jmp 0x40f364
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 0x40f369
push 0x5e
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optcommon_nvdrs_wrapper_nvdrs_wapper.cc
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], al
call fcn.00413a10
push 3
push 0x597844
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 0x15
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], 0
call fcn.00413a10
mov byte [ebp - 4], 0x16
call fcn.0044e890
mov edi, eax
lea ecx, [ebp - 0x318]
push 0xb1
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00409420
mov esi, eax
push str.init_Query_Interface_failed
push esi
mov byte [ebp - 4], 0x17
call fcn.0040a790
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x318]
call fcn.0040a8b0
lea ecx, [ebp - 0x24c]
call fcn.00409db0
lea ecx, [ebp - 0x234]
jmp 0x40f364
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 0x40f369
push 0x5e
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optcommon_nvdrs_wrapper_nvdrs_wapper.cc
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 0xf
mov byte [ebp - 0x280], al
call fcn.00413a10
push 3
push 0x597844
lea ecx, [ebp - 0x268]
mov dword [ebp - 4], 0x18
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0xf
mov byte [ebp - 0x268], 0
call fcn.00413a10
mov byte [ebp - 4], 0x19
call fcn.0044e890
mov edi, eax
lea ecx, [ebp - 0x3b0]
push 0xb4
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00409420
mov esi, eax
push str.cant_load_nvapi.dll
push esi
mov byte [ebp - 4], 0x1a
call fcn.0040a790
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x3b0]
call fcn.0040a8b0
lea ecx, [ebp - 0x268]
call fcn.00409db0
lea ecx, [ebp - 0x280]
call fcn.00409db0
mov byte [ebx], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004724a6
mov esp, ebp
pop ebp
ret