Function at 0x42d670
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58beea
mov eax, dword fs:[0]
push eax
sub esp, 0x400
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
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x294]
movq qword [ebp - 0x284], xmm0
movups xmmword [ebp - 0x294], xmm0
call fcn.0047e5f0
push 0x208
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00555710
add esp, 0xc
lea eax, [ebp - 0x27c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.dxgi.dll
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x42d88b
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 0x42de7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x58
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optgpu_opt_ui_srcprofile_info.cc
lea ecx, [ebp - 0x3f0]
mov dword [ebp - 0x3bc], eax
mov dword [ebp - 0x3e0], esi
mov dword [ebp - 0x3dc], 0xf
mov byte [ebp - 0x3f0], 0
call fcn.00413a10
push 3
push 0x597844
lea ecx, [ebp - 0x3d8]
mov byte [ebp - 4], 2
mov dword [ebp - 0x3c8], esi
mov dword [ebp - 0x3c4], 0xf
mov byte [ebp - 0x3d8], 0
call fcn.00413a10
mov byte [ebp - 4], 3
call fcn.0044e890
mov edi, eax
lea ecx, [ebp - 0x32c]
push 0x1b9
lea eax, [ebp - 0x3f0]
push eax
lea eax, [ebp - 0x3d8]
push eax
call fcn.00409420
mov esi, eax
push str.LoadLibarary_dxgi.dll_failed.__error
push esi
mov byte [ebp - 4], 4
call fcn.0040a790
add esp, 8
mov ecx, esi
push dword [ebp - 0x3bc]
call fcn.0040a5f0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x32c]
call fcn.0040a8b0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x3c4]
cmp edx, 0x10
jb 0x42d82f
mov ecx, dword [ebp - 0x3d8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42d825
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e221
push edx
push ecx
call fcn.004721e2
add esp, 8
mov edx, dword [ebp - 0x3dc]
mov dword [ebp - 0x3c8], 0
mov dword [ebp - 0x3c4], 0xf
mov byte [ebp - 0x3d8], 0
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x42de7f
mov ecx, dword [ebp - 0x3f0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42de75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e226
jmp 0x42de75
push str.CreateDXGIFactory1
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x42dc1b
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 0x42db32
push 0x58
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optgpu_opt_ui_srcprofile_info.cc
lea ecx, [ebp - 0x3d8]
mov dword [ebp - 0x3c8], eax
mov dword [ebp - 0x3c4], 0xf
mov byte [ebp - 0x3d8], al
call fcn.00413a10
push 3
push 0x597844
lea ecx, [ebp - 0x40c]
mov byte [ebp - 4], 5
mov dword [ebp - 0x3fc], 0
mov dword [ebp - 0x3f8], 0xf
mov byte [ebp - 0x40c], 0
call fcn.00413a10
mov byte [ebp - 4], 6
call fcn.0044e890
push 1
push 2
lea ecx, [ebp - 0x32c]
mov dword [ebp - 0x3f4], eax
call fcn.00408d20
push 0xffffffffffffffff
push 0x597900
lea ecx, [ebp - 0x3d8]
mov byte [ebp - 4], 7
call fcn.00414dc0
push 0xffffffffffffffff
push 0x597904
lea ecx, [ebp - 0x3d8]
mov dword [ebp - 0x3bc], eax
call fcn.00414dc0
push 0x64
mov edi, eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.00555710
add esp, 0xc
cmp edi, 0xffffffff
je 0x42da1f
mov ecx, dword [ebp - 0x3bc]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42da1f
mov eax, dword [ebp - 0x3c8]
lea edx, [ecx + 1]
mov dword [ebp - 0x3e0], 0
mov dword [ebp - 0x3dc], 0xf
mov byte [ebp - 0x3f0], 0
cmp eax, edx
jb 0x42e22b
sub edi, ecx
sub eax, edx
lea ecx, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x3c4], 0x10
lea eax, [ebp - 0x3d8]
cmovae eax, dword [ebp - 0x3d8]
push ecx
add eax, edx
lea ecx, [ebp - 0x3f0]
push eax
call fcn.00413a10
cmp dword [ebp - 0x3dc], 0x10
lea eax, [ebp - 0x3f0]
cmovae eax, dword [ebp - 0x3f0]
push eax
push 0x1c0
lea eax, [ebp - 0x74]
push str.__4d___s_
push eax
call fcn.00408820
add esp, 0x10
lea ecx, [ebp - 0x3f0]
call fcn.00409db0
jmp 0x42da35
push 0x1c0
lea eax, [ebp - 0x74]
push str.__4d_
push eax
call fcn.00408820
add esp, 0xc
cmp dword [ebp - 0x3f8], 0x10
lea eax, [ebp - 0x40c]
cmovae eax, dword [ebp - 0x40c]
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.0040a790
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.0040a790
lea eax, [ebp - 0x32c]
mov byte [ebp - 4], 8
push str.not_support_DXGI_1.1
push eax
call fcn.0040a790
mov ecx, dword [ebp - 0x3f4]
lea edx, [ebp - 0x32c]
add esp, 0x18
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
lea ecx, [ebp - 0x32c]
call fcn.0040a8b0
mov edx, dword [ebp - 0x3f8]
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x42dad9
mov ecx, dword [ebp - 0x40c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42dacf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e230
push edx
push ecx
call fcn.004721e2
add esp, 8
mov edx, dword [ebp - 0x3c4]
mov dword [ebp - 0x3fc], 0
mov dword [ebp - 0x3f8], 0xf
mov byte [ebp - 0x40c], 0
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x42db32
mov ecx, dword [ebp - 0x3d8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42db28
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e235
push edx
push ecx
call fcn.004721e2
add esp, 8
push str.CreateDXGIFactory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x42dc1b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
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 0x42de7f
push 0x58
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optgpu_opt_ui_srcprofile_info.cc
lea ecx, [ebp - 0x3f0]
mov dword [ebp - 0x3e0], eax
mov dword [ebp - 0x3dc], 0xf
mov byte [ebp - 0x3f0], al
call fcn.00413a10
push 3
push 0x597844
lea ecx, [ebp - 0x3d8]
mov byte [ebp - 4], 9
mov dword [ebp - 0x3c8], 0
mov dword [ebp - 0x3c4], 0xf
mov byte [ebp - 0x3d8], 0
call fcn.00413a10
mov byte [ebp - 4], 0xa
call fcn.0044e890
mov edi, eax
lea ecx, [ebp - 0x32c]
push 0x1c5
lea eax, [ebp - 0x3f0]
push eax
lea eax, [ebp - 0x3d8]
push eax
call fcn.00409420
mov esi, eax
push str.ERROR:_dxgi.dll_missing_entry_point
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 - 0x32c]
call fcn.0040a8b0
mov byte [ebp - 4], 9
jmp 0x42d7f5
lea ecx, [ebp - 0x3c0]
mov dword [ebp - 0x3c0], 0
push ecx
push 0x59a108
call eax
test eax, eax
js 0x42dd89
mov ecx, dword [ebp - 0x3c0]
test ecx, ecx
je 0x42dd89
xor esi, esi
nop dword [eax + eax]
lea edx, [ebp - 0x3bc]
mov dword [ebp - 0x3bc], 0
mov eax, dword [ecx]
push edx
push esi
push ecx
call dword [eax + 0x1c]
cmp eax, 0x887a0002
je 0x42de7f
test eax, eax
js 0x42dcca
mov edi, dword [ebp - 0x3bc]
test edi, edi
je 0x42dcca
push 0x124
lea eax, [ebp - 0x3b8]
push 0
push eax
call fcn.00555710
mov eax, dword [edi]
lea ecx, [ebp - 0x3b8]
add esp, 0xc
push ecx
push edi
call dword [eax + 0x20]
test eax, eax
js 0x42dcca
mov eax, dword [ebp - 0x3bc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x2b8], 0x10de
jne 0x42dcca
cmp word [ebp - 0x3b8], 0
jne 0x42dcdf
inc esi
cmp esi, 0x20
jge 0x42de7f
mov ecx, dword [ebp - 0x3c0]
jmp 0x42dc50
push 0xfde9
lea eax, [ebp - 0x3b8]
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.00449530
add esp, 0xc
push eax
lea ecx, [ebp - 0x3d8]
mov byte [ebp - 4], 0xf
call fcn.0047b6c0
push 9
push str.name_list
lea ecx, [ebp - 0x3f0]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x3e0], 0
mov dword [ebp - 0x3dc], 0xf
mov byte [ebp - 0x3f0], 0
call fcn.00413a10
lea eax, [ebp - 0x3d8]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x3f0]
push eax
lea ecx, [ebp - 0x294]
call fcn.0047e720
mov ecx, eax
call fcn.0047ca50
lea ecx, [ebp - 0x3f0]
call fcn.00409db0
lea ecx, [ebp - 0x3d8]
call fcn.0047bcb0
lea ecx, [ebp - 0x40c]
mov byte [ebp - 4], 1
call fcn.00409db0
jmp 0x42de7f
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 0x42de7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x58
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optgpu_opt_ui_srcprofile_info.cc
lea ecx, [ebp - 0x3f0]
mov dword [ebp - 0x3f4], eax
mov dword [ebp - 0x3e0], 0
mov dword [ebp - 0x3dc], 0xf
mov byte [ebp - 0x3f0], 0
call fcn.00413a10
push 3
push 0x597844
lea ecx, [ebp - 0x3d8]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x3c8], 0
mov dword [ebp - 0x3c4], 0xf
mov byte [ebp - 0x3d8], 0
call fcn.00413a10
mov byte [ebp - 4], 0xd
call fcn.0044e890
mov edi, eax
lea ecx, [ebp - 0x32c]
push 0x1cd
lea eax, [ebp - 0x3f0]
push eax
lea eax, [ebp - 0x3d8]
push eax
call fcn.00409420
mov esi, eax
push str.pCreateDXGIFactory_failed._error
push esi
mov byte [ebp - 4], 0xe
call fcn.0040a790
add esp, 8
mov ecx, esi
push dword [ebp - 0x3f4]
call fcn.0040a5f0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x32c]
call fcn.0040a8b0
mov byte [ebp - 4], 0xc
jmp 0x42d7f5
push edx
push ecx
call fcn.004721e2
add esp, 8
cmp dword [ebp + 8], 0
je 0x42e1d1
push 0
push 0x597704
lea ecx, [ebp - 0x3f0]
mov dword [ebp - 0x3e0], 0
mov dword [ebp - 0x3dc], 0xf
mov byte [ebp - 0x3f0], 0
call fcn.00413a10
lea eax, [ebp - 0x3f0]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x294]
call fcn.0047f350
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x13
jb 0x42dedf
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x3d8]
push eax
call fcn.00449670
mov esi, dword [ebp + 8]
mov edi, eax
add esp, 0xc
cmp esi, edi
je 0x42df66
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x42df36
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x42df2c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e221
mov eax, edx
push ecx
push eax
call fcn.004721e2
add esp, 8
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x3c4]
cmp edx, 8
jb 0x42dfa6
mov ecx, dword [ebp - 0x3d8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42df9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e221
push edx
push ecx
call fcn.004721e2
add esp, 8
mov edx, dword [ebp - 0x3f8]
xor eax, eax
mov dword [ebp - 0x3c8], 0
mov dword [ebp - 0x3c4], 7
mov word [ebp - 0x3d8], ax
mov byte [ebp - 4], 0x12
cmp edx, 0x10
jb 0x42e001
mov ecx, dword [ebp - 0x40c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42dff7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e221
push edx
push ecx
call fcn.004721e2
add esp, 8
mov edx, dword [ebp - 0x3dc]
mov dword [ebp - 0x3fc], 0
mov dword [ebp - 0x3f8], 0xf
mov byte [ebp - 0x40c], 0
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x42e05a
mov ecx, dword [ebp - 0x3f0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42e050
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e221
push edx
push ecx
call fcn.004721e2
add esp, 8
call fcn.0044e890
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42e1d1
push 0x58
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optgpu_opt_ui_srcprofile_info.cc
lea ecx, [ebp - 0x3f0]
mov dword [ebp - 0x3e0], eax
mov dword [ebp - 0x3dc], 0xf
mov byte [ebp - 0x3f0], al
call fcn.00413a10
push 3
push 0x597840
lea ecx, [ebp - 0x3d8]
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x3c8], 0
mov dword [ebp - 0x3c4], 0xf
mov byte [ebp - 0x3d8], 0
call fcn.00413a10
mov byte [ebp - 4], 0x15
call fcn.0044e890
mov dword [ebp - 0x3f4], eax
lea ecx, [ebp - 0x32c]
push 0x1e8
lea eax, [ebp - 0x3f0]
push eax
lea eax, [ebp - 0x3d8]
push eax
call fcn.00409420
mov edi, eax
mov esi, dword [ebp + 8]
push str.graphics_card_name_list:
push edi
mov byte [ebp - 4], 0x16
call fcn.0040a790
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x42e11b
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 - 0x3f4]
add esp, 8
mov eax, dword [ecx]
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x32c]
call fcn.0040a8b0
mov edx, dword [ebp - 0x3c4]
cmp edx, 0x10
jb 0x42e180
mov ecx, dword [ebp - 0x3d8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42e176
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e221
push edx
push ecx
call fcn.004721e2
add esp, 8
mov edx, dword [ebp - 0x3dc]
mov dword [ebp - 0x3c8], 0
mov dword [ebp - 0x3c4], 0xf
mov byte [ebp - 0x3d8], 0
cmp edx, 0x10
jb 0x42e1d1
mov ecx, dword [ebp - 0x3f0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42e1c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e221
push edx
push ecx
call fcn.004721e2
add esp, 8
lea ecx, [ebp - 0x294]
call fcn.0047bcb0
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x42e204
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x42e204
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x42e204
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
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 8
call fcn.00558e1a
call fcn.00558e1a
call fcn.00413390
call fcn.00558e1a
call fcn.00558e1a
int3