Function at 0x41b53d
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2a8
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edi, ecx
mov word [ebp - 0x298], ax
lea eax, [ebp - 0x298]
mov dword [ebp - 0x2a0], ebx
push edi
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], 0x41
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x41b5a0
cmp ebx, edi
je 0x41b599
mov edx, dword [ebp + 8]
mov ecx, ebx
push edi
call fcn.00407605
xor esi, esi
jmp 0x41b7aa
movzx eax, word [edi]
test ax, ax
je 0x41b6a2
cmp eax, 0x5c
je 0x41b5cc
movzx eax, word [edi + 2]
test ax, ax
je 0x41b6a2
cmp eax, 0x3a
je 0x41b5cc
cmp eax, 0x7c
jne 0x41b6a2
push 0x104
lea ecx, [ebp - 0x298]
call fcn.0041b937
mov esi, eax
test esi, esi
js 0x41b7aa
mov eax, dword [ebp - 0x214]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x210]
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, dword [ebp - 0x29c]
lea eax, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x214]
push edi
push eax
call fcn.0040d512
mov edi, dword [sym.imp.SHLWAPI.dll_UrlCreateFromPathW]
lea eax, [ebp - 0x29c]
push 0
push eax
push dword [ebp - 0x214]
push dword [ebp - 0x214]
call edi
mov esi, eax
cmp esi, 0x80004003
jne 0x41b796
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x298]
call fcn.0041b937
mov esi, eax
test esi, esi
js 0x41b7aa
mov eax, dword [ebp - 0x214]
neg eax
push 0
sbb eax, eax
and eax, dword [ebp - 0x210]
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x29c]
push eax
push dword [ebp - 0x214]
push dword [ebp - 0x214]
call edi
mov esi, eax
jmp 0x41b796
push 0x824
lea ecx, [ebp - 0x298]
call fcn.0041b937
mov esi, eax
test esi, esi
js 0x41b7aa
mov eax, dword [ebp - 0x214]
neg eax
push 2
sbb eax, eax
and eax, dword [ebp - 0x210]
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x29c]
push eax
push dword [ebp - 0x214]
push edi
call dword [sym.imp.SHLWAPI.dll_UrlApplySchemeW]
mov esi, eax
cmp esi, 1
jne 0x41b796
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x2a8], eax
neg eax
sbb ebx, ebx
lea eax, [ebp - 0x2a4]
and ebx, dword [ebp - 0x210]
push eax
push 0x407408
call dword [0x407418]
mov esi, eax
test esi, esi
js 0x41b756
mov esi, dword [ebp - 0x2a8]
mov edx, ebx
push edi
mov ecx, esi
call fcn.00407605
mov eax, dword [ebp - 0x2a4]
push ebx
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esi, eax
mov eax, dword [ebp - 0x2a4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
js 0x41b756
cmp esi, 1
jne 0x41b790
mov eax, dword [ebp - 0x214]
neg eax
push 1
sbb eax, eax
and eax, dword [ebp - 0x210]
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x29c]
push eax
push dword [ebp - 0x214]
push edi
call dword [sym.imp.SHLWAPI.dll_UrlApplySchemeW]
mov esi, eax
cmp esi, 1
jne 0x41b790
mov esi, 0x80041001
jmp 0x41b7aa
mov ebx, dword [ebp - 0x2a0]
test esi, esi
js 0x41b7aa
push dword [ebp - 0x214]
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.00407605
lea ecx, [ebp - 0x298]
call fcn.0041b9d6
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ce8b
mov esp, ebp
pop ebp
ret 0x14