Function at 0x416328
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1940
call fcn.00442140
mov eax, dword [0x4aa3ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x104
lea eax, [ebp - 0x93c]
push eax
xor edi, edi
push edi
call esi
test eax, eax
je 0x416649
lea eax, [ebp - 0x93c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x416649
push ebx
xor eax, eax
push 0xffe
mov word [ebp - 0x193c], ax
lea eax, [ebp - 0x193a]
push edi
push eax
call fcn.00440110
xor eax, eax
push 0x206
mov word [ebp - 0x734], ax
lea eax, [ebp - 0x732]
push edi
push eax
call fcn.00440110
add esp, 0x18
push 0x208
lea eax, [ebp - 0x734]
push eax
push edi
call esi
push 0x28
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.00440110
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x734]
push eax
call fcn.0041629b
lea eax, [ebp - 0x54]
push eax
push str.360tray
push 0x4877bc
push str._p_s__c_s__v_s_
mov esi, 0x800
lea eax, [ebp - 0x193c]
push esi
push eax
call fcn.00402fd0
mov dword [ebp - 0x1940], edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
add esp, 0x2c
mov ebx, str.__s_s_
xor eax, eax
mov word [ebp - 0x324], ax
mov eax, dword [ebp - 0x1940]
push dword [eax + 0x4a878c]
lea eax, [ebp - 0x93c]
push eax
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x4164a5
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4164a5
push 0x28
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00440110
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.0041629b
add esp, 0x14
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x324]
push eax
call edi
push eax
push ebx
lea eax, [ebp - 0x11c]
push 0x64
push eax
call fcn.00402fd0
add esp, 0x14
lea eax, [ebp - 0x11c]
push eax
push esi
lea eax, [ebp - 0x193c]
push eax
call fcn.00415d70
add dword [ebp - 0x1940], 4
cmp dword [ebp - 0x1940], 0x24
jb 0x416413
and dword [ebp - 0x1940], 0
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 0x416565
mov eax, dword [ebp - 0x1940]
push dword [eax + 0x4a87b0]
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x416565
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416565
push 0x28
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00440110
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.0041629b
add esp, 0x14
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x324]
push eax
call edi
push eax
push ebx
lea eax, [ebp - 0x11c]
push 0x64
push eax
call fcn.00402fd0
add esp, 0x14
lea eax, [ebp - 0x11c]
push eax
push esi
lea eax, [ebp - 0x193c]
push eax
call fcn.00415d70
add dword [ebp - 0x1940], 4
cmp dword [ebp - 0x1940], 0x14
jb 0x4164c0
xor eax, eax
push 0x206
mov word [ebp - 0x324], ax
mov word [ebp - 0x52c], ax
xor edi, edi
lea eax, [ebp - 0x52a]
push edi
push eax
call fcn.00440110
add esp, 0xc
push str...updatecfg.ini
lea eax, [ebp - 0x93c]
push eax
lea eax, [ebp - 0x52c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x416636
lea eax, [ebp - 0x52c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416636
push 0x28
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00440110
add esp, 0xc
lea eax, [ebp - 0x52c]
push eax
push 0x28
lea eax, [ebp - 0x54]
push eax
push 0
push 0x487758
push dword [edi + 0x4a87c4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x54]
push eax
push dword [edi + 0x4a87c4]
lea eax, [ebp - 0x11c]
push ebx
push 0x64
push eax
call fcn.00402fd0
add esp, 0x14
lea eax, [ebp - 0x11c]
push eax
push esi
lea eax, [ebp - 0x193c]
push eax
call fcn.00415d70
add edi, 4
cmp edi, 0x10
jb 0x4165ce
mov eax, dword [0x4ad65c]
mov ecx, dword [eax]
lea edx, [ebp - 0x193c]
push edx
push eax
call dword [ecx + 0x14]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004409d4
leave
ret