Function at 0x40749e
Capabilities:
Check mutex on windows
Check os version
Copy file
Create process on windows
Delete file

Disassembly:
mov eax, 0x4197cb
call fcn.0040fe54
sub esp, 0xb40
mov eax, dword [0x4220b8]
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 0x400
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push esi
push esi
push esi
lea eax, [ebp - 0xb28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x407521
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
cmp eax, 0x404
push esi
push esi
je 0x407510
cmp eax, 0x804
je 0x407509
push str.You_need_Windows_2000_XP_or_higher_version_to_run_Lava_Lava.
jmp 0x407515
push 0x41e3b0
jmp 0x407515
push 0x41e350
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x407d1a
push str.Riched20.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, dword [ebp + 8]
mov dword [0x4238d0], eax
call fcn.00408fe2
mov ebx, dword [ebp + 0x10]
push ebx
push str._n_n_t_tLava_Lava_Version2007_4_7_nlpCmdLine_s_n
call fcn.00409014
push 0x6f
lea ecx, [ebp - 0xb04]
call fcn.00406f86
add esp, 0xc
test eax, eax
je 0x407568
push dword [ebp - 0xb04]
call fcn.004094d6
jmp 0x40756f
push 0
call fcn.00409876
call fcn.0040a7a8
push str.LVLV_221.EXE
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x72
xor ecx, ecx
call fcn.00406f86
test eax, eax
pop ecx
je 0x40759c
push ebx
call fcn.00407056
xor eax, eax
pop ecx
inc eax
jmp 0x407e21
push dword [0x422ccc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x423a68
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4075f5
test ebx, ebx
je 0x4075f5
mov dword [ebp - 0xb04], 1
jmp 0x4075fc
and dword [ebp - 0xb04], 0
push dword [ebp - 0xb04]
push str.bExistMutex_d_n
call fcn.00409014
cmp dword [ebp - 0xb04], 0
pop ecx
pop ecx
je 0x40766c
call fcn.004072cc
test al, al
jne 0x40766c
mov ebx, dword [ebp + 0x10]
push 0x69
xor ecx, ecx
call fcn.00406f86
test eax, eax
pop ecx
jne 0x40766c
test ebx, ebx
je 0x407be4
cmp word [ebx], ax
je 0x407be4
push 0x71
xor ecx, ecx
call fcn.00406f86
test eax, eax
pop ecx
jne 0x407662
push 0x72
xor ecx, ecx
call fcn.00406f86
test eax, eax
pop ecx
je 0x407d1a
call fcn.0040a7c6
jmp 0x407d1a
mov ebx, dword [ebp + 0x10]
push 0x71
xor ecx, ecx
call fcn.00406f86
test eax, eax
pop ecx
je 0x4076b1
xor esi, esi
lea eax, [ebp + 0x10]
push esi
push eax
call fcn.00404c1f
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], esi
pop ecx
pop ecx
je 0x40769f
push esi
call fcn.0040ad67
cmp eax, 2
je 0x40769f
inc esi
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.0040252e
mov eax, esi
jmp 0x407e21
mov ebx, dword [ebp + 0x10]
push 0x67
xor ecx, ecx
call fcn.00406f86
test eax, eax
pop ecx
je 0x40773a
push 0x20
push ebx
call fcn.0040e2b9
pop ecx
pop ecx
mov ebx, eax
jmp 0x4076d2
inc ebx
inc ebx
cmp word [ebx], 0x20
je 0x4076d0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0xb4c]
mov ecx, ebx
call fcn.004034ae
mov dword [ebp + 0x10], eax
push ebx
lea eax, [ebp - 0x218]
push eax
call esi
push str..CRC
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push 0x41e220
push eax
call fcn.0040e97a
push dword [ebp - 0xb38]
mov esi, eax
push dword [ebp + 0x10]
push ebx
push str._s_u_u60000000
push esi
call fcn.0040e98d
push esi
call fcn.0040ea37
add esp, 0x20
jmp 0x407d1a
mov ebx, dword [ebp + 0x10]
push 0x6a
xor ecx, ecx
call fcn.00406f86
test eax, eax
pop ecx
je 0x40775f
push 0
push dword [ebp + 8]
push 2
pop ecx
call fcn.0040c102
pop ecx
pop ecx
jmp 0x407e21
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
push str._______Self_Program_s_n
call fcn.00409014
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x6f0]
push eax
call esi
push str..DEL
lea eax, [ebp - 0x6f0]
push eax
call edi
lea eax, [ebp - 0x6f0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0040b94a
mov ebx, dword [ebp + 0x10]
push 0x69
xor ecx, ecx
call fcn.00406f86
test eax, eax
pop ecx
je 0x4078bd
lea eax, [ebp - 0x218]
push eax
push str.CheckAndRun_SetRegister_:_s_n
call fcn.00409014
pop ecx
pop ecx
call fcn.0040b9fd
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0040e33f
xor ebx, ebx
cmp eax, ebx
pop ecx
pop ecx
je 0x4077fd
mov word [eax + 2], bx
lea esi, [ebp - 0x218]
call fcn.0040a193
lea eax, [ebp - 0xb08]
push 1
push eax
call fcn.00404c1f
pop ecx
pop ecx
mov dword [ebp - 4], ebx
push dword [0x422cec]
lea eax, [ebp - 0xb08]
push eax
call fcn.004048c0
push dword [ebp - 0xb08]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0xb0c]
push ebx
push eax
call fcn.00404c1f
pop ecx
pop ecx
lea edi, [ebp - 0xb08]
mov byte [ebp - 4], 1
call fcn.004047ab
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xb0c]
add eax, 0xfffffff0
call fcn.0040252e
push dword [0x422cec]
mov eax, edi
push eax
call fcn.004048c0
push dword [ebp - 0xb08]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push dword [0x422cd4]
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp dword [ebp - 0xb04], ebx
je 0x4078ab
mov eax, dword [ebp - 0xb08]
add eax, 0xfffffff0
call fcn.0040252e
jmp 0x407d1a
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xb08]
add eax, 0xfffffff0
call fcn.0040252e
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4078d8
cmp word [ebx], 0
je 0x4078d8
push 0x73
xor ecx, ecx
call fcn.00406f86
test eax, eax
pop ecx
je 0x4078dd
call fcn.0040a1bc
push 1
mov edi, 0x423ef0
push edi
call fcn.00404276
movzx esi, al
push esi
push str.nExistInstall_d_n
call fcn.00409014
test esi, esi
pop ecx
pop ecx
jne 0x407908
push esi
push edi
call fcn.00404276
movzx esi, al
push esi
push str.nExistLocalUpdateFile_d_n
call fcn.00409014
cmp esi, 1
pop ecx
pop ecx
je 0x407b51
mov esi, dword [ebp + 0x10]
push 0x63
xor ecx, ecx
mov ebx, esi
call fcn.00406f86
test eax, eax
pop ecx
jne 0x4079bb
push 0x61
xor ecx, ecx
call fcn.00406f86
test eax, eax
pop ecx
jne 0x4079bb
push 0x71
xor ecx, ecx
call fcn.00406f86
test eax, eax
pop ecx
jne 0x4079bb
push 0x4c
xor ecx, ecx
call fcn.00406f86
test eax, eax
pop ecx
je 0x407a4a
mov esi, 0x41e124
lea edi, [ebp - 0x2e0]
movsd dword es:[edi], dword [esi]
push 0x30
pop ecx
movsw word es:[edi], word [esi]
xor eax, eax
push 0x20
lea edi, [ebp - 0x2da]
rep stosd dword es:[edi], eax
pop ebx
push ebx
push dword [ebp + 0x10]
stosw word es:[edi], ax
call fcn.0040e2b9
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x4079ea
mov edi, 0x423ef0
call fcn.00409ef0
push eax
push str.GetLastCheckDiff_d_n
call fcn.00409014
pop ecx
pop ecx
call fcn.00409ef0
test eax, eax
jle 0x407d1a
mov esi, dword [ebp + 0x10]
push 0x63
xor ecx, ecx
mov ebx, esi
call fcn.00406f86
test eax, eax
pop ecx
je 0x407a9f
push 0x14
pop eax
cmp dword [0x422c70], eax
jle 0x407a9f
mov dword [0x422c70], eax
jmp 0x407aa4
inc esi
inc esi
cmp word [esi], bx
je 0x4079e8
push ebx
push esi
call fcn.0040e2b9
mov edi, eax
mov ax, word [esi]
cmp ax, 0x2f
pop ecx
pop ecx
je 0x407a3f
cmp ax, 0x2d
je 0x407a3f
test edi, edi
jne 0x407a1d
push esi
lea eax, [ebp - 0x2dc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x407a33
mov eax, edi
sub eax, esi
sar eax, 1
inc eax
push eax
push esi
lea eax, [ebp - 0x2dc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x2e0]
push eax
call fcn.0040800f
test edi, edi
mov esi, edi
jne 0x4079ea
jmp 0x407994
push esi
call fcn.0040800f
test eax, eax
je 0x407a68
push 0x64
xor ecx, ecx
mov ebx, esi
call fcn.00406f86
test eax, eax
pop ecx
je 0x407999
cmp dword [ebp - 0xb04], 0
jne 0x407d1a
push 0x104
lea eax, [ebp - 0x8f8]
push eax
call fcn.00409d9e
test eax, eax
je 0x407c03
call fcn.00407334
lea eax, [ebp - 0x8f8]
push eax
jmp 0x407c05
call fcn.0040a1bc
push 0
mov ebx, 0x423ef0
push ebx
call fcn.00404d83
test eax, eax
jge 0x407af3
push 0x63
xor ecx, ecx
mov ebx, esi
call fcn.00406f86
test eax, eax
pop ecx
je 0x407ad0
push 0
push 0x6a
push 0
call fcn.0040927f
push str.Network_is_disconnect._n
call fcn.00409014
pop ecx
push 0
push edi
call fcn.00404276
movzx esi, al
test esi, esi
jne 0x407908
jmp 0x407d1a
je 0x407c0d
push eax
push str.nUpdateFiles_d_n
call fcn.00409014
pop ecx
pop ecx
push 0
push edi
call fcn.00404276
movzx esi, al
test esi, esi
jne 0x407908
mov eax, dword [ebp + 8]
call fcn.004082e7
sub esp, 0x21c
mov eax, ebx
mov ebx, esp
mov dword [ebp - 0xb0c], esp
call fcn.00407e3a
mov ebx, dword [ebp + 8]
call fcn.0040810b
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
add esp, 0x21c
xor ebx, ebx
jmp 0x407c53
call fcn.0040a1bc
call fcn.00409ef0
test eax, eax
jg 0x407b87
mov ebx, dword [ebp + 0x10]
push 0x63
xor ecx, ecx
call fcn.00406f86
test eax, eax
pop ecx
jne 0x407b87
push 0x61
xor ecx, ecx
call fcn.00406f86
test eax, eax
pop ecx
jne 0x407b87
call fcn.004072cc
test al, al
je 0x407be4
call fcn.00407334
push 0x104
lea eax, [ebp - 0xb00]
push eax
call fcn.00409d9e
test eax, eax
je 0x407bef
lea eax, [ebp - 0xb00]
push eax
push dword [ebp + 8]
push 3
pop ecx
call fcn.0040c102
test eax, eax
pop ecx
pop ecx
jg 0x407d1a
mov ebx, dword [ebp + 0x10]
push 0x63
xor ecx, ecx
call fcn.00406f86
test eax, eax
pop ecx
jne 0x407d1a
push 0x61
xor ecx, ecx
call fcn.00406f86
test eax, eax
pop ecx
jne 0x407d1a
push ebx
call fcn.0040800f
jmp 0x407d1a
push 0
push dword [ebp + 8]
push 2
pop ecx
call fcn.0040c102
pop ecx
pop ecx
jmp 0x407d1a
push 0
push dword [ebp + 8]
xor ecx, ecx
inc ecx
jmp 0x407bf7
push 0x63
xor ecx, ecx
mov ebx, esi
call fcn.00406f86
test eax, eax
pop ecx
je 0x407c28
push 0
push 0x74
push 0
call fcn.0040927f
call fcn.0040a1bc
push str.Need_not_update._n
call fcn.00409014
jmp 0x407bfd
lea eax, [ebp - 0xb28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xb28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
lea eax, [ebp - 0xb28]
push ebx
push eax
call esi
test eax, eax
jne 0x407c39
push edi
call fcn.00403ab8
cmp eax, 0x64
jne 0x407d1a
push ebx
mov ecx, edi
call fcn.00404115
push 0x104
lea eax, [ebp - 0x4e8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x4e8]
push 0x5c
push eax
call fcn.0040e33f
mov esi, eax
movzx eax, byte [0x423f00]
push eax
inc esi
push str.g_FileList.m_bExitLava_is__d_._n
inc esi
call fcn.00409014
add esp, 0x10
cmp byte [0x423f00], bl
jne 0x407d21
mov word [esi], bx
xor esi, esi
mov eax, dword [0x423ef4]
cmp eax, ebx
je 0x407d11
mov ecx, dword [0x423ef8]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x407d11
lea eax, [eax + esi*4]
mov eax, dword [eax]
lea ecx, [ebp - 0x4e8]
push ecx
push dword [eax + 0x38]
push str.ExecuteUpdate__RunSfxSetup__s_at__s._n
call fcn.00409014
mov eax, dword [0x423ef4]
add esp, 0xc
lea eax, [eax + esi*4]
mov eax, dword [eax]
lea ecx, [ebp - 0x4e8]
push ecx
push dword [eax + 0x38]
call fcn.0040b1dc
inc esi
jmp 0x407cc1
push 1
mov ecx, edi
call fcn.00404115
xor eax, eax
jmp 0x407e21
xor edi, edi
push dword [edi + 0x422cf8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add edi, 4
cmp edi, 0xc
jb 0x407d23
mov word [esi], bx
mov eax, dword [0x423ef4]
cmp eax, ebx
jne 0x407d55
xor edi, edi
jmp 0x407d60
mov edi, dword [0x423ef8]
sub edi, eax
sar edi, 2
xor esi, esi
cmp edi, ebx
jle 0x407e06
jmp 0x407d71
mov eax, dword [0x423ef4]
lea eax, [eax + esi*4]
mov eax, dword [eax]
lea ecx, [ebp - 0x4e8]
push ecx
push dword [eax + 0x38]
push str.Find_whatsnew.exe__RunSfxSetup__s_at__s._n
call fcn.00409014
mov eax, dword [0x423ef4]
lea eax, [eax + esi*4]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
push str.whatsnew
push eax
call fcn.0040e4cb
add esp, 0x14
test eax, eax
je 0x407dfd
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.whatsnewtmp.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [0x423ef4]
push ebx
lea eax, [eax + esi*4]
mov eax, dword [eax]
lea ecx, [ebp - 0x218]
push ecx
push dword [eax + 0x38]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0040b1dc
inc esi
cmp esi, edi
jl 0x407d6c
push 0x41df20
call fcn.00409014
pop ecx
call fcn.0040a1bc
call fcn.00407334
mov eax, dword [ebp - 0xb20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040f65e
pop edi
pop esi
pop ebx
leave
ret 0x10