Function at 0x1000ee70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x1001c010]
xor eax, esp
mov dword [esp + 0x270], eax
cmp dword [ebp + 0xc], 1
push ebx
push esi
push edi
jne 0x1000f14e
push 0x104
lea eax, [esp + 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movaps xmm0, xmmword [0x10018490]
lea ecx, [esp + 0x28]
movups xmmword [esp + 0x28], xmm0
lea eax, [esp + 0x58]
sub esp, 0xc
movaps xmm0, xmmword [0x100184d0]
sub eax, ecx
movups xmmword [esp + 0x44], xmm0
mov edi, esp
mov ebx, eax
movaps xmm0, xmmword [0x100184c0]
movups xmmword [esp + 0x54], xmm0
sar ebx, 2
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x1000ef20
push ebx
mov ecx, edi
call fcn.10005c00
push dword [esp + 0x18]
mov esi, dword [edi]
lea eax, [esp + 0x38]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
lea eax, [esi + ebx*4]
add esp, 0xc
mov dword [edi + 4], eax
lea ecx, [esp + 0x1c]
call fcn.100106c0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x1000ef34
mov eax, dword [eax]
push eax
lea eax, [esp + 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [esp + 0x24]
cmp ecx, 0x10
jb 0x1000ef7b
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000ef71
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000ef71
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1001353d
add esp, 8
lea eax, [esp + 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
movaps xmm0, xmmword [0x10018220]
lea ecx, [esp + 0x28]
mov dword [0x1001c7c4], eax
sub esp, 0xc
lea eax, [esp + 0x60]
mov dword [esp + 0x54], 0x99
sub eax, ecx
mov dword [esp + 0x58], 0xa1
movups xmmword [esp + 0x34], xmm0
mov edi, esp
mov ebx, eax
movaps xmm0, xmmword [0x10017d60]
movups xmmword [esp + 0x44], xmm0
mov dword [esp + 0x5c], 0xa1
sar ebx, 2
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x1000f010
push ebx
mov ecx, edi
call fcn.10005c00
push dword [esp + 0x18]
mov esi, dword [edi]
lea eax, [esp + 0x38]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
lea eax, [esi + ebx*4]
add esp, 0xc
mov dword [edi + 4], eax
lea ecx, [esp + 0x64]
call fcn.100106c0
add esp, 0xc
mov dword [esp + 0x10], 0x42
cmp dword [esp + 0x6c], 0x10
lea eax, [esp + 0x58]
lea edx, [esp + 0x10]
mov dword [esp + 0x14], 0x1d
cmovae eax, dword [esp + 0x58]
lea ecx, [esp + 0x1c]
push eax
sub ecx, edx
mov dword [esp + 0x1c], 0x90
sub esp, 0xc
mov dword [esp + 0x1c], ecx
mov edi, esp
mov ebx, ecx
sar ebx, 2
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
test ebx, ebx
je 0x1000f095
push ebx
mov ecx, edi
call fcn.10005c00
push dword [esp + 0x1c]
mov esi, dword [edi]
lea eax, [esp + 0x24]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
lea eax, [esi + ebx*4]
add esp, 0xc
mov dword [edi + 4], eax
lea ecx, [esp + 0x38]
call fcn.100106c0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x1000f0a9
mov eax, dword [eax]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.10006720
mov ecx, dword [esp + 0x48]
add esp, 0xc
cmp ecx, 0x10
jb 0x1000f0ef
mov edx, dword [esp + 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000f0e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000f0e5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1001353d
add esp, 8
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
add esp, 8
test eax, eax
jne 0x1000f111
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.1000e7a0
mov ecx, dword [esp + 0x6c]
cmp ecx, 0x10
jb 0x1000f14e
mov edx, dword [esp + 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000f144
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000f144
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1001353d
add esp, 8
mov ecx, dword [esp + 0x27c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100134ff
mov esp, ebp
pop ebp
ret 0xc