Function at 0x41be20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f65b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x4ca00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x90], esi
mov edi, ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x68]
push eax
call fcn.00420fc0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x41be75
mov esi, dword [esi]
push eax
push esi
call fcn.00431a70
cmp dword [ebp - 0x54], 0x10
lea eax, [ebp - 0x68]
push dword [ebp - 0x58]
cmovae eax, dword [ebp - 0x68]
push eax
call fcn.00431a70
cmp dword [edi + 0x14], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x40], xmm0
movq qword [ebp - 0x30], xmm0
jb 0x41bea8
mov edi, dword [edi]
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
cmp byte [edi], 0
jne 0x41bec6
xor ecx, ecx
jmp 0x41bed9
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41bed0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x8c]
call fcn.00420210
push 0xffffffffffffffff
mov byte [ebp - 4], 1
lea eax, [ebp - 0x8c]
push 0
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x50], 0x80000001
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
call fcn.004204e0
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x78]
cmp eax, 0x10
jb 0x41bf43
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.0040e120
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], 5
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x58], eax
jbe 0x41c06d
cmp dword [ebp - 0x54], 0x10
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 0x28]
cmovae eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], eax
cmp eax, edi
jae 0x41c003
cmp ecx, eax
ja 0x41c003
sub eax, ecx
mov dword [ebp - 0x6c], eax
cmp edi, edx
jne 0x41bffa
mov eax, edx
sub eax, edi
cmp eax, 1
jae 0x41bff7
mov eax, ecx
sub eax, edi
dec eax
cmp eax, 1
jb 0x41c103
sub edx, ecx
sub edi, ecx
mov eax, edx
mov dword [ebp - 0x70], edx
shr eax, 1
inc edi
mov ecx, eax
add eax, edx
not ecx
xor edx, edx
cmp ecx, dword [ebp - 0x70]
lea ecx, [ebp - 0x28]
cmovae edx, eax
cmp edx, edi
cmovae edi, edx
push edi
call fcn.0041f710
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x6c]
test edi, edi
je 0x41c057
mov al, byte [ecx + eax]
jmp 0x41c055
cmp edi, edx
jne 0x41c04f
mov eax, edx
sub eax, edi
cmp eax, 1
jae 0x41c04c
mov eax, ecx
sub eax, edi
dec eax
cmp eax, 1
jb 0x41c103
sub edx, ecx
sub edi, ecx
mov eax, edx
mov dword [ebp - 0x70], edx
shr eax, 1
inc edi
mov ecx, eax
add eax, edx
not ecx
xor edx, edx
cmp ecx, dword [ebp - 0x70]
lea ecx, [ebp - 0x28]
cmovae edx, eax
cmp edx, edi
cmovae edi, edx
push edi
call fcn.0041f710
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x6c]
test edi, edi
je 0x41c057
mov al, byte [eax]
mov byte [edi], al
mov eax, dword [ebp - 0x74]
inc edi
inc eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x58], eax
ja 0x41bf8a
xor ecx, ecx
mov edx, dword [ebp - 0x90]
xor eax, eax
mov dword [ebp - 0x74], eax
mov edx, dword [edx + 0x10]
test edx, edx
je 0x41c184
cmp edx, eax
jbe 0x41c10d
mov edx, dword [ebp - 0x90]
cmp dword [edx + 0x14], 0x10
jb 0x41c099
mov edx, dword [edx]
add eax, edx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x70], eax
cmp eax, esi
jae 0x41c117
cmp edx, eax
ja 0x41c117
sub eax, edx
mov dword [ebp - 0x70], eax
cmp esi, ecx
jne 0x41c0fa
mov eax, ecx
sub eax, esi
cmp eax, 1
jae 0x41c0f7
mov eax, edx
sub eax, esi
dec eax
cmp eax, 1
jb 0x41c103
sub ecx, edx
sub esi, edx
mov eax, ecx
mov dword [ebp - 0x6c], ecx
shr eax, 1
inc esi
mov ecx, eax
xor edx, edx
add eax, dword [ebp - 0x6c]
not ecx
cmp ecx, dword [ebp - 0x6c]
lea ecx, [ebp - 0x1c]
cmovae edx, eax
cmp edx, esi
cmovae esi, edx
push esi
call fcn.0041f710
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x70]
test esi, esi
je 0x41c168
mov al, byte [eax + edx]
jmp 0x41c166
push str.vector_T__too_long
call fcn.0043842e
push str.invalid_string_position
call fcn.0043844e
cmp esi, ecx
jne 0x41c160
mov eax, ecx
sub eax, esi
cmp eax, 1
jae 0x41c15d
mov eax, edx
sub eax, esi
dec eax
cmp eax, 1
jb 0x41c103
sub ecx, edx
sub esi, edx
mov eax, ecx
mov dword [ebp - 0x6c], ecx
shr eax, 1
inc esi
mov ecx, eax
xor edx, edx
add eax, dword [ebp - 0x6c]
not ecx
cmp ecx, dword [ebp - 0x6c]
lea ecx, [ebp - 0x1c]
cmovae edx, eax
cmp edx, esi
cmovae esi, edx
push esi
call fcn.0041f710
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x70]
test esi, esi
je 0x41c168
mov al, byte [eax]
mov byte [esi], al
mov edx, dword [ebp - 0x90]
inc esi
mov eax, dword [ebp - 0x74]
inc eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x74], eax
mov edx, dword [edx + 0x10]
cmp edx, eax
ja 0x41c08b
push 4
push str.code
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
call fcn.00420210
lea ecx, [ebp - 0x50]
call fcn.004332f0
test al, al
je 0x41c1dd
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x8c]
sub edi, ecx
cmp dword [ebp - 0x78], 0x10
push edi
cmovae eax, dword [ebp - 0x8c]
push ecx
push 3
push 0
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x78]
cmp eax, 0x10
jb 0x41c1f7
push 1
inc eax
push eax
push dword [ebp - 0x8c]
call fcn.00402b00
add esp, 0xc
push 4
push str.path
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
call fcn.00420210
lea ecx, [ebp - 0x50]
call fcn.004332f0
test al, al
je 0x41c250
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x8c]
sub esi, ecx
cmp dword [ebp - 0x78], 0x10
push esi
cmovae eax, dword [ebp - 0x8c]
push ecx
push 3
push 0
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x78]
cmp eax, 0x10
jb 0x41c26a
push 1
inc eax
push eax
push dword [ebp - 0x8c]
call fcn.00402b00
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.0041f410
lea ecx, [ebp - 0x28]
call fcn.0041f410
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x41c28f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x41c2a6
push 1
inc eax
push eax
push dword [ebp - 0x4c]
call fcn.00402b00
add esp, 0xc
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
cmp eax, 0x10
jb 0x41c2cf
push 1
inc eax
push eax
push dword [ebp - 0x68]
call fcn.00402b00
add esp, 0xc
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.004388ef
mov esp, ebp
pop ebp
ret