Function at 0x100146a0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x100416e4]
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 0x10014869
cmp word [eax], 0
je 0x10014869
push 0x100021ac
push eax
call dword [sym.imp.msvcrt.dll_wcspbrk]
add esp, 8
test eax, eax
je 0x100147d5
mov ecx, dword [ebp - 0x628]
call fcn.100324d0
test eax, eax
je 0x10014740
test esi, esi
je 0x100148c1
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 0x100148c1
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 0x100147a1
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 0x100148d8
test bx, bx
je 0x100148d8
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 0x100148cf
mov edx, dword [ebp - 0x624]
mov edx, dword [edx + 0x2c]
test edx, edx
je 0x10014807
cmp word [edx], 0
je 0x10014807
test esi, esi
je 0x1001483f
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 0x1001483f
test esi, esi
je 0x1001483f
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 0x1001483f
push dword [ebp - 0x624]
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test edi, edi
je 0x100148d8
test bx, bx
je 0x100148d8
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 0x100148cf
mov edx, dword [edx + 0x2c]
test edx, edx
je 0x1001488f
cmp word [edx], 0
je 0x1001488f
test esi, esi
je 0x100148c1
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 0x100148c1
test esi, esi
je 0x100148c1
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 0x100148c1
push dword [ebp - 0x624]
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test edi, edi
je 0x100148d8
test bx, bx
je 0x100148d8
xor eax, eax
mov word [edi], ax
mov eax, ebx
xor ecx, ecx
mov word [edi + eax*2 - 2], cx
test esi, esi
je 0x100148ec
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.1003bd00
mov esp, ebp
pop ebp
ret 0x10