Function at 0x418566
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x44a020]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x20
mov eax, 0x436c10
call fcn.00434fb8
mov eax, dword [0x44b724]
mov edi, ecx
mov esi, 0x44b724
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x2c], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov eax, dword [0x44b724]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x206
lea eax, [ebp + 0x20a]
push ebx
push eax
mov word [ebp + 0x208], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 2
mov eax, dword [0x44b724]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
cmp edi, ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x28], ebx
je 0x418815
cmp word [edi], 0x2e
lea eax, [ebp - 0x14]
jne 0x41860d
push edi
push eax
call fcn.00402c06
jmp 0x418622
push 0x43e3a8
push eax
call fcn.00402c06
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.004077fc
mov esi, dword [sym.imp.MSVCR80.dll__wcsicmp]
push 0x43e3ac
push dword [ebp - 0x14]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x418646
push str..com
lea eax, [ebp - 0x14]
push eax
call fcn.00402c06
push str..sys
push dword [ebp - 0x14]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x418664
push str..dll
lea eax, [ebp - 0x14]
push eax
call fcn.00402c06
lea eax, [ebp - 0x20]
push eax
push 0x20019
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x418815
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x18]
push eax
lea esi, [ebp - 0x1c]
lea edi, [ebp + 0x208]
mov dword [ebp - 0x1c], 0x104
call fcn.00411e86
test eax, eax
jne 0x418815
cmp dword [ebp - 0x20], ebx
je 0x4186c0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], ebx
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00402c06
push str.DefaultIcon
lea eax, [ebp - 0x24]
push eax
call fcn.004077fc
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push dword [ebp - 0x24]
mov dword [ebp - 0x1c], ebx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x418815
xor eax, eax
cmp dword [ebp - 0x18], ebx
je 0x418711
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
jne 0x418815
push ebx
lea eax, [ebp - 0x18]
push eax
lea esi, [ebp - 0x1c]
lea edi, [ebp + 0x208]
mov dword [ebp - 0x1c], 0x104
call fcn.00411e86
cmp eax, ebx
jne 0x418815
mov eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00402c06
push 0x2c
lea esi, [ebp - 0x10]
call fcn.0040323c
mov edi, eax
cmp edi, 0xffffffff
je 0x4187b3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
lea eax, [ebp - 0x1c]
sub ecx, edi
push eax
dec ecx
mov eax, esi
call fcn.00419f5d
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov dword [ebp - 0x28], eax
mov ecx, edi
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x10]
call fcn.004056cc
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.004057b0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00401a71
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
call fcn.00401a71
push 0x5c
xor ecx, ecx
lea esi, [ebp - 0x10]
call fcn.00411eed
cmp eax, 0xffffffff
jne 0x418802
push 0x206
lea eax, [ebp + 2]
push ebx
push eax
mov word [ebp], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp]
push eax
mov eax, esi
push eax
call fcn.00402c06
push 1
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
add eax, 0xfffffff0
call fcn.00401a71
cmp dword [ebp - 0x18], ebx
je 0x418831
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401a71
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401a71
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0043461c
add ebp, 0x414
leave
ret