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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1940
call fcn.00443860
mov eax, dword [0x4ac40c]
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 0x41790c
lea eax, [ebp - 0x52c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x41790c
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.0041759c
lea eax, [ebp - 0x54]
push eax
push str.360tray
push 0x488898
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 + 0x4aa7ac]
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x41778f
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.0041759c
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.0041701d
add dword [ebp - 0x1940], 4
cmp dword [ebp - 0x1940], 0x24
jb 0x41770b
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 0x41783c
mov eax, dword [ebp - 0x1940]
push dword [eax + 0x4aa7d0]
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x41783c
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.0041759c
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.0041701d
add dword [ebp - 0x1940], 4
cmp dword [ebp - 0x1940], 0x14
jb 0x4177a9
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 0x4178fa
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 0x488834
push dword [edi + 0x4aa7e4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x54]
push eax
push dword [edi + 0x4aa7e4]
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.0041701d
add edi, 4
cmp edi, 0x10
jb 0x417892
mov eax, dword [0x4afbc4]
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