Function at 0x1c79a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x214
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x1d00640], 0
jne 0x1c79cc1
mov edi, dword [0x1d0062c]
test edi, edi
je 0x1c79ab1
test byte [0x1cf9f7c], 1
jne 0x1c79ba4
jmp 0x1c79cc1
push 0xc
call fcn.01cafad0
add esp, 4
mov edi, eax
lea esi, [ebp - 0x218]
push 0x208
push 0xff
push esi
call fcn.01cb3330
add esp, 0xc
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0xffffffff
mov ecx, edi
push esi
call fcn.01c33dba
movzx ecx, byte [edi + 0xb]
test cl, cl
mov eax, dword [edi]
mov esi, dword [edi + 4]
mov edx, ecx
mov dword [ebp - 0x220], esi
cmovs edx, esi
mov esi, edi
mov dword [ebp - 0x21c], eax
cmovs esi, eax
test edx, edx
je 0x1c79b83
add edx, edx
nop word [eax + eax]
test edx, edx
je 0x1c79b83
lea eax, [edx - 2]
cmp word [esi + edx - 2], 0x5c
mov edx, eax
jne 0x1c79b30
cmp eax, 0xfffffffe
je 0x1c79b83
sar eax, 1
lea edx, [eax + 1]
test cl, cl
js 0x1c79b67
cmp edx, ecx
ja 0x1c79d21
cmp edx, 5
jae 0x1c79d10
mov byte [edi + 0xb], dl
mov ecx, edi
jmp 0x1c79b7c
cmp dword [ebp - 0x220], edx
jb 0x1c79d21
mov dword [edi + 4], edx
mov ecx, dword [ebp - 0x21c]
mov word [ecx + eax*2 + 2], 0
mov ecx, edi
push 9
push str.debug.log
call fcn.01c55800
mov dword [0x1d0062c], edi
test byte [0x1cf9f7c], 1
je 0x1c79cc1
cmp byte [edi + 0xb], 0
jns 0x1c79bac
mov edi, dword [edi]
sub esp, 0x1c
movaps xmm0, xmmword [0x1cec5a0]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1d00640], eax
inc eax
cmp eax, 1
ja 0x1c79cc1
lea eax, [ebp - 0x216]
push 0x206
push 0xff
push eax
call fcn.01cb3330
add esp, 0xc
mov word [ebp - 0x218], 0
lea esi, [ebp - 0x218]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jb 0x1c79cbf
mov ecx, dword [0x1d0062c]
push esi
call fcn.01c5565e
mov ecx, dword [0x1d0062c]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x1c79cd8
test eax, eax
je 0x1c79cf2
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x5c
je 0x1c79c69
push 1
push 0x1ce7f54
call fcn.01c55800
mov ecx, dword [0x1d0062c]
push 9
push str.debug.log
call fcn.01c55800
mov eax, dword [0x1d0062c]
cmp byte [eax + 0xb], 0
jns 0x1c79c82
mov eax, dword [eax]
movaps xmm0, xmmword [0x1cec5a0]
sub esp, 0x1c
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1d00640], eax
inc eax
cmp eax, 1
ja 0x1c79cc1
mov dword [0x1d00640], 0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, ebx
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ecx + 4]
test eax, eax
je 0x1c79cf2
mov edx, dword [ecx]
cmp word [edx + eax*2 - 2], 0x5c
jne 0x1c79c57
jmp 0x1c79c69
push str.string::back__:_string_is_empty
push str._empty__
push 0x4c8
push str....._buildtools_third_partylibc_trunkinclude_string
push str._s:_d:_assertion__s_failed:__s
call fcn.01c36838
push str.__s_should_never_be_greater_than_or_equal_to_the_short_string_capacity
push str.__s_____min_cap
push 0x6cf
jmp 0x1c79d01
call fcn.01cc3c50
int3