Function at 0x10014320
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x1003f6e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
movzx ebx, word [ebp + 0x14]
mov eax, edx
mov dword [ebp - 0x628], eax
mov edx, ecx
movzx ecx, word [ebp + 0xc]
mov dword [ebp - 0x624], edx
mov dword [ebp - 0x620], ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x100144e9
cmp word [eax], 0
je 0x100144e9
push 0x100021ac
push eax
call dword [sym.imp.msvcrt.dll_wcspbrk]
add esp, 8
test eax, eax
je 0x10014455
mov ecx, dword [ebp - 0x628]
call fcn.10031af0
test eax, eax
je 0x100143c0
test esi, esi
je 0x10014541
push dword [ebp - 0x628]
mov eax, dword [ebp - 0x620]
push 0x10002184
movzx eax, ax
push eax
push esi
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
jmp 0x10014541
push 0x101
lea eax, [ebp - 0x414]
push eax
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x101
lea eax, [ebp - 0x210]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x628]
call dword [sym.imp.msvcrt.dll__wsplitpath_s]
add esp, 0x24
test esi, esi
je 0x10014421
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x620]
push 0x100021c0
movzx eax, ax
push eax
push esi
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x14
test edi, edi
je 0x10014558
test bx, bx
je 0x10014558
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
push 0x100021c0
push ebx
push edi
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x14
jmp 0x1001454f
mov edx, dword [ebp - 0x624]
mov edx, dword [edx + 0x2c]
test edx, edx
je 0x10014487
cmp word [edx], 0
je 0x10014487
test esi, esi
je 0x100144bf
mov eax, dword [ebp - 0x620]
movzx ecx, ax
lea eax, [ecx - 1]
push eax
push edx
push ecx
push esi
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
jmp 0x100144bf
test esi, esi
je 0x100144bf
mov eax, dword [ebp - 0x620]
movzx eax, ax
push esi
push eax
mov dword [ebp - 0x624], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x7e
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
add esp, 8
test eax, eax
je 0x100144bf
push dword [ebp - 0x624]
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test edi, edi
je 0x10014558
test bx, bx
je 0x10014558
mov ecx, ebx
lea eax, [ecx - 1]
push eax
push dword [ebp - 0x628]
push ecx
push edi
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
jmp 0x1001454f
mov edx, dword [edx + 0x2c]
test edx, edx
je 0x1001450f
cmp word [edx], 0
je 0x1001450f
test esi, esi
je 0x10014541
movzx ecx, cx
lea eax, [ecx - 1]
push eax
push edx
push ecx
push esi
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
jmp 0x10014541
test esi, esi
je 0x10014541
movzx eax, cx
push esi
push eax
mov dword [ebp - 0x624], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x7e
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
add esp, 8
test eax, eax
je 0x10014541
push dword [ebp - 0x624]
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test edi, edi
je 0x10014558
test bx, bx
je 0x10014558
xor eax, eax
mov word [edi], ax
mov eax, ebx
xor ecx, ecx
mov word [edi + eax*2 - 2], cx
test esi, esi
je 0x1001456c
mov eax, dword [ebp - 0x620]
xor ecx, ecx
movzx eax, ax
mov word [esi + eax*2 - 2], cx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a750
mov esp, ebp
pop ebp
ret 0x10