Function at 0x415932
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x18ec]
mov eax, 0x18ec
call fcn.004337b0
push 0xffffffffffffffff
push 0x43d369
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x44d08c]
xor eax, ebp
mov dword [ebp + 0x18e8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x18f4]
xor esi, esi
mov dword [ebp - 0x18], eax
cmp dword [eax + 4], esi
je 0x415c00
cmp word [0x4549c8], si
je 0x415c00
xor eax, eax
push 0xffe
mov word [ebp], ax
lea eax, [ebp + 2]
push esi
push eax
call fcn.004253c0
mov eax, dword [0x451a2c]
add esp, 0xc
mov ecx, 0x451a2c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 4], esi
push 0x206
mov word [ebp + 0x1410], ax
lea eax, [ebp + 0x1412]
push esi
push eax
call fcn.004253c0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x1410]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x1410]
push eax
lea eax, [ebp - 0x14]
call fcn.0040a609
pop ecx
call fcn.00414b34
push dword [ebp - 0x14]
test eax, eax
push str.360tray
lea edi, [ebp]
push 0x444e2c
mov eax, 0x800
je 0x415a24
push str._p_s__c_s__v_s__tptray_ver_
jmp 0x415a29
push str._p_s__c_s__v_s_
call fcn.00409ded
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
add esp, 0x10
mov ebx, str.__s_s_
xor eax, eax
mov word [ebp + 0x1618], ax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x44f030]
lea eax, [ebp + 0x1618]
push 0x4549c8
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x415aa6
lea eax, [ebp + 0x1618]
push eax
lea eax, [ebp - 0x14]
call fcn.0040a609
pop ecx
push dword [ebp - 0x14]
lea eax, [ebp + 0x1618]
push eax
call esi
push eax
push ebx
push 0x64
pop eax
lea edi, [ebp + 0x1820]
call fcn.00409ded
add esp, 0xc
mov eax, edi
push eax
mov eax, 0x800
lea ecx, [ebp]
call fcn.00414e5b
add dword [ebp - 0x10], 4
cmp dword [ebp - 0x10], 0x24
jb 0x415a3f
push 0x104
lea eax, [ebp + 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
and dword [ebp - 0x10], 0
xor eax, eax
mov word [ebp + 0x1618], ax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x44f054]
lea eax, [ebp + 0x1000]
push eax
lea eax, [ebp + 0x1618]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x415b2f
lea eax, [ebp + 0x1618]
push eax
lea eax, [ebp - 0x14]
call fcn.0040a609
pop ecx
push dword [ebp - 0x14]
lea eax, [ebp + 0x1618]
push eax
call esi
push eax
push ebx
push 0x64
pop eax
lea edi, [ebp + 0x1820]
call fcn.00409ded
add esp, 0xc
mov eax, edi
push eax
mov eax, 0x800
lea ecx, [ebp]
call fcn.00414e5b
add dword [ebp - 0x10], 4
cmp dword [ebp - 0x10], 0x14
jb 0x415ac6
xor eax, eax
push 0x206
mov word [ebp + 0x1618], ax
mov word [ebp + 0x1208], ax
xor esi, esi
lea eax, [ebp + 0x120a]
push esi
push eax
call fcn.004253c0
lea eax, [ebp + 0x1208]
push eax
mov eax, str.updatecfg.ini
call fcn.0040a54b
add esp, 0x10
test eax, eax
je 0x415be5
push 0x208
lea eax, [ebp + 0x1410]
push 0
push eax
call fcn.004253c0
add esp, 0xc
lea eax, [ebp + 0x1208]
push eax
push 0x28
lea eax, [ebp + 0x1410]
push eax
push 0
push 0x444ecc
push dword [esi + 0x44f068]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x1410]
push eax
push dword [esi + 0x44f068]
lea edi, [ebp + 0x1820]
push ebx
push 0x64
pop eax
call fcn.00409ded
add esp, 0xc
mov eax, edi
push eax
mov eax, 0x800
lea ecx, [ebp]
call fcn.00414e5b
add esi, 4
cmp esi, 0x10
jb 0x415b75
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
lea edx, [ebp]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004054cf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x18e8]
xor ecx, ebp
call fcn.00425271
add ebp, 0x18ec
leave
ret 4