Function at 0x418340
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44f767
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x328
mov eax, dword [0x478c30]
push ebx
push edi
mov dword [esp + 0x32c], eax
xor edi, edi
lea eax, [esp + 0x120]
push eax
push edi
push edi
push 0x1c
mov dword [esp + 0x18], edi
push edi
xor bl, bl
mov word [esp + 0x33c], di
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
test eax, eax
jl 0x418573
push ebp
lea ecx, [esp + 0x24]
push esi
lea edx, [esp + 0x128]
mov dword [esp + 0x24], ecx
push edx
lea ecx, [esp + 0x28]
call fcn.004064a0
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x348]
push eax
mov ecx, esi
mov dword [esp + 0x344], edi
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_unsigned_short_int_const__]
mov eax, dword [esp + 0x24]
mov ebp, dword [sym.imp.MSVCR71.dll_free]
or ebx, 0xffffffff
lea ecx, [esp + 0x28]
cmp eax, ecx
mov dword [esp + 0x340], ebx
je 0x4183ec
push eax
call ebp
add esp, 4
lea edx, [esp + 0x28]
mov dword [esp + 0x24], edx
call dword [0x46e0a0]
push eax
push str.Ahead
lea ecx, [esp + 0x2c]
call fcn.00406560
mov eax, dword [esp + 0x24]
push eax
push 0x457418
mov ecx, esi
mov dword [esp + 0x348], 1
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const__]
mov ecx, eax
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const__]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
cmp eax, ecx
mov dword [esp + 0x340], ebx
je 0x418447
push eax
call ebp
add esp, 4
cmp dword [esi + 0x18], 8
jb 0x418452
mov esi, dword [esi + 4]
jmp 0x418455
add esi, 4
lea edx, [esp + 0x28]
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], edx
call fcn.004064a0
mov eax, dword [esp + 0x24]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x41848a
call edi
cmp eax, 0xb7
je 0x41848a
xor bl, bl
jmp 0x41848c
mov bl, 1
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x41849e
push eax
call ebp
add esp, 4
test bl, bl
je 0x4184a9
mov al, 1
jmp 0x41854e
push str.NeroMediaHome
lea ecx, [esp + 0x20]
call fcn.0040f0f0
mov eax, dword [esp + 0x1c]
test eax, eax
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x340], 2
je 0x41852c
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x18], 0
mov edx, dword [eax]
push eax
call dword [edx + 0x1c]
cmp word [esp + 0x10], 0
setne al
test al, al
je 0x41852c
call edi
push eax
lea edx, [esp + 0x14]
push str.OpenOrCreateLocalAppFolder:_CreateDirectory_failed_with_error__x0x
push edx
call fcn.0040ea70
add esp, 0xc
mov eax, dword [eax]
push 0x2f
push str.s:_nerohomeburst_neromediamanagermedialibrary_srccommon.._.._.._Common_include_helpers.h
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x34c], 3
call fcn.0040e940
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x344], 0xffffffff
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41854c
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor al, al
pop esi
pop ebp
mov ecx, dword [esp + 0x330]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x328]
pop ebx
call fcn.0044d44d
add esp, 0x334
ret
push str.NeroMediaHome
lea ecx, [esp + 0x10]
call fcn.0040f0f0
mov eax, dword [esp + 0xc]
cmp eax, edi
mov dword [esp + 0x338], 4
je 0x4185c9
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x14]
push edx
mov dword [esp + 0x10], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp word [esp + 8], di
setne al
test al, al
je 0x4185c9
push 0x32
push str.s:_nerohomeburst_neromediamanagermedialibrary_srccommon.._.._.._Common_include_helpers.h
push str.SHGetFolderPath___for_CSIDL_LOCAL_APPDATA_failed
lea ecx, [esp + 0x18]
call fcn.0040e940
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x33c], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x4185ed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
jmp 0x418550