Function at 0x40d6d0
Capabilities:
Check if file exists
Check mutex on windows
Hide graphical window
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418bab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x440
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str.lsupdate_mutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x1c], edi
je 0x40d8d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40d7f2
push 0x419a70
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x40d759
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x41d050]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 8]
push 0xff
lea ecx, [ebp - 0x44c]
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ecx
lea eax, [ebp - 0x44c]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00404530
lea ecx, [ebp - 0x18]
push ecx
call fcn.004048c0
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004031d0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.004018c0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 8]
test eax, eax
jne 0x40d7cc
push str.lvsupdate.exe
lea ecx, [ebp - 0x14]
call fcn.00403230
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004044f0
call fcn.004049d0
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004018c0
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x2c], 8
mov dword [ebp - 0x28], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push 0
push ebx
push edx
push 0
mov ecx, 0x41e050
call fcn.0040ba30
test al, al
jne 0x40d84b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x41e050
call fcn.00403170
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push str.LVSEIE_MainWnd
call dword [sym.imp.USER32.dll_FindWindowW]
push str._setting.ini
mov edi, eax
push 0x41e094
lea eax, [ebp + 0x10]
push eax
call fcn.00404800
mov ecx, dword [ebp + 0x10]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
mov dword [ebp - 4], 2
call esi
test eax, eax
je 0x40d8cf
push str.update.ini
push 0x41e094
lea edx, [ebp - 0x14]
push edx
call fcn.00404800
mov eax, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call esi
test eax, eax
jne 0x40d8ec
mov ecx, dword [ebp + 0x14]
push edi
push ecx
push ebx
call fcn.00403cf0
mov edx, dword [ebp - 0x1c]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x41e050
call fcn.00403170
lea ecx, [ebp - 0x14]
call fcn.004018c0
lea ecx, [ebp + 0x10]
call fcn.004018c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x41e08c]
test eax, eax
mov byte [ebp - 4], 4
jne 0x40d9c5
mov eax, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x64
lea ecx, [ebp - 0x24c]
push ecx
push 0x4199b0
push 0x4199a8
push 0x419a20
call esi
mov edx, dword [ebp - 0x14]
push edx
push 0x64
lea eax, [ebp - 0x184]
push eax
push 0x4199b0
push 0x4199a8
push str.update
call esi
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00404530
lea edx, [ebp - 0x184]
push edx
push eax
call fcn.00401af0
lea ecx, [ebp - 0x18]
mov byte [ebp + 0xb], al
call fcn.004018c0
mov al, byte [ebp + 0xb]
test al, al
push edi
je 0x40d983
mov eax, dword [ebp + 0x14]
push eax
push ebx
call fcn.00403cf0
add esp, 0xc
mov dword [ebp + 0x14], eax
jmp 0x40dc73
mov esi, dword [ebp + 0x14]
push esi
push ebx
call fcn.00403b10
add esp, 0xc
cmp eax, 1
mov dword [ebp + 0x14], eax
jne 0x40dc73
push edi
push esi
push ebx
call fcn.0040b4a0
add esp, 0xc
test eax, eax
mov dword [ebp + 0x14], eax
jne 0x40dc73
push edi
push esi
push ebx
call fcn.00403ea0
add esp, 0xc
mov dword [ebp + 0x14], eax
jmp 0x40dc73
cmp eax, 1
jne 0x40dc73
lea ecx, [ebp - 0xbc]
call fcn.0040a7b0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.0040a430
push ecx
mov esi, esp
mov dword [ebp + 0x14], esp
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x41e098
mov byte [ebp - 4], 6
call fcn.004044f0
push esi
call fcn.004025c0
add esp, 8
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x41e094
mov byte [ebp - 4], 7
call fcn.004044f0
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x41e090
mov byte [ebp - 4], 8
call fcn.004044f0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.0040caa0
xor ebx, ebx
mov edi, edi
mov edx, dword [ebp - 0x38]
test edx, edx
mov ecx, dword [ebp - 0x34]
jne 0x40da4e
xor eax, eax
jmp 0x40da55
mov eax, ecx
sub eax, edx
sar eax, 4
cmp ebx, eax
jge 0x40dafe
mov esi, ebx
push ecx
shl esi, 4
lea eax, [esi + edx]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004044f0
lea ecx, [ebp - 0x18]
push ecx
call fcn.004048c0
add esp, 8
mov edi, eax
push 0x41952c
push 0x41e090
lea edx, [ebp + 8]
push edx
mov byte [ebp - 4], 9
call fcn.00404800
push edi
push eax
lea eax, [ebp + 0x14]
push eax
mov byte [ebp - 4], 0xa
call fcn.00404750
lea ecx, [ebp + 8]
call fcn.004018c0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call fcn.004018c0
push ecx
lea edx, [ebp + 0x14]
mov ecx, esp
mov dword [ebp - 0x20], esp
push edx
call fcn.004044f0
mov eax, dword [ebp - 0x38]
push ecx
add eax, esi
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 0xe
call fcn.004044f0
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0xc
call fcn.0040c7a0
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 6
call fcn.004018c0
inc ebx
jmp 0x40da40
test edx, edx
je 0x40dc5c
sub ecx, edx
sar ecx, 4
test ecx, ecx
jle 0x40dc5c
push 0
lea ecx, [ebp - 0xbc]
call fcn.00403100
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x14
call esi
lea ecx, [ebp - 0xb8]
call fcn.00402b90
test al, al
je 0x40db3d
mov bl, 1
jmp 0x40db4e
lea ecx, [ebp - 0xb8]
call fcn.00402ae0
test al, al
je 0x40db26
xor bl, bl
mov eax, dword [0x41e098]
mov edx, dword [eax - 0xc]
test edx, edx
push ecx
mov dword [ebp + 0x14], esp
mov esi, esp
push ecx
mov dword [ebp + 0x14], esp
mov ecx, esp
jl 0x40db76
mov dword [ecx], eax
mov ecx, eax
sub ecx, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x40db89
mov edx, dword [0x41d050]
mov dword [ecx], edx
mov eax, dword [0x41e098]
push eax
call fcn.00403230
push esi
call fcn.004048c0
add esp, 8
call fcn.00401c70
add esp, 4
test eax, eax
jl 0x40dc5c
test bl, bl
je 0x40dc5c
lea ecx, [ebp - 0x64]
call fcn.0040a430
push ecx
mov esi, esp
mov dword [ebp + 0x14], esp
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
mov bl, 0xf
push 0x41e098
mov byte [ebp - 4], bl
call fcn.004044f0
push esi
call fcn.004025c0
add esp, 8
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x41e094
mov byte [ebp - 4], 0x10
call fcn.004044f0
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x41e090
mov byte [ebp - 4], 0x11
call fcn.004044f0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.0040caa0
push 0
lea ecx, [ebp - 0x64]
call fcn.0040beb0
test eax, eax
jl 0x40dc54
mov ecx, dword [ebp - 0x14]
push ecx
push 0x64
lea edx, [ebp - 0x184]
push edx
push 0x4199b0
push 0x4199a8
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x184]
push ecx
push 0x4199a8
push 0x419a20
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x64]
call fcn.0040a3a0
lea ecx, [ebp - 0x48]
call fcn.0040a3a0
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 4
call fcn.0040b070
call fcn.00402020
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40dc86
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x41e050
call fcn.00403170
mov esi, dword [ebp - 0x14]
mov eax, dword [0x41d054]
lea edx, [esi - 0xc]
cmp edx, eax
je 0x40dcb6
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40dcb6
push esi
call fcn.0040f26f
add esp, 4
mov esi, dword [ebp + 0x10]
mov ecx, dword [0x41d054]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x40dcdd
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40dcdd
push esi
call fcn.0040f26f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10