Function at 0x405a00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473e03
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x49c404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 1
push eax
call fcn.00405490
mov byte [ebp - 4], 2
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.004063c0
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
push dword [ebp - 0x3c]
cmovae eax, dword [ebp - 0x4c]
push eax
call fcn.004063c0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x8c]
push str.SoftwareHeinoteReportoffline_
push eax
call fcn.00403330
add esp, 0xc
mov byte [ebp - 4], 3
lea edx, [ebp - 0x8c]
cmp dword [ebp - 0x78], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x74], xmm0
cmovae edx, dword [ebp - 0x8c]
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x20], 0xf
movq qword [ebp - 0x54], xmm0
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
cmp byte [edx], 0
jne 0x405ac1
xor ecx, ecx
jmp 0x405acf
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405ac6
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x34]
call fcn.00404920
push 0xffffffffffffffff
mov byte [ebp - 4], 4
lea eax, [ebp - 0x34]
push 0
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x74], SysStringLen
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.004044a0
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x405b66
mov ecx, dword [ebp - 0x34]
inc eax
cmp eax, 0x1000
jb 0x405b5d
test cl, 0x1f
je 0x405b39
call fcn.004614be
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x405b45
call fcn.004614be
sub ecx, eax
cmp ecx, 4
jae 0x405b51
call fcn.004614be
cmp ecx, 0x23
jbe 0x405b5b
call fcn.004614be
mov ecx, eax
push ecx
call fcn.0042ef8f
add esp, 4
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
xor edi, edi
xor edx, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edx
movq qword [ebp - 0x1c], xmm0
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ecx
xor eax, eax
mov byte [ebp - 4], 8
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x3c], eax
jbe 0x405cb4
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x28]
cmovae eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x98]
mov dword [ebp - 0x90], eax
cmp eax, edi
jae 0x405c3b
cmp ecx, eax
ja 0x405c3b
sub eax, ecx
mov dword [ebp - 0x90], eax
cmp edi, edx
jne 0x405c32
mov eax, edx
sub eax, edi
cmp eax, 1
jae 0x405c2c
mov eax, ecx
sub eax, edi
dec eax
cmp eax, 1
jb 0x405d4c
sub edx, ecx
sub edi, ecx
mov eax, edx
mov dword [ebp - 0x94], edx
shr eax, 1
inc edi
mov ecx, eax
add eax, edx
not ecx
xor edx, edx
cmp ecx, dword [ebp - 0x94]
lea ecx, [ebp - 0x28]
cmovae edx, eax
cmp edx, edi
cmovae edi, edx
push edi
call fcn.004062f0
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x90]
test edi, edi
je 0x405c98
mov al, byte [eax + ecx]
jmp 0x405c96
cmp edi, edx
jne 0x405c90
mov eax, edx
sub eax, edi
cmp eax, 1
jae 0x405c8a
mov eax, ecx
sub eax, edi
dec eax
cmp eax, 1
jb 0x405d4c
sub edx, ecx
sub edi, ecx
mov eax, edx
mov dword [ebp - 0x94], edx
shr eax, 1
inc edi
mov ecx, eax
add eax, edx
not ecx
xor edx, edx
cmp ecx, dword [ebp - 0x94]
lea ecx, [ebp - 0x28]
cmovae edx, eax
cmp edx, edi
cmovae edi, edx
push edi
call fcn.004062f0
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x90]
test edi, edi
je 0x405c98
mov al, byte [eax]
mov byte [edi], al
mov eax, dword [ebp - 0x98]
inc edi
inc eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x3c], eax
ja 0x405bb0
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x98], edx
cmp dword [ebp + 0x30], edx
jbe 0x405dcd
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
add eax, edx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x94], eax
cmp eax, esi
jae 0x405d56
cmp edx, eax
ja 0x405d56
sub eax, edx
mov dword [ebp - 0x94], eax
cmp esi, ecx
jne 0x405d43
mov eax, ecx
sub eax, esi
cmp eax, 1
jae 0x405d3d
mov eax, edx
sub eax, esi
dec eax
cmp eax, 1
jb 0x405d4c
sub ecx, edx
sub esi, edx
mov eax, ecx
mov dword [ebp - 0x90], ecx
shr eax, 1
inc esi
mov ecx, eax
xor edx, edx
add eax, dword [ebp - 0x90]
not ecx
cmp ecx, dword [ebp - 0x90]
lea ecx, [ebp - 0x1c]
cmovae edx, eax
cmp edx, esi
cmovae esi, edx
push esi
call fcn.004062f0
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x94]
test esi, esi
je 0x405db3
mov al, byte [eax + edx]
jmp 0x405db1
push str.vector_T__too_long
call fcn.0040dae6
cmp esi, ecx
jne 0x405dab
mov eax, ecx
sub eax, esi
cmp eax, 1
jae 0x405da5
mov eax, edx
sub eax, esi
dec eax
cmp eax, 1
jb 0x405d4c
sub ecx, edx
sub esi, edx
mov eax, ecx
mov dword [ebp - 0x90], ecx
shr eax, 1
inc esi
mov ecx, eax
xor edx, edx
add eax, dword [ebp - 0x90]
not ecx
cmp ecx, dword [ebp - 0x90]
lea ecx, [ebp - 0x1c]
cmovae edx, eax
cmp edx, esi
cmovae esi, edx
push esi
call fcn.004062f0
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x94]
test esi, esi
je 0x405db3
mov al, byte [eax]
mov byte [esi], al
mov edx, dword [ebp - 0x98]
inc esi
inc edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x98], edx
cmp dword [ebp + 0x30], edx
ja 0x405cc5
push 4
push str.code
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x9c], 0xf
mov dword [ebp - 0xa0], 0
mov byte [ebp - 0xb0], 0
call fcn.00404920
lea ecx, [ebp - 0x74]
call fcn.00406780
test al, al
je 0x405e2f
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0xb0]
sub edi, ecx
cmp dword [ebp - 0x9c], 0x10
push edi
cmovae eax, dword [ebp - 0xb0]
push ecx
push 3
push 0
push eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0xb0]
call fcn.00404390
push 4
push str.path
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x9c], 0xf
mov dword [ebp - 0xa0], 0
mov byte [ebp - 0xb0], 0
call fcn.00404920
lea ecx, [ebp - 0x74]
call fcn.00406780
test al, al
je 0x405e9c
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0xb0]
sub esi, ecx
cmp dword [ebp - 0x9c], 0x10
push esi
cmovae eax, dword [ebp - 0xb0]
push ecx
push 3
push 0
push eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0xb0]
call fcn.00404390
lea ecx, [ebp - 0x1c]
call fcn.00406260
lea ecx, [ebp - 0x28]
call fcn.00406260
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x405ecc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x70]
call fcn.00404390
lea ecx, [ebp - 0x8c]
call fcn.00404390
lea ecx, [ebp - 0x4c]
call fcn.00404390
lea ecx, [ebp + 8]
call fcn.00404390
lea ecx, [ebp + 0x20]
call fcn.00404390
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004582c7
mov esp, ebp
pop ebp
ret