Function at 0xc248fb
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c4
mov eax, dword [0xd08954]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x688], ecx
push edi
mov dword [ebp - 0x698], esi
call fcn.00b91042
mov ecx, eax
xor ebx, ebx
mov dword [ebp - 0x69c], ecx
mov al, bl
mov dword [ebp - 0x690], eax
test ecx, ecx
js 0xc24b27
xor edi, edi
mov dword [ebp - 0x694], ebx
inc edi
mov ecx, dword [ebp - 0x688]
lea eax, [ebp - 0x210]
push 0x104
push eax
mov edx, edi
call fcn.00c24693
test eax, eax
je 0xc24b03
push 0xb3e050
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
test eax, eax
jne 0xc24989
or dword [esi + 8], 1
jmp 0xc24c89
push 0xb3e058
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
test eax, eax
jne 0xc249a8
or dword [esi + 8], 0x10
jmp 0xc24c89
push 0xb3e068
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
test eax, eax
jne 0xc249c7
or dword [esi + 8], 8
jmp 0xc24c89
push 0xb3e070
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
test eax, eax
lea eax, [ebp - 0x210]
jne 0xc24b45
mov ecx, dword [ebp - 0x688]
inc edi
push 0x104
push eax
mov edx, edi
mov dword [ebp - 0x684], ebx
call fcn.00c24693
test eax, eax
je 0xc24cba
lea eax, [ebp - 0x680]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHCORE.dll_Ordinal_200]
test eax, eax
lea eax, [ebp - 0x210]
je 0xc24a8d
push eax
push 0x27
pop edx
lea ecx, [ebp - 0x260]
call fcn.00b7db60
mov ecx, dword [ebp - 0x688]
lea eax, [ebp - 0x210]
push 0x104
inc edi
push eax
mov edx, edi
call fcn.00c24693
test eax, eax
jne 0xc24a6e
push ecx
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x260]
call fcn.00c244b8
test eax, eax
je 0xc24cba
push ebx
push ebx
lea eax, [ebp - 0x684]
push eax
push ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_shell_namespace_l1_1_0.dll_SHParseDisplayName]
lea ecx, [ebp - 0x680]
jmp 0xc24ad8
push 0xb3e07c
push eax
call dword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
test eax, eax
jne 0xc24abf
mov ecx, dword [ebp - 0x688]
inc edi
mov edx, edi
mov dword [ebp - 0x694], 1
call fcn.00c245c0
mov dword [ebp - 0x684], eax
mov ecx, ebx
jmp 0xc24ade
push ebx
push ebx
lea eax, [ebp - 0x684]
push eax
push ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_shell_namespace_l1_1_0.dll_SHParseDisplayName]
mov ecx, ebx
mov eax, dword [ebp - 0x684]
test eax, eax
je 0xc24af7
mov edx, eax
call fcn.00c24618
push dword [ebp - 0x684]
mov dword [esi], eax
call dword [sym.imp.api_ms_win_shell_namespace_l1_1_0.dll_ILFree]
cmp dword [ebp - 0x694], ebx
je 0xc24c89
cmp dword [esi], ebx
jne 0xc24b13
push esi
push ebx
push ebx
push 5
push ebx
call dword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderLocation]
cmp dword [ebp - 0x69c], ebx
jne 0xc24b21
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
mov eax, dword [ebp - 0x690]
cmp dword [esi], ebx
jne 0xc24b2f
test al, al
je 0xc24b32
xor ebx, ebx
inc ebx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00bc0ea0
mov esp, ebp
pop ebp
ret
push 0xb3e08c
push eax
call dword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
test eax, eax
jne 0xc24b5e
or dword [esi + 8], 4
jmp 0xc24c89
push 0xb3e07c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
test eax, eax
je 0xc24c8f
push 0xb3e09c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
test eax, eax
jne 0xc24b9a
mov dword [esi + 4], 1
jmp 0xc24c89
push 0xb3e0b0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
test eax, eax
jne 0xc24c10
mov ecx, dword [ebp - 0x688]
lea eax, [ebp - 0x6c0]
inc edi
push eax
mov edx, edi
mov dword [ebp - 0x68c], edi
call fcn.00c2445e
mov ecx, dword [ebp - 0x698]
lea edi, [ebp - 0x6ac]
mov esi, eax
add ecx, 0xc
mov edx, 0xb28b08
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, ecx
lea esi, [ebp - 0x6ac]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00b56763
mov esi, dword [ebp - 0x698]
neg eax
mov edi, dword [ebp - 0x68c]
sbb al, al
inc al
mov dword [ebp - 0x690], eax
jmp 0xc24c89
push 0xb2b108
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
test eax, eax
je 0xc24c89
cmp dword [esi], ebx
jne 0xc24c89
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov dword [ebp - 0x68c], eax
test eax, eax
jne 0xc24c87
lea eax, [ebp - 0x468]
push eax
push 0x104
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x670]
push eax
call dword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathCombineW]
test eax, eax
je 0xc24c81
lea eax, [ebp - 0x670]
push eax
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
jmp 0xc24c87
mov eax, dword [ebp - 0x68c]
mov dword [esi], eax
inc edi
jmp 0xc24949
mov ecx, dword [ebp - 0x688]
lea edx, [edi + 1]
call fcn.00c245c0
mov edi, eax
test edi, edi
je 0xc24cb2
push dword [esi]
call dword [sym.imp.api_ms_win_shell_namespace_l1_1_0.dll_ILFree]
mov dword [esi], edi
jmp 0xc24b03
cmp dword [esi], ebx
jne 0xc24b13
xor eax, eax
jmp 0xc24b34