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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1940
call fcn.00443860
mov eax, dword [0x4ad40c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x52c]
push eax
xor edi, edi
push edi
call esi
test eax, eax
je 0x4178e8
lea eax, [ebp - 0x52c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x4178e8
xor eax, eax
push 0xffe
mov word [ebp - 0x193c], ax
lea eax, [ebp - 0x193a]
push edi
push eax
call fcn.00441830
xor eax, eax
push 0x206
mov word [ebp - 0x734], ax
lea eax, [ebp - 0x732]
push edi
push eax
call fcn.00441830
add esp, 0x18
push ebx
lea eax, [ebp - 0x734]
push eax
push edi
call esi
push 0x50
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.00441830
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x734]
push eax
call fcn.00417578
lea eax, [ebp - 0x54]
push eax
push str.360tray
push 0x4898b0
push str._p_s__c_s__v_s_
mov esi, 0x800
lea eax, [ebp - 0x193c]
push esi
push eax
call fcn.00403161
add esp, 0x2c
mov dword [ebp - 0x1940], edi
mov ebx, str.__s_s_
xor eax, eax
mov word [ebp - 0x324], ax
mov eax, dword [ebp - 0x1940]
push dword [eax + 0x4ab7ac]
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x41776b
push 0x50
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.00441830
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.00417578
add esp, 0x14
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push ebx
lea eax, [ebp - 0x11c]
push 0x64
push eax
call fcn.00403161
add esp, 0x14
lea eax, [ebp - 0x11c]
push eax
push esi
lea eax, [ebp - 0x193c]
push eax
call fcn.00416ff9
add dword [ebp - 0x1940], 4
cmp dword [ebp - 0x1940], 0x24
jb 0x4176e7
mov dword [ebp - 0x1940], edi
xor eax, eax
mov word [ebp - 0x324], ax
push 0x104
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x417818
mov eax, dword [ebp - 0x1940]
push dword [eax + 0x4ab7d0]
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x417818
push 0x50
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.00441830
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.00417578
add esp, 0x14
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push ebx
lea eax, [ebp - 0x11c]
push 0x64
push eax
call fcn.00403161
add esp, 0x14
lea eax, [ebp - 0x11c]
push eax
push esi
lea eax, [ebp - 0x193c]
push eax
call fcn.00416ff9
add dword [ebp - 0x1940], 4
cmp dword [ebp - 0x1940], 0x14
jb 0x417785
xor eax, eax
push 0x206
mov word [ebp - 0x324], ax
mov word [ebp - 0x93c], ax
lea eax, [ebp - 0x93a]
push edi
push eax
call fcn.00441830
add esp, 0xc
push str...updatecfg.ini
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x93c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x4178d6
push 0x50
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00441830
add esp, 0xc
lea eax, [ebp - 0x93c]
push eax
push 0x28
lea eax, [ebp - 0x54]
push eax
push 0
push 0x48984c
push dword [edi + 0x4ab7e4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x54]
push eax
push dword [edi + 0x4ab7e4]
lea eax, [ebp - 0x11c]
push ebx
push 0x64
push eax
call fcn.00403161
add esp, 0x14
lea eax, [ebp - 0x11c]
push eax
push esi
lea eax, [ebp - 0x193c]
push eax
call fcn.00416ff9
add edi, 4
cmp edi, 0x10
jb 0x41786e
mov eax, dword [0x4b0bc4]
mov ecx, dword [eax]
lea edx, [ebp - 0x193c]
push edx
push eax
call dword [ecx + 0x14]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004420f4
leave
ret