Function at 0x407f30
Capabilities:
Check if file exists
Check mutex on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc68
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x866]
mov word [ebp - 0x868], dx
mov byte [ebp - 0xc68], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0xc67]
mov byte [ebp - 0x14c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x14b]
mov byte [ebp - 0x250], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x24f]
lea esi, [ebx + 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
lea eax, [ebp - 0x14c]
push 0x40
push eax
push edx
push str.version
push str.AppInfo
mov dword [ebp - 4], edx
call edi
test eax, eax
je 0x40826f
push esi
lea ecx, [ebp - 0xc68]
push 0x400
push ecx
push 0
push 0x420a50
push str.AppInfo
call edi
test eax, eax
je 0x40826f
lea edx, [ebx + 0x118]
push 0x104
lea eax, [ebp - 0x10c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x10c]
push str.Setup.exe
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push esi
lea edx, [ebp - 0x250]
push 0x104
push edx
push 0
push str.general
push str.AppInfo
call edi
test eax, eax
je 0x40826f
lea eax, [ebp - 0x250]
lea ecx, [ebp - 0x10c]
push eax
lea edx, [ebp - 0xc68]
push ecx
push edx
mov ecx, ebx
call fcn.004093b0
test eax, eax
je 0x40826f
lea eax, [ebp - 0x868]
push 0x104
push eax
lea ecx, [ebp - 0x10c]
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40826f
lea edx, [ebp - 0x868]
push edx
call fcn.0040af30
test eax, eax
je 0x40826f
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov eax, dword [ebx + 4]
test eax, eax
jne 0x40826f
mov ecx, ebx
call fcn.00407700
test eax, eax
jne 0x40826f
push str.Mutex_4A79E46E_5A01_4abb_BCC1_F96D06AEE085
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
je 0x408286
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40827f
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x65e]
mov word [ebp - 0x660], 0
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x10c]
test ecx, ecx
stosw word es:[edi], ax
jne 0x40812f
xor edi, edi
jmp 0x408168
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00418c10
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push str._Update
push edi
push str.__s___s
lea ecx, [ebp - 0x660]
push 0x207
push ecx
call sub.MSVCRT.dll__snwprintf
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edx, [ebp - 0x660]
add esp, 0x14
test edx, edx
je 0x4081d0
lea eax, [ebp - 0x660]
push eax
call edi
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.00418c10
mov eax, esp
push 0
push 0
push esi
push eax
lea ecx, [ebp - 0x660]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [eax], 0
call ebx
lea edx, [ebp - 0x660]
push 0xea60
push edx
push 0
call fcn.00408aa0
add esp, 0xc
test eax, eax
je 0x4081ff
push 6
mov ecx, 0x4221e0
call fcn.00406120
mov dword [ebp - 4], 1
jmp 0x40823c
lea eax, [ebp - 0x660]
test eax, eax
je 0x40823c
lea ecx, [ebp - 0x660]
push ecx
call edi
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.00418c10
mov eax, esp
push 0
push 0
push esi
push eax
lea edx, [ebp - 0x660]
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [eax], 0
call ebx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40826f
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40826f
lea edx, [ebp - 0x10c]
push 1
push edx
call fcn.004023f0
add esp, 8
mov eax, dword [ebp - 4]
lea esp, [ebp - 0xc74]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esp, [ebp - 0xc74]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret