Function at 0x10003233
Capabilities:
Get common file path

Disassembly:
jmp 0x10067c6d
jmp 0x10068425
sub esp, 0x51c
mov eax, dword [0x101844f8]
xor eax, esp
mov dword [esp + 0x518], eax
push ebp
push esi
push edi
xor ebp, ebp
lea eax, [esp + 0x114]
push eax
push ebp
push ebp
push 0x28
push ebp
mov edi, ebp
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x10067ce6
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
push eax
lea eax, [esp + 0x11c]
push eax
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCharacters
push 1
mov esi, eax
push 2
push esi
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFURLCreateWithFileSystemPath
push esi
mov edi, eax
call sym.CoreFoundation.dll_CFRelease
add esp, 0x24
test edi, edi
jne 0x10067dab
push str.HOMEPATH
call fcn.10002a0e
mov esi, eax
mov dword [esp], str.HOMEDRIVE
call fcn.10002a0e
pop ecx
test eax, eax
je 0x10067d5a
test esi, esi
je 0x10067d5a
mov edi, 0x106
push edi
push eax
lea eax, [esp + 0x14]
push eax
call sym.CoreFoundation.dll__NS_strlcpy
push edi
lea eax, [esp + 0x1c]
push esi
push eax
call sym.CoreFoundation.dll__NS_strlcat
push 0x8000100
lea eax, [esp + 0x28]
push eax
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCString
push 1
mov esi, eax
push 2
push esi
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFURLCreateWithFileSystemPath
push esi
mov edi, eax
call sym.CoreFoundation.dll_CFRelease
add esp, 0x38
test edi, edi
jne 0x10067dab
lea eax, [esp + 0x31c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x10067dab
lea eax, [esp + 0x31c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
push eax
lea eax, [esp + 0x324]
push eax
push dword [sym.CoreFoundation.dll_kCFAllocatorDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCharacters
push 1
mov esi, eax
push 2
push esi
push ebp
call sym.CoreFoundation.dll_CFURLCreateWithFileSystemPath
push esi
mov edi, eax
call sym.CoreFoundation.dll_CFRelease
add esp, 0x24
push 2
push edi
call sym.CoreFoundation.dll_CFURLCopyFileSystemPath
mov esi, eax
push esi
call sym.CoreFoundation.dll_CFStringGetLength
add esp, 0xc
test eax, eax
jne 0x10067dcb
push edi
call sym.CoreFoundation.dll_CFRelease
pop ecx
mov edi, ebp
test esi, esi
je 0x10067dd6
push esi
call sym.CoreFoundation.dll_CFRelease
pop ecx
mov ecx, dword [esp + 0x524]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1000234c
add esp, 0x51c
ret
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x10068438
call sym.CoreFoundation.dll_CFCopyUserName
mov esi, eax
jmp 0x1006843a
xor esi, esi
test edi, edi
je 0x10068470
push esi
push edi
call sym.CoreFoundation.dll_CFEqual
pop ecx
pop ecx
test al, al
jne 0x10068470
push str.CFCopyHomeDirectoryURLForUser__:_Unable_to_get_home_directory_for_other_user
call sym.CoreFoundation.dll___CFStringMakeConstantString
push eax
push 3
call sym.CoreFoundation.dll_CFLog
add esp, 0xc
test esi, esi
je 0x1006846b
push esi
call sym.CoreFoundation.dll_CFRelease
pop ecx
pop edi
xor eax, eax
pop esi
ret
test esi, esi
je 0x1006847b
push esi
call sym.CoreFoundation.dll_CFRelease
pop ecx
pop edi
pop esi
jmp 0x100023d8