Function at 0x407640
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494088
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4d53a4]
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 - 0x4c]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x84], esi
call fcn.004073f0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x407697
mov esi, dword [esi]
push eax
push esi
call fcn.00407bc0
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
push dword [ebp - 0x3c]
cmovae eax, dword [ebp - 0x4c]
push eax
call fcn.00407bc0
cmp dword [edi + 0x14], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x74], xmm0
movups xmmword [ebp - 0x64], xmm0
movq qword [ebp - 0x54], xmm0
jb 0x4076ca
mov edi, dword [edi]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
cmp byte [edi], 0
jne 0x4076e5
xor ecx, ecx
jmp 0x4076f9
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4076f0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x34]
call fcn.00404530
push 0xffffffffffffffff
mov byte [ebp - 4], 1
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.004040b0
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x407790
mov ecx, dword [ebp - 0x34]
inc eax
cmp eax, 0x1000
jb 0x407787
test cl, 0x1f
je 0x407763
call fcn.0047ade1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40776f
call fcn.0047ade1
sub ecx, eax
cmp ecx, 4
jae 0x40777b
call fcn.0047ade1
cmp ecx, 0x23
jbe 0x407785
call fcn.0047ade1
mov ecx, eax
push ecx
call fcn.0047072d
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], 5
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x3c], eax
jbe 0x4078ba
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x28]
cmovae eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x80]
mov dword [ebp - 0x78], eax
cmp eax, edi
jae 0x407850
cmp ecx, eax
ja 0x407850
sub eax, ecx
mov dword [ebp - 0x78], eax
cmp edi, edx
jne 0x407847
mov eax, edx
sub eax, edi
cmp eax, 1
jae 0x407844
mov eax, ecx
sub eax, edi
dec eax
cmp eax, 1
jb 0x407950
sub edx, ecx
sub edi, ecx
mov eax, edx
mov dword [ebp - 0x7c], edx
shr eax, 1
inc edi
mov ecx, eax
add eax, edx
not ecx
xor edx, edx
cmp ecx, dword [ebp - 0x7c]
lea ecx, [ebp - 0x28]
cmovae edx, eax
cmp edx, edi
cmovae edi, edx
push edi
call fcn.00407310
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x78]
test edi, edi
je 0x4078a4
mov al, byte [eax + ecx]
jmp 0x4078a2
cmp edi, edx
jne 0x40789c
mov eax, edx
sub eax, edi
cmp eax, 1
jae 0x407899
mov eax, ecx
sub eax, edi
dec eax
cmp eax, 1
jb 0x407950
sub edx, ecx
sub edi, ecx
mov eax, edx
mov dword [ebp - 0x7c], edx
shr eax, 1
inc edi
mov ecx, eax
add eax, edx
not ecx
xor edx, edx
cmp ecx, dword [ebp - 0x7c]
lea ecx, [ebp - 0x28]
cmovae edx, eax
cmp edx, edi
cmovae edi, edx
push edi
call fcn.00407310
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x78]
test edi, edi
je 0x4078a4
mov al, byte [eax]
mov byte [edi], al
mov eax, dword [ebp - 0x80]
inc edi
inc eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x3c], eax
ja 0x4077d7
xor ecx, ecx
mov edx, dword [ebp - 0x84]
xor eax, eax
mov dword [ebp - 0x80], eax
mov edx, dword [edx + 0x10]
test edx, edx
je 0x4079d1
cmp edx, eax
jbe 0x40795a
mov edx, dword [ebp - 0x84]
cmp dword [edx + 0x14], 0x10
jb 0x4078e6
mov edx, dword [edx]
add eax, edx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x7c], eax
cmp eax, esi
jae 0x407964
cmp edx, eax
ja 0x407964
sub eax, edx
mov dword [ebp - 0x7c], eax
cmp esi, ecx
jne 0x407947
mov eax, ecx
sub eax, esi
cmp eax, 1
jae 0x407944
mov eax, edx
sub eax, esi
dec eax
cmp eax, 1
jb 0x407950
sub ecx, edx
sub esi, edx
mov eax, ecx
mov dword [ebp - 0x78], ecx
shr eax, 1
inc esi
mov ecx, eax
xor edx, edx
add eax, dword [ebp - 0x78]
not ecx
cmp ecx, dword [ebp - 0x78]
lea ecx, [ebp - 0x1c]
cmovae edx, eax
cmp edx, esi
cmovae esi, edx
push esi
call fcn.00407310
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x7c]
test esi, esi
je 0x4079b5
mov al, byte [eax + edx]
jmp 0x4079b3
push str.vector_T__too_long
call fcn.0042f118
push str.invalid_string_position
call fcn.0042f138
cmp esi, ecx
jne 0x4079ad
mov eax, ecx
sub eax, esi
cmp eax, 1
jae 0x4079aa
mov eax, edx
sub eax, esi
dec eax
cmp eax, 1
jb 0x407950
sub ecx, edx
sub esi, edx
mov eax, ecx
mov dword [ebp - 0x78], ecx
shr eax, 1
inc esi
mov ecx, eax
xor edx, edx
add eax, dword [ebp - 0x78]
not ecx
cmp ecx, dword [ebp - 0x78]
lea ecx, [ebp - 0x1c]
cmovae edx, eax
cmp edx, esi
cmovae esi, edx
push esi
call fcn.00407310
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x7c]
test esi, esi
je 0x4079b5
mov al, byte [eax]
mov byte [esi], al
mov edx, dword [ebp - 0x84]
inc esi
mov eax, dword [ebp - 0x80]
inc eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x80], eax
mov edx, dword [edx + 0x10]
cmp edx, eax
ja 0x4078d8
push 4
push str.code
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x9c], 0
call fcn.00404530
lea ecx, [ebp - 0x74]
call fcn.00407170
test al, al
je 0x407a33
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x9c]
sub edi, ecx
cmp dword [ebp - 0x88], 0x10
push edi
cmovae eax, dword [ebp - 0x9c]
push ecx
push 3
push 0
push eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x9c]
call fcn.00403f90
push 4
push str.path
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x9c], 0
call fcn.00404530
lea ecx, [ebp - 0x74]
call fcn.00407170
test al, al
je 0x407aa0
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x9c]
sub esi, ecx
cmp dword [ebp - 0x88], 0x10
push esi
cmovae eax, dword [ebp - 0x9c]
push ecx
push 3
push 0
push eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x9c]
call fcn.00403f90
lea ecx, [ebp - 0x1c]
call fcn.00407220
lea ecx, [ebp - 0x28]
call fcn.00407220
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x407ad0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x70]
call fcn.00403f90
lea ecx, [ebp - 0x4c]
call fcn.00403f90
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.00470931
mov esp, ebp
pop ebp
ret