Function at 0xbc0380
Capabilities:
Get common file path

Disassembly:
push 0x24c
mov eax, 0xbcc4bf
call fcn.00bc132b
mov eax, dword [ebp + 8]
test byte [eax + 0x5c], 2
jne 0xc1b1c2
xor eax, eax
call fcn.00bc12da
ret 8
push ecx
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], 0xf94cd0e7
mov dword [ebp - 0x224], 0x42329d4d
mov dword [ebp - 0x220], 0x1517ffa7
mov dword [ebp - 0x21c], 0x39560973
call fcn.00ccf4df
xor ebx, ebx
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x238]
mov edx, esi
call fcn.00cbdc77
mov byte [ebp - 4], 1
mov dword [ebp - 0x230], ebx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x230]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x23c], 1
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 3
push eax
mov eax, dword [ebp - 0x234]
push dword [eax]
call dword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertSidToStringSidW]
mov ecx, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x24c], ecx
cmp byte [ebp - 0x23c], bl
je 0xc1b2ab
mov ebx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x250], eax
mov eax, dword [ebx]
mov dword [ebp - 0x248], eax
test eax, eax
je 0xc1b2a1
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push dword [ebp - 0x248]
mov edi, eax
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
push edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov ecx, dword [ebp - 0x24c]
mov eax, dword [ebp - 0x250]
mov dword [ebx], eax
xor ebx, ebx
test ecx, ecx
jne 0xc1b2b6
mov edx, 0x5e5
jmp 0xc1b2f6
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0xc1b2e0
mov edx, 0x5ea
jmp 0xc1b2f6
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USERENV.dll_GetProfileType]
test eax, eax
jne 0xc1b30a
mov edx, 0x5ee
mov ecx, dword [ebp + 4]
push 0xb27854
call fcn.00c206ae
mov edi, eax
jmp 0xc1b3ae
mov dword [ebp - 0x22c], ebx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x22c], ebx
test ecx, ecx
je 0xc1b334
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0xd0cffc]
call edi
lea eax, [ebp - 0x22c]
push eax
push 0xb2d934
push 1
push ebx
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jns 0xc1b35d
mov edx, 0x5f2
jmp 0xc1b391
mov eax, dword [ebp - 0x22c]
lea ecx, [ebp - 0x218]
push ebx
push dword [ebp - 0x258]
mov edi, dword [eax]
push ecx
push dword [ebp - 0x230]
mov ecx, dword [edi + 0x1c]
push eax
call dword [0xd0cffc]
call dword [edi + 0x1c]
mov edi, eax
test edi, edi
jns 0xc1b408
mov edx, 0x5f3
mov ecx, dword [ebp + 4]
push edi
push 0xb27854
call fcn.00bc2921
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 2
call fcn.00bbfaca
mov byte [ebp - 4], 1
cmp dword [ebp - 0x230], 0
je 0xc1b3c7
push dword [ebp - 0x230]
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov byte [ebp - 4], bl
cmp dword [ebp - 0x234], 0
je 0xc1b3e7
push dword [ebp - 0x234]
push ebx
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x238]
test ecx, ecx
je 0xc1b401
cmp ecx, 0xffffffff
je 0xc1b401
push ecx
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, edi
jmp 0xbc039e
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 2
call fcn.00bbfaca
mov byte [ebp - 4], 1
cmp dword [ebp - 0x230], 0
je 0xc1b430
push dword [ebp - 0x230]
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov byte [ebp - 4], bl
cmp dword [ebp - 0x234], 0
je 0xc1b450
push dword [ebp - 0x234]
push ebx
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0xbc039c
cmp esi, 0xffffffff
je 0xbc039c
push esi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0xbc039c