Function at 0x1da2170
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x214
mov eax, dword [0x1f07010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x1f105c8], 0
jne 0x1da248c
mov eax, dword [0x1f105b4]
test eax, eax
je 0x1da225f
test byte [0x1f0a8bc], 1
je 0x1da248c
cmp byte [eax + 0xb], 0
jns 0x1da21b7
mov eax, dword [eax]
sub esp, 0x1c
movaps xmm0, xmmword [0x1ebd390]
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 [0x1f105c8], eax
inc eax
cmp eax, 1
ja 0x1da248c
lea eax, [ebp - 0x216]
push 0x206
push 0xff
push eax
call fcn.01e63410
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 0x1da248a
mov ecx, dword [0x1f105b4]
push esi
call fcn.01d7445e
mov ecx, dword [0x1f105b4]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x1da2320
test eax, eax
je 0x1da24c1
mov edx, ecx
jmp 0x1da232d
push 0xc
call fcn.01e5f33c
add esp, 4
mov edi, eax
lea esi, [ebp - 0x218]
push 0x208
push 0xff
push esi
call fcn.01e63410
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.01cd2ef8
movzx ecx, byte [edi + 0xb]
test cl, cl
mov eax, dword [edi]
mov esi, dword [edi + 4]
movzx ebx, cl
mov edx, ebx
mov dword [ebp - 0x220], esi
cmovs edx, esi
mov esi, edi
cmovs esi, eax
test edx, edx
je 0x1da23c6
mov dword [ebp - 0x21c], eax
add edx, edx
nop dword [eax]
test edx, edx
je 0x1da23c6
lea eax, [edx - 2]
cmp word [esi + edx - 2], 0x5c
mov edx, eax
jne 0x1da22e0
cmp eax, 0xfffffffe
je 0x1da23c6
sar eax, 1
lea edx, [eax + 1]
test cl, cl
js 0x1da23a6
cmp eax, ebx
jae 0x1da24df
and dl, 0x7f
mov byte [edi + 0xb], dl
mov ecx, edi
jmp 0x1da23bb
mov eax, dword [ecx + 4]
test eax, eax
je 0x1da24c1
mov edx, dword [ecx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x1da2347
push 1
push 0x1eb65c4
call fcn.01d74480
mov ecx, dword [0x1f105b4]
push 9
push str.debug.log
call fcn.01d74480
mov eax, dword [0x1f105b4]
cmp byte [eax + 0xb], 0
jns 0x1da2360
mov eax, dword [eax]
sub esp, 0x1c
movaps xmm0, xmmword [0x1ebd390]
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 [0x1f105c8], eax
inc eax
cmp eax, 1
ja 0x1da248c
mov dword [0x1f105c8], 0
jmp 0x1da248a
cmp dword [ebp - 0x220], eax
jbe 0x1da24df
mov dword [edi + 4], edx
mov ecx, dword [ebp - 0x21c]
mov word [ecx + eax*2 + 2], 0
movzx ecx, byte [edi + 0xb]
test cl, cl
js 0x1da2417
movzx eax, cl
mov edx, 4
cmp cl, 5
jb 0x1da242c
lea ecx, [edi + eax*2]
cmp ecx, str.debug.log
ja 0x1da23f4
lea edx, [edi + eax*2]
add edx, 0x12
cmp edx, str.debug.log
ja 0x1da24a3
movups xmm0, xmmword [str.debug.log]
movups xmmword [ecx], xmm0
mov word [ecx + 0x10], 0x67
add eax, 9
mov ecx, eax
and cl, 0x7f
mov byte [edi + 0xb], cl
mov word [edi + eax*2], 0
jmp 0x1da2480
mov edx, SysReAllocString
and edx, dword [edi + 8]
dec edx
mov eax, dword [edi + 4]
mov ecx, edx
sub ecx, eax
cmp ecx, 9
jae 0x1da2449
mov esi, eax
sub esi, edx
add esi, 9
mov ecx, edi
push str.debug.log
push 9
push 0
push eax
push eax
push esi
push edx
call fcn.01d73fb0
jmp 0x1da2480
mov ecx, dword [edi]
lea edx, [ecx + eax*2]
cmp edx, str.debug.log
ja 0x1da2464
lea esi, [ecx + eax*2]
add esi, 0x12
cmp esi, str.debug.log
ja 0x1da24a3
movups xmm0, xmmword [str.debug.log]
movups xmmword [edx], xmm0
mov word [edx + 0x10], 0x67
add eax, 9
mov dword [edi + 4], eax
mov word [ecx + eax*2], 0
mov dword [0x1f105b4], 0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01e60425
mov eax, ebx
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret
push str.char_traits::copy:_source_and_destination_ranges_overlap
push str._std::__is_pointer_in_range___s1____s1____n____s2_
push 0x138
push str....._third_partylibc_srcinclude__stringchar_traits.h
push str._s:_d:_assertion__s_failed:__s_n
call fcn.01ce782c
push str.string::back__:_string_is_empty
push str._empty__
push 0x525
push str....._third_partylibc_srcinclude_string
push str._s:_d:_assertion__s_failed:__s_n
call fcn.01ce782c
mov ecx, edi
call fcn.01cd2fb4
int3