Function at 0x4068a0
Capabilities:
Create process on windows
Delete file
Move file
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x44226f
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4576f0]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4576f0]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x29c]
push 0x104
lea eax, [esp + 0x84]
push eax
push str._temp_
mov dword [esp + 0x38], ebp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push str.Installing_updates__Please_wait...
lea ecx, [esp + 0x1c]
call fcn.00403610
mov dword [esp + 0x294], 0
mov edx, dword [ebp + 0x2a4]
mov edx, dword [edx + 0x14c]
lea ecx, [ebp + 0x2a4]
lea eax, [esp + 0x18]
push eax
call edx
or esi, 0xffffffff
mov dword [esp + 0x294], esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406959
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x50]
call fcn.0041912f
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x298], 1
call fcn.00403610
push 0xe
push 0x44cc68
lea ecx, [esp + 0x28]
mov byte [esp + 0x29c], 2
call fcn.004079b0
mov edx, dword [esp + 0x20]
push 0
push 0
push edx
lea ecx, [esp + 0x5c]
call fcn.00419147
test eax, eax
jne 0x406a08
push 0x40
push 0x44cb44
push str.Error_in_open_file
mov ecx, ebp
call fcn.0040d26c
mov byte [esp + 0x294], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4069f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x294], esi
call fcn.00419535
xor eax, eax
jmp 0x407048
call fcn.00413921
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406a22
push 0x80004005
call fcn.004027a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x294], 3
call fcn.00413921
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406a54
push 0x80004005
call fcn.004027a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0x298], 4
call fcn.00419650
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], 3
jge 0x406a92
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x54]
call fcn.00419650
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x54]
call fcn.00419650
test eax, eax
je 0x406f67
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x44ccac
call fcn.00403610
mov byte [esp + 0x298], 5
mov esi, dword [esp + 0x28]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x20], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x406af3
cmp eax, dword [esi]
jne 0x406af3
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x406b2e
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x407072
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0042a9bd
add esp, 0x10
lea ecx, [esp + 0x6c]
add edi, 0x10
mov dword [ebx], edi
push ecx
mov byte [esp + 0x2a0], 4
call fcn.00403070
mov byte [esp + 0x294], 6
cmp dword [esp + 0x68], 7
je 0x406b6a
lea ecx, [esp + 0x6c]
mov byte [esp + 0x294], 4
call fcn.00415663
jmp 0x406f4e
xor eax, eax
lea esi, [esp + 0x28]
lea ecx, [esp + 0x64]
call fcn.00403250
mov eax, 1
lea esi, [esp + 0x30]
lea ecx, [esp + 0x64]
mov byte [esp + 0x294], 7
call fcn.00403250
mov eax, 2
lea esi, [esp + 0x38]
lea ecx, [esp + 0x64]
mov byte [esp + 0x294], 8
call fcn.00403250
mov eax, dword [eax]
push eax
call fcn.0042b4ae
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406bd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
lea esi, [esp + 0x40]
lea ecx, [esp + 0x64]
call fcn.00403250
mov eax, 4
lea esi, [esp + 0x3c]
lea ecx, [esp + 0x64]
mov byte [esp + 0x294], 9
call fcn.00403250
mov eax, dword [eax]
push eax
call fcn.0042b4ae
mov ebp, eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 5
lea esi, [esp + 0x48]
lea ecx, [esp + 0x64]
call fcn.00403250
mov eax, dword [eax]
push eax
call fcn.0042b4ae
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x20]
call fcn.00403610
push 1
push 0x44ce30
lea ecx, [esp + 0x24]
mov byte [esp + 0x29c], 0xa
call fcn.004079b0
mov eax, 6
lea esi, [esp + 0x44]
lea ecx, [esp + 0x64]
call fcn.00403250
mov byte [esp + 0x294], 0xb
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.004079b0
mov byte [esp + 0x294], 0xa
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406ced
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00413921
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x406a18
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 1
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x29c], 0xc
call fcn.00407580
mov eax, dword [eax]
mov ecx, 0x44ce30
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406d56
test dx, dx
je 0x406d52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406d56
add eax, 4
add ecx, 4
test dx, dx
jne 0x406d30
xor eax, eax
jmp 0x406d5b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x4c]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406d80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x28]
push edi
test bl, bl
je 0x406d9a
mov ecx, dword [esp + 0x18]
push ecx
push 0x44cfa0
lea edx, [esp + 0x24]
push edx
jmp 0x406da9
mov eax, dword [esp + 0x18]
push eax
push str._s_s
lea ecx, [esp + 0x24]
push ecx
call fcn.00402870
add esp, 0x10
push 0x44cb44
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x406e12
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 1
push 0x10
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
push 0x44cb44
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
push 1
push 1
push 0x10
push eax
call ebx
push 0x64
call esi
mov edx, dword [0x45b92c]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edx
call ebx
push 0x64
call esi
jmp 0x406e18
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x18]
push esi
call ebx
test ebp, ebp
je 0x406e4b
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
call fcn.004037b0
test al, al
jne 0x406e57
mov ecx, dword [esp + 0x2c]
push 0x40
push str.Install
push str.Zip_Open_Failed
call fcn.0040d26c
jmp 0x406e57
mov eax, dword [esp + 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0x1c]
push ecx
call ebx
cmp dword [esp + 0x34], 0
je 0x406e79
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
mov byte [esp + 0x294], 0xa
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406e9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x294], 9
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ec5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x294], 8
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406eed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x294], 7
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x294], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x294], 4
call fcn.00415663
mov ebp, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x54]
call fcn.00419650
test eax, eax
jne 0x406aa8
or esi, 0xffffffff
lea ecx, [esp + 0x50]
call fcn.004194f7
push str.updatetmp.tmp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x45b92c
lea ecx, [esp + 0x18]
call fcn.004024b0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 1
jle 0x406fbe
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test eax, eax
jne 0x406fbe
push 0x40
push 0x44cb44
push str.Unable_to_run_the_program_after_update._Please_restart_RegSERVO.
mov ecx, ebp
call fcn.0040d26c
mov byte [esp + 0x294], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406fe5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x294], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40700c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x294], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407033
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x294], esi
call fcn.00419535
mov eax, 1
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.0042a6b1
add esp, 0x284
ret 4
call fcn.004026d0
int3