Function at 0x10020650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ad4e1
mov eax, dword fs:[0]
push eax
sub esp, 0x3f4
mov eax, dword [0x100dfa44]
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, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x400], ebx
mov dword [ebp - 0x3dc], 0
mov dword [ebp - 0x3a4], ebx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x27c]
push eax
mov dword [ebp - 0x3dc], 1
call fcn.1007c2c0
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 0x1002086e
call fcn.10033f90
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10020eb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x53
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optgpu_opt_srcpopularize.cc
lea ecx, [ebp - 0x3d8]
mov dword [ebp - 0x3c8], esi
mov ebx, eax
mov dword [ebp - 0x3c4], 0xf
mov byte [ebp - 0x3d8], 0
call fcn.1000d770
push 3
push 0x100b56b0
lea ecx, [ebp - 0x3c0]
mov dword [ebp - 4], 1
mov dword [ebp - 0x3b0], esi
mov dword [ebp - 0x3ac], 0xf
mov byte [ebp - 0x3c0], 0
call fcn.1000d770
mov byte [ebp - 4], 2
call fcn.10033f90
mov edi, eax
lea ecx, [ebp - 0x314]
push 0x183
lea eax, [ebp - 0x3d8]
push eax
lea eax, [ebp - 0x3c0]
push eax
call fcn.10008840
mov esi, eax
push str.LoadLibarary_dxgi.dll_failed.__error
push esi
mov byte [ebp - 4], 3
call fcn.10009c20
add esp, 8
mov ecx, esi
push ebx
call fcn.10009a80
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x314]
call fcn.10009d40
mov edx, dword [ebp - 0x3ac]
cmp edx, 0x10
jb 0x10020816
mov ecx, dword [ebp - 0x3c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002080c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10020ece
push edx
push ecx
call fcn.10035b63
add esp, 8
mov edx, dword [ebp - 0x3c4]
mov dword [ebp - 0x3b0], 0
mov dword [ebp - 0x3ac], 0xf
mov byte [ebp - 0x3c0], 0
cmp edx, 0x10
jb 0x10020eaa
mov ecx, dword [ebp - 0x3d8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10020ea0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10020ed3
jmp 0x10020ea0
push str.CreateDXGIFactory1
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10020c9d
call fcn.10033f90
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10020b22
push 0x53
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optgpu_opt_srcpopularize.cc
lea ecx, [ebp - 0x3c0]
mov dword [ebp - 0x3b0], eax
mov dword [ebp - 0x3ac], 0xf
mov byte [ebp - 0x3c0], al
call fcn.1000d770
push 3
push 0x100b56b0
lea ecx, [ebp - 0x3fc]
mov dword [ebp - 4], 4
mov dword [ebp - 0x3ec], 0
mov dword [ebp - 0x3e8], 0xf
mov byte [ebp - 0x3fc], 0
call fcn.1000d770
mov byte [ebp - 4], 5
call fcn.10033f90
push 1
push 2
lea ecx, [ebp - 0x314]
mov dword [ebp - 0x3e4], eax
call fcn.100113c0
push 0xffffffffffffffff
push 0x100b575c
lea ecx, [ebp - 0x3c0]
mov byte [ebp - 4], 6
call fcn.1000ecb0
push 0xffffffffffffffff
push 0x100b5760
lea ecx, [ebp - 0x3c0]
mov dword [ebp - 0x3e0], eax
call fcn.1000ecb0
push 0x64
mov edi, eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.1007c2c0
add esp, 0xc
cmp edi, 0xffffffff
je 0x10020a0f
mov ecx, dword [ebp - 0x3e0]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10020a0f
mov eax, dword [ebp - 0x3b0]
lea edx, [ecx + 1]
mov dword [ebp - 0x3c8], 0
mov dword [ebp - 0x3c4], 0xf
mov byte [ebp - 0x3d8], 0
cmp eax, edx
jb 0x10020ed8
sub edi, ecx
sub eax, edx
lea ecx, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x3ac], 0x10
lea eax, [ebp - 0x3c0]
cmovae eax, dword [ebp - 0x3c0]
push ecx
add eax, edx
lea ecx, [ebp - 0x3d8]
push eax
call fcn.1000d770
cmp dword [ebp - 0x3c4], 0x10
lea eax, [ebp - 0x3d8]
mov dword [ebp - 0x3dc], 3
cmovae eax, dword [ebp - 0x3d8]
push eax
push 0x18a
lea eax, [ebp - 0x74]
push str.__4d___s_
push eax
call fcn.10007ed0
add esp, 0x10
lea ecx, [ebp - 0x3d8]
call fcn.100092e0
jmp 0x10020a25
push 0x18a
lea eax, [ebp - 0x74]
push str.__4d_
push eax
call fcn.10007ed0
add esp, 0xc
cmp dword [ebp - 0x3e8], 0x10
lea eax, [ebp - 0x3fc]
cmovae eax, dword [ebp - 0x3fc]
push eax
lea eax, [ebp - 0x314]
push eax
call fcn.10009c20
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x314]
push eax
call fcn.10009c20
lea eax, [ebp - 0x314]
mov byte [ebp - 4], 7
push str.not_support_DXGI_1.1
push eax
call fcn.10009c20
mov ecx, dword [ebp - 0x3e4]
lea edx, [ebp - 0x314]
add esp, 0x18
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
lea ecx, [ebp - 0x314]
call fcn.10009d40
mov edx, dword [ebp - 0x3e8]
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x10020ac9
mov ecx, dword [ebp - 0x3fc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10020abf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10020edd
push edx
push ecx
call fcn.10035b63
add esp, 8
mov edx, dword [ebp - 0x3ac]
mov dword [ebp - 0x3ec], 0
mov dword [ebp - 0x3e8], 0xf
mov byte [ebp - 0x3fc], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x10020b22
mov ecx, dword [ebp - 0x3c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10020b18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10020ee2
push edx
push ecx
call fcn.10035b63
add esp, 8
push str.CreateDXGIFactory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10020c9d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.10033f90
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10020eb0
push 0x53
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optgpu_opt_srcpopularize.cc
lea ecx, [ebp - 0x3d8]
mov dword [ebp - 0x3c8], eax
mov dword [ebp - 0x3c4], 0xf
mov byte [ebp - 0x3d8], al
call fcn.1000d770
push 3
push 0x100b56b0
lea ecx, [ebp - 0x3c0]
mov dword [ebp - 4], 8
mov dword [ebp - 0x3b0], 0
mov dword [ebp - 0x3ac], 0xf
mov byte [ebp - 0x3c0], 0
call fcn.1000d770
mov byte [ebp - 4], 9
call fcn.10033f90
mov edi, eax
lea ecx, [ebp - 0x314]
push 0x18f
lea eax, [ebp - 0x3d8]
push eax
lea eax, [ebp - 0x3c0]
push eax
call fcn.10008840
mov esi, eax
push str.ERROR:_dxgi.dll_missing_entry_point
push esi
mov byte [ebp - 4], 0xa
call fcn.10009c20
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x314]
call fcn.10009d40
mov edx, dword [ebp - 0x3ac]
cmp edx, 0x10
jb 0x10020c3f
mov ecx, dword [ebp - 0x3c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10020c35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10020ee7
push edx
push ecx
call fcn.10035b63
add esp, 8
mov edx, dword [ebp - 0x3c4]
mov dword [ebp - 0x3b0], 0
mov dword [ebp - 0x3ac], 0xf
mov byte [ebp - 0x3c0], 0
cmp edx, 0x10
jb 0x10020eb0
mov ecx, dword [ebp - 0x3d8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10020c8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10020eec
push edx
push ecx
call fcn.10035b63
add esp, 8
jmp 0x10020eb0
lea ecx, [ebp - 0x3a8]
mov dword [ebp - 0x3a8], 0
push ecx
push 0x100b6cbc
call eax
test eax, eax
js 0x10020d8a
mov ecx, dword [ebp - 0x3a8]
test ecx, ecx
je 0x10020d8a
xor esi, esi
nop dword [eax]
lea edx, [ebp - 0x3a4]
mov dword [ebp - 0x3a4], 0
mov eax, dword [ecx]
push edx
push esi
push ecx
call dword [eax + 0x1c]
cmp eax, 0x887a0002
je 0x10020eb0
test eax, eax
js 0x10020d75
mov edi, dword [ebp - 0x3a4]
test edi, edi
je 0x10020d75
push 0x124
lea eax, [ebp - 0x3a0]
push 0
push eax
call fcn.1007c2c0
mov eax, dword [edi]
lea ecx, [ebp - 0x3a0]
add esp, 0xc
push ecx
push edi
call dword [eax + 0x20]
test eax, eax
js 0x10020d75
mov eax, dword [ebp - 0x3a4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x2a0], 0x10de
jne 0x10020d75
cmp word [ebp - 0x3a0], 0
je 0x10020d75
lea eax, [ebp - 0x3a0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10020d57
sub eax, edx
mov ecx, ebx
sar eax, 1
push eax
lea eax, [ebp - 0x3a0]
push eax
call fcn.1000d870
inc esi
cmp esi, 0x20
jge 0x10020eb0
mov ecx, dword [ebp - 0x3a8]
jmp 0x10020cd0
call fcn.10033f90
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10020eb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x53
push str.d:jenkins.jenkinsworkspacegroup_cleangpu_optgpu_optgpu_opt_srcpopularize.cc
lea ecx, [ebp - 0x3d8]
mov dword [ebp - 0x3c8], 0
mov ebx, eax
mov dword [ebp - 0x3c4], 0xf
mov byte [ebp - 0x3d8], 0
call fcn.1000d770
push 3
push 0x100b56b0
lea ecx, [ebp - 0x3c0]
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x3b0], 0
mov dword [ebp - 0x3ac], 0xf
mov byte [ebp - 0x3c0], 0
call fcn.1000d770
mov byte [ebp - 4], 0xc
call fcn.10033f90
mov edi, eax
lea ecx, [ebp - 0x314]
push 0x197
lea eax, [ebp - 0x3d8]
push eax
lea eax, [ebp - 0x3c0]
push eax
call fcn.10008840
mov esi, eax
push str.pCreateDXGIFactory_failed._error
push esi
mov byte [ebp - 4], 0xd
call fcn.10009c20
add esp, 8
mov ecx, esi
push ebx
call fcn.10009a80
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x314]
call fcn.10009d40
mov edx, dword [ebp - 0x3ac]
cmp edx, 0x10
jb 0x10020816
mov ecx, dword [ebp - 0x3c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002080c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10020ef1
jmp 0x1002080c
push edx
push ecx
call fcn.10035b63
add esp, 8
mov ebx, dword [ebp - 0x3a4]
mov eax, ebx
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.10035ef0
mov esp, ebp
pop ebp
ret
call fcn.1007f91a
call fcn.1007f91a
call fcn.1000d0f0
call fcn.1007f91a
call fcn.1007f91a
call fcn.1007f91a
call fcn.1007f91a
call fcn.1007f91a
int3