Function at 0x406780
Capabilities:
Check if file exists
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce98b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x3840
call fcn.004ab4d0
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x3824], ebx
mov dword [ebp - 0x3828], ebx
mov dword [ebp - 4], ebx
push 0x800
push ebx
lea eax, [ebp - 0x1818]
push eax
call fcn.004ab450
add esp, 0xc
push 0x800
push ebx
lea ecx, [ebp - 0x1018]
push ecx
call fcn.004ab450
add esp, 0xc
push 0x800
push ebx
lea edx, [ebp - 0x818]
push edx
call fcn.004ab450
add esp, 0xc
push 0x800
push ebx
lea eax, [ebp - 0x3818]
push eax
call fcn.004ab450
add esp, 0xc
push 0x800
push ebx
lea ecx, [ebp - 0x2018]
push ecx
call fcn.004ab450
add esp, 0xc
push 0x800
push ebx
lea edx, [ebp - 0x3018]
push edx
call fcn.004ab450
add esp, 0xc
push 0x800
push ebx
lea eax, [ebp - 0x2818]
push eax
call fcn.004ab450
sub esp, 0x10
mov dword [ebp - 0x3820], esp
mov edx, str.TEMP_DIR
mov eax, esp
call fcn.00411be0
mov byte [ebp - 4], 1
push 0x52c1fc
mov byte [ebp - 4], bl
lea esi, [ebp - 0x384c]
call fcn.00411c20
mov byte [ebp - 4], 2
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x406896
mov eax, dword [eax + 4]
jmp 0x406899
add eax, 4
push 0x3ff
push eax
push 0x400
lea ecx, [ebp - 0x818]
push ecx
call fcn.004a9be0
add esp, 0x10
mov byte [ebp - 4], bl
lea esi, [ebp - 0x384c]
call fcn.00411bb0
lea eax, [ebp - 0x818]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4068d0
sub eax, edx
sar eax, 1
jne 0x406948
sub esp, 0x1c
mov dword [ebp - 0x3820], esp
mov edx, str.WIN_DIR
mov eax, esp
call fcn.00411be0
mov byte [ebp - 4], 3
push 0x52c1fc
mov byte [ebp - 4], bl
lea esi, [ebp - 0x384c]
call fcn.00411c20
mov byte [ebp - 4], 4
mov dword [ebp - 0x3824], 1
cmp dword [eax + 0x18], edi
jb 0x406925
mov eax, dword [eax + 4]
jmp 0x406928
add eax, 4
lea edx, [eax + 2]
jmp 0x406930
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406930
sub eax, edx
sar eax, 1
mov byte [ebp - 0x3819], 1
jne 0x40694e
mov byte [ebp - 0x3819], bl
mov dword [ebp - 4], ebx
test byte [ebp - 0x3824], 1
je 0x40696c
and dword [ebp - 0x3824], 0xfffffffe
lea esi, [ebp - 0x384c]
call fcn.00411bb0
cmp byte [ebp - 0x3819], bl
je 0x4069d5
sub esp, 0x1c
mov dword [ebp - 0x3820], esp
mov edx, str.WIN_DIR
mov eax, esp
call fcn.00411be0
mov byte [ebp - 4], 5
push 0x52c1fc
mov byte [ebp - 4], bl
lea esi, [ebp - 0x384c]
call fcn.00411c20
mov byte [ebp - 4], 6
cmp dword [eax + 0x18], edi
jb 0x4069ae
mov eax, dword [eax + 4]
jmp 0x4069b1
add eax, 4
push eax
push str._s_temp
lea edx, [ebp - 0x818]
call fcn.00411a00
add esp, 8
mov byte [ebp - 4], bl
lea esi, [ebp - 0x384c]
call fcn.00411bb0
jmp 0x406a0f
lea eax, [ebp - 0x818]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4069e0
sub eax, edx
sar eax, 1
jne 0x406a0f
push 0x3ff
push str.C:WindowsTemp
push 0x400
lea edx, [ebp - 0x818]
push edx
call fcn.004a9be0
add esp, 0x10
sub esp, 0x1c
mov dword [ebp - 0x3820], esp
mov edx, str.PROGRAM_NAME
mov eax, esp
call fcn.00411be0
mov byte [ebp - 4], 7
push 0x52c1fc
mov byte [ebp - 4], bl
lea esi, [ebp - 0x384c]
call fcn.00411c20
mov byte [ebp - 4], 8
cmp dword [eax + 0x18], edi
jb 0x406a49
mov eax, dword [eax + 4]
jmp 0x406a4c
add eax, 4
push eax
lea eax, [ebp - 0x818]
push eax
push str._sLiteInstall_s
lea edx, [ebp - 0x1018]
call fcn.00411a00
add esp, 0xc
mov byte [ebp - 4], bl
lea esi, [ebp - 0x384c]
call fcn.00411bb0
lea ecx, [ebp - 0x1018]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406a97
push ebx
push 1
lea ecx, [ebp - 0x1018]
call fcn.0045d900
add esp, 8
sub esp, 0x1c
mov dword [ebp - 0x3820], esp
mov edx, str.SRC_DIR
mov eax, esp
call fcn.00411be0
mov byte [ebp - 4], 9
push 0x52c1fc
mov byte [ebp - 4], bl
lea esi, [ebp - 0x384c]
call fcn.00411c20
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x18], edi
jb 0x406ad1
mov eax, dword [eax + 4]
jmp 0x406ad4
add eax, 4
push 0x3ff
push eax
push 0x400
lea edx, [ebp - 0x1818]
push edx
call fcn.004a9be0
add esp, 0x10
mov byte [ebp - 4], bl
lea esi, [ebp - 0x384c]
call fcn.00411bb0
lea eax, [ebp - 0x1018]
push eax
lea ecx, [ebp - 0x1818]
push ecx
push str._Set_Reboot_and_install__Copy_files___s__to___s_
mov ecx, 0x527b30
call fcn.00449000
add esp, 0xc
push ebx
push 1
xor ebx, ebx
lea edi, [ebp - 0x1018]
lea eax, [ebp - 0x1818]
call fcn.0045cfb0
add esp, 8
mov ecx, 0x527b30
test eax, eax
jne 0x406d57
push str.CopyFile_Success__
call fcn.00449000
add esp, 4
push 0x400
lea edx, [ebp - 0x2018]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x2018]
test eax, eax
je 0x406b86
push 0x400
mov eax, edi
push eax
lea ecx, [ebp - 0x1818]
push ecx
push edx
call fcn.004422a0
add esp, 0x10
jmp 0x406b9a
lea eax, [ebp - 0x1818]
push eax
push str._s_setup.exe
call fcn.00411a00
add esp, 8
lea ecx, [ebp - 0x2018]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406bdb
lea edx, [ebp - 0x2018]
push edx
push str.Target_File_is_not_exists:___s_
mov ecx, 0x527b30
call fcn.00449000
add esp, 8
mov dword [ebp - 0x382c], ebx
push 0x5042a0
lea eax, [ebp - 0x382c]
push eax
call fcn.004abd6e
call fcn.0049a770
mov eax, dword [eax + 4]
cmp dword [eax + 0x48], ebx
je 0x406c2c
call fcn.0049a770
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x48]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406bf6
sub eax, edx
sar eax, 1
je 0x406c2c
call fcn.0049a770
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x48]
push 0x3ff
push eax
push 0x400
lea ecx, [ebp - 0x3818]
push ecx
call fcn.004a9be0
add esp, 0x10
push 0x3ff
push str.__REBOOT
push 0x400
lea edx, [ebp - 0x3818]
push edx
call fcn.004a9dea
lea eax, [ebp - 0x3818]
push eax
lea ecx, [ebp - 0x2018]
push ecx
push str._s__s
lea edx, [ebp - 0x3018]
call fcn.00411a00
mov dword [ebp - 0x3820], esp
mov edx, str.PROGRAM_NAME
mov eax, esp
call fcn.00411be0
mov byte [ebp - 4], 0xb
push 0x52c1fc
mov byte [ebp - 4], bl
lea esi, [ebp - 0x384c]
call fcn.00411c20
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x18], 8
jb 0x406c9d
mov eax, dword [eax + 4]
jmp 0x406ca0
add eax, 4
push eax
push str._s_lite_install
lea edx, [ebp - 0x2818]
call fcn.00411a00
add esp, 8
mov byte [ebp - 4], bl
lea esi, [ebp - 0x384c]
call fcn.00411bb0
lea edx, [ebp - 0x1018]
push edx
lea eax, [ebp - 0x1818]
push eax
push str._Set_runonce_key__Copy_files___s__to___s_
mov ecx, 0x527b30
call fcn.00449000
add esp, 0xc
push ebx
lea ecx, [ebp - 0x2818]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x3018]
call fcn.00410350
add esp, 0x10
mov ecx, 0x527b30
test eax, eax
jne 0x406d21
push str.Set_Key_success__
call fcn.00449000
mov dword [ebp - 0x3828], 1
jmp 0x406d2b
push str.Set_Key_fail__
call fcn.00449000
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3828]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a998e
mov esp, ebp
pop ebp
ret
push str.Copy_File_Fail____
call fcn.00449000
add esp, 4
mov dword [ebp - 0x3830], ebx
push 0x5042a0
lea edx, [ebp - 0x3830]
push edx
call fcn.004abd6e
mov eax, dword [ebp - 0x3850]
mov dword [ebp - 0x3828], eax
mov dword [ebp - 4], 0xffffffff
mov eax, 0x406d94
ret