Function at 0x4055d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473613
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x49b3e4]
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, dword [ebp + 0xc]
lea eax, [ebp - 0x68]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x84], esi
call fcn.00405490
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x405627
mov esi, dword [esi]
push eax
push esi
call fcn.00405e90
cmp dword [ebp - 0x54], 0x10
lea eax, [ebp - 0x68]
push dword [ebp - 0x58]
cmovae eax, dword [ebp - 0x68]
push eax
call fcn.00405e90
mov byte [ebp - 4], 1
xorps xmm0, xmm0
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x40], xmm0
movq qword [ebp - 0x30], xmm0
mov byte [ebp - 4], 0
cmp dword [edi + 0x14], 0x10
jb 0x405662
mov edi, dword [edi]
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb8], 0xf
mov dword [ebp - 0xbc], 0
mov byte [ebp - 0xcc], 0
cmp byte [edi], 0
jne 0x40569a
xor ecx, ecx
jmp 0x4056a9
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4056a0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0xcc]
call fcn.004044c0
mov byte [ebp - 4], 2
lea eax, [ebp - 0xcc]
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 0
push eax
mov dword [ebp - 0x50], SysStringLen
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
call fcn.00404000
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xb8]
cmp eax, 0x10
jb 0x40575a
mov ecx, dword [ebp - 0xcc]
inc eax
cmp eax, 0x1000
jb 0x405751
test cl, 0x1f
je 0x40572d
call fcn.00460fd4
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x405739
call fcn.00460fd4
sub ecx, eax
cmp ecx, 4
jae 0x405745
call fcn.00460fd4
cmp ecx, 0x23
jbe 0x40574f
call fcn.00460fd4
mov ecx, eax
push ecx
call fcn.00457b70
add esp, 4
mov dword [ebp - 0xb8], 0xf
mov dword [ebp - 0xbc], 0
mov byte [ebp - 0xcc], 0
mov byte [ebp - 4], 5
xorps xmm0, xmm0
mov byte [ebp - 4], 4
xor ecx, ecx
movq qword [ebp - 0x28], xmm0
xor esi, esi
mov dword [ebp - 0x28], ecx
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 7
xor edx, edx
mov byte [ebp - 4], 6
xor edi, edi
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 8
mov dword [ebp - 0x70], edi
cmp dword [ebp - 0x58], edi
jbe 0x4058f1
mov eax, dword [ebp - 0x58]
mov edx, edi
cmp eax, edx
jbe 0x40593b
cmp dword [ebp - 0x54], 0x10
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
add edx, eax
mov dword [ebp - 0x80], edx
mov byte [ebp - 4], 8
cmp edx, esi
jae 0x405870
cmp ecx, edx
ja 0x405870
mov eax, dword [ebp - 0x74]
sub edx, ecx
mov byte [ebp - 4], 8
mov dword [ebp - 0x80], edx
cmp esi, eax
jne 0x40585f
sub eax, esi
cmp eax, 1
jae 0x40585f
mov eax, ecx
sub eax, esi
dec eax
cmp eax, 1
jb 0x405931
mov edx, dword [ebp - 0x74]
sub esi, ecx
sub edx, ecx
inc esi
mov eax, edx
mov dword [ebp - 0x74], edx
shr eax, 1
mov ecx, eax
add eax, edx
not ecx
xor edx, edx
cmp ecx, dword [ebp - 0x74]
lea ecx, [ebp - 0x28]
cmovae edx, eax
cmp edx, esi
cmovae esi, edx
push esi
call fcn.00404be0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 4], 8
test esi, esi
je 0x4058d9
mov byte [ebp - 4], 8
mov al, byte [ecx + edx]
jmp 0x4058d7
mov eax, dword [ebp - 0x74]
cmp esi, eax
jne 0x4058c9
sub eax, esi
cmp eax, 1
jae 0x4058c9
mov eax, ecx
sub eax, esi
dec eax
cmp eax, 1
jb 0x405931
mov edx, dword [ebp - 0x74]
sub esi, ecx
sub edx, ecx
inc esi
mov eax, edx
mov dword [ebp - 0x74], edx
shr eax, 1
mov ecx, eax
add eax, edx
not ecx
xor edx, edx
cmp ecx, dword [ebp - 0x74]
lea ecx, [ebp - 0x28]
cmovae edx, eax
cmp edx, esi
cmovae esi, edx
push esi
call fcn.00404be0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 4], 8
test esi, esi
je 0x4058d9
mov byte [ebp - 4], 8
mov al, byte [edx]
mov byte [esi], al
mov edx, dword [ebp - 0x70]
inc esi
inc edx
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x70], edx
cmp eax, edx
ja 0x4057e1
xor edx, edx
mov eax, dword [ebp - 0x84]
xor ecx, ecx
mov dword [ebp - 0x80], ecx
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x70], eax
test eax, eax
je 0x405a55
nop word [eax + eax]
cmp dword [ebp - 0x70], ecx
jbe 0x40593b
mov edx, dword [ebp - 0x84]
cmp dword [edx + 0x14], 0x10
mov edx, dword [ebp - 0x78]
jb 0x405945
mov eax, dword [ebp - 0x84]
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
jmp 0x405951
push str.vector_T__too_long
call fcn.0040cc72
push str.invalid_string_position
call fcn.0040cc92
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x70], edx
mov edx, dword [ebp - 0x78]
add ecx, dword [ebp - 0x70]
mov dword [ebp - 0x70], ecx
mov eax, dword [ebp - 0x6c]
mov byte [ebp - 4], 8
cmp ecx, edi
jae 0x4059d1
cmp edx, ecx
ja 0x4059d1
sub ecx, edx
mov byte [ebp - 4], 8
mov dword [ebp - 0x70], ecx
cmp edi, eax
jne 0x4059c0
sub eax, edi
cmp eax, 1
jae 0x4059c0
mov eax, edx
sub eax, edi
dec eax
cmp eax, 1
jb 0x405931
mov eax, dword [ebp - 0x6c]
sub edi, edx
sub eax, edx
inc edi
mov dword [ebp - 0x6c], eax
xor edx, edx
shr eax, 1
mov ecx, eax
add eax, dword [ebp - 0x6c]
not ecx
cmp ecx, dword [ebp - 0x6c]
lea ecx, [ebp - 0x1c]
cmovae edx, eax
cmp edx, edi
cmovae edi, edx
push edi
call fcn.00404be0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 8
test edi, edi
je 0x405a36
mov byte [ebp - 4], 8
mov al, byte [edx + ecx]
jmp 0x405a34
cmp edi, eax
jne 0x405a26
sub eax, edi
cmp eax, 1
jae 0x405a26
mov eax, edx
sub eax, edi
dec eax
cmp eax, 1
jb 0x405931
mov eax, dword [ebp - 0x6c]
sub edi, edx
sub eax, edx
inc edi
mov dword [ebp - 0x6c], eax
xor edx, edx
shr eax, 1
mov ecx, eax
add eax, dword [ebp - 0x6c]
not ecx
cmp ecx, dword [ebp - 0x6c]
lea ecx, [ebp - 0x1c]
cmovae edx, eax
cmp edx, edi
cmovae edi, edx
push edi
call fcn.00404be0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 8
test edi, edi
je 0x405a36
mov byte [ebp - 4], 8
mov al, byte [ecx]
mov byte [edi], al
mov eax, dword [ebp - 0x84]
inc edi
mov ecx, dword [ebp - 0x80]
inc ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x80], ecx
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x70], eax
cmp ecx, eax
jb 0x405910
push 4
mov dword [ebp - 0x8c], 0
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x88], 0
push str.code
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x9c], 0
call fcn.004044c0
mov byte [ebp - 4], 0x19
cmp dword [ebp - 0x34], 0
jne 0x405af6
cmp byte [ebp - 0x30], 0
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x34]
je 0x405acc
cmp dword [ebp - 0x38], 0x10
push eax
cmovae ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
or eax, 0x20019
push eax
push 0
push ecx
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x405af2
cmp dword [ebp - 0x38], 0x10
push 0
cmovae ecx, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x2c]
push 0
or eax, 0x2001f
push eax
push 0
push 0
push 0
push ecx
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405b22
sub esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0x88], 0x10
push esi
mov esi, dword [ebp - 0x7c]
cmovae eax, dword [ebp - 0x9c]
push esi
push 3
push 0
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x405b25
mov esi, dword [ebp - 0x7c]
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x88]
cmp eax, 0x10
jb 0x405b79
mov ecx, dword [ebp - 0x9c]
inc eax
cmp eax, 0x1000
jb 0x405b70
test cl, 0x1f
je 0x405b4c
call fcn.00460fd4
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x405b58
call fcn.00460fd4
sub ecx, eax
cmp ecx, 4
jae 0x405b64
call fcn.00460fd4
cmp ecx, 0x23
jbe 0x405b6e
call fcn.00460fd4
mov ecx, eax
push ecx
call fcn.00457b70
add esp, 4
push 4
mov dword [ebp - 0xa4], 0
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xa0], 0
push str.path
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x9c], 0
mov dword [ebp - 0xa0], 0xf
mov dword [ebp - 0xa4], 0
mov byte [ebp - 0xb4], 0
call fcn.004044c0
mov byte [ebp - 4], 0x1a
cmp dword [ebp - 0x34], 0
jne 0x405c35
cmp byte [ebp - 0x30], 0
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x34]
je 0x405c0b
cmp dword [ebp - 0x38], 0x10
push eax
cmovae ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
or eax, 0x20019
push eax
push 0
push ecx
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x405c31
cmp dword [ebp - 0x38], 0x10
push 0
cmovae ecx, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x2c]
push 0
or eax, 0x2001f
push eax
push 0
push 0
push 0
push ecx
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405c61
sub edi, dword [ebp - 0x78]
lea eax, [ebp - 0xb4]
cmp dword [ebp - 0xa0], 0x10
push edi
mov edi, dword [ebp - 0x78]
cmovae eax, dword [ebp - 0xb4]
push edi
push 3
push 0
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x405c64
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0xa0]
cmp eax, 0x10
jb 0x405cb8
mov ecx, dword [ebp - 0xb4]
inc eax
cmp eax, 0x1000
jb 0x405caf
test cl, 0x1f
je 0x405c8b
call fcn.00460fd4
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x405c97
call fcn.00460fd4
sub ecx, eax
cmp ecx, 4
jae 0x405ca3
call fcn.00460fd4
cmp ecx, 0x23
jbe 0x405cad
call fcn.00460fd4
mov ecx, eax
push ecx
call fcn.00457b70
add esp, 4
mov dword [ebp - 0xa0], 0xf
mov dword [ebp - 0xa4], 0
mov byte [ebp - 0xb4], 0
mov byte [ebp - 4], 6
test edi, edi
je 0x405d34
mov eax, dword [ebp - 0x6c]
sub eax, edi
cmp eax, 0x1000
jb 0x405d16
test byte [ebp - 0x1c], 0x1f
je 0x405cf2
call fcn.00460fd4
mov eax, dword [edi - 4]
cmp eax, edi
jb 0x405cfe
call fcn.00460fd4
sub edi, eax
cmp edi, 4
jae 0x405d0a
call fcn.00460fd4
cmp edi, 0x23
jbe 0x405d14
call fcn.00460fd4
mov edi, eax
push edi
call fcn.00457b70
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 4
test esi, esi
je 0x405d95
mov eax, dword [ebp - 0x74]
sub eax, esi
cmp eax, 0x1000
jb 0x405d77
test byte [ebp - 0x28], 0x1f
je 0x405d53
call fcn.00460fd4
mov eax, dword [esi - 4]
cmp eax, esi
jb 0x405d5f
call fcn.00460fd4
sub esi, eax
cmp esi, 4
jae 0x405d6b
call fcn.00460fd4
cmp esi, 0x23
jbe 0x405d75
call fcn.00460fd4
mov esi, eax
push esi
call fcn.00457b70
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x405dae
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x405df8
mov ecx, dword [ebp - 0x4c]
inc eax
cmp eax, 0x1000
jb 0x405def
test cl, 0x1f
je 0x405dcb
call fcn.00460fd4
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x405dd7
call fcn.00460fd4
sub ecx, eax
cmp ecx, 4
jae 0x405de3
call fcn.00460fd4
cmp ecx, 0x23
jbe 0x405ded
call fcn.00460fd4
mov ecx, eax
push ecx
call fcn.00457b70
add esp, 4
mov dword [ebp - 0x38], 0xf
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00403ef0
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.00457d74
mov esp, ebp
pop ebp
ret