Function at 0xbc675b7
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0xbc6d328]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x438], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0x20]
push esi
mov dword [ebp - 0x430], eax
push edi
xor ebx, ebx
lea eax, [ebp - 0x424]
mov esi, ecx
push eax
mov ecx, 0xbc6da28
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x424], ebx
call fcn.0bc65fd1
cmp dword [esi + 0xa4], ebx
je 0xbc67645
cmp dword [ebp - 0x424], ebx
je 0xbc676a8
lea edi, [esi + 0x88]
mov ecx, edi
call fcn.0bc65a4d
test eax, eax
je 0xbc67692
cmp dword [esi + 0xa4], ebx
je 0xbc67666
cmp dword [ebp - 0x424], ebx
je 0xbc67689
mov ecx, esi
call fcn.0bc674d8
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0xbc67689
cmp dword [esi + 0xa4], ebx
jne 0xbc67689
mov dword [esi + 0xa4], 1
mov ecx, edi
call fcn.0bc65a66
jmp 0xbc6769c
mov dword [ebp - 0x418], 0x8007000e
cmp dword [ebp - 0x418], ebx
jl 0xbc6798f
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0xbc676de
push dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0bc47085
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], ebx
jl 0xbc6798f
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
pop ecx
pop ecx
mov dword [ebp - 0x440], eax
cmp eax, ebx
je 0xbc67753
mov edi, eax
add eax, 2
push eax
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x424], eax
push 0x104
lea eax, [ebp - 0x414]
sub edi, ecx
push eax
sar edi, 1
call fcn.0bc47085
cmp edi, ebx
mov dword [ebp - 0x418], eax
jle 0xbc67746
cmp word [ebp + edi*2 - 0x20e], 0x3a
mov ecx, dword [ebp - 0x424]
je 0xbc6774c
mov ecx, dword [ebp - 0x440]
xor eax, eax
mov word [ecx], ax
jmp 0xbc67775
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0bc47085
mov dword [ebp - 0x418], eax
xor eax, eax
mov word [ebp - 0x20c], ax
cmp dword [ebp - 0x418], ebx
jl 0xbc6798f
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.0bc65b4b
test eax, eax
je 0xbc677ec
push dword [ebp - 0x430]
lea eax, [ebp - 0x428]
push dword [ebp - 0x43c]
mov ecx, esi
push dword [ebp - 0x41c]
push eax
lea eax, [esi + 4]
push eax
push dword [ebp - 0x42c]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x434]
push dword [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0bc66caf
mov ecx, edi
mov dword [ebp - 0x418], eax
call fcn.0bc65b6a
cmp dword [ebp - 0x428], ebx
jne 0xbc6798f
lea edi, [esi + 0x64]
mov ecx, edi
call fcn.0bc65b4b
test eax, eax
je 0xbc67857
push dword [ebp - 0x430]
lea eax, [ebp - 0x428]
push dword [ebp - 0x43c]
mov ecx, esi
push dword [ebp - 0x41c]
push eax
lea eax, [esi + 0x5c]
push eax
push dword [ebp - 0x42c]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x434]
push dword [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0bc66caf
mov ecx, edi
mov dword [ebp - 0x418], eax
call fcn.0bc65b6a
cmp dword [ebp - 0x428], ebx
jne 0xbc6798f
lea edi, [esi + 0xec]
xor eax, eax
cmp ax, word [edi]
jne 0xbc678b6
lea ecx, [esi + 0xd0]
call fcn.0bc65a4d
test eax, eax
je 0xbc678ac
push edi
push ebx
push ebx
push 0x20
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0xbc6789f
push 0xbc46b48
push 0x104
push edi
call fcn.0bc470bf
mov dword [ebp - 0x418], eax
lea ecx, [esi + 0xd0]
call fcn.0bc65a66
jmp 0xbc678b6
mov dword [ebp - 0x418], 0x8007000e
cmp dword [ebp - 0x418], ebx
jl 0xbc67987
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0xbc678c7
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0xbc67915
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0xbc678ef
sub eax, edx
sar eax, 1
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0xbc67987
push dword [ebp - 0x430]
mov edi, dword [ebp - 0x420]
push edi
mov ecx, esi
call fcn.0bc664d8
mov eax, dword [ebp - 0x42c]
mov dword [eax], ebx
mov eax, dword [ebp - 0x434]
cmp eax, ebx
je 0xbc6793d
mov dword [eax], ebx
mov dword [ebp - 0x418], 1
cmp dword [ebp - 0x438], ebx
je 0xbc6798f
push dword [ebp - 0x41c]
call sub.SHLWAPI.dll_PathFindFileNameW
cmp eax, ebx
je 0xbc6798f
push 0xbc46b2c
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0xbc6798f
push edi
push dword [edi]
mov ecx, esi
push dword [ebp - 0x438]
call fcn.0bc65f83
mov dword [ebp - 0x418], eax
jmp 0xbc6798f
mov eax, dword [ebp - 0x420]
mov dword [eax], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0bc64d0f
leave
ret 0x1c