Function at 0x40d610
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2c9b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x52e474]
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 - 0x40]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x7c], esi
call fcn.0040d410
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x40d664
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x71]
call fcn.00405730
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x71]
push eax
call fcn.00405730
cmp dword [edi + 0x14], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x68], xmm0
movups xmmword [ebp - 0x58], xmm0
movq qword [ebp - 0x48], xmm0
jb 0x40d69d
mov edi, dword [edi]
mov dword [ebp - 0x80], 0xf
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x94], 0
cmp byte [edi], 0
jne 0x40d6be
xor ecx, ecx
jmp 0x40d6cc
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d6c3
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x94]
call fcn.00405360
push 0xffffffffffffffff
mov byte [ebp - 4], 1
lea eax, [ebp - 0x94]
push 0
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x68], reloc.WS2_32.dll_accept
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
call fcn.00404db0
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x94]
call fcn.00404c00
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
xor edi, edi
xor edx, edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edx
movq qword [ebp - 0x28], xmm0
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 5
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x30], ecx
jbe 0x40d864
cmp dword [ebp - 0x30], ecx
jbe 0x40d8fa
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
add eax, ecx
mov dword [ebp - 0x70], eax
cmp eax, edi
jae 0x40d7f7
mov ecx, dword [ebp - 0x6c]
cmp dword [ebp - 0x1c], eax
ja 0x40d7f7
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x70], eax
cmp edi, edx
jne 0x40d7e8
mov eax, edx
sub eax, edi
cmp eax, 1
jae 0x40d7e5
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
sub eax, edi
dec eax
cmp eax, 1
jb 0x40d8f0
sub edx, ecx
sub edi, ecx
mov eax, edx
mov dword [ebp - 0x78], edx
shr eax, 1
inc edi
mov ecx, eax
add eax, edx
not ecx
xor edx, edx
cmp ecx, dword [ebp - 0x78]
lea ecx, [ebp - 0x1c]
cmovae edx, eax
cmp edx, edi
cmovae edi, edx
push edi
call fcn.0040d2d0
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
test edi, edi
je 0x40d851
mov ecx, dword [ebp - 0x1c]
mov al, byte [eax + ecx]
mov ecx, dword [ebp - 0x6c]
jmp 0x40d84f
cmp edi, edx
jne 0x40d849
mov eax, edx
sub eax, edi
cmp eax, 1
jae 0x40d846
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
sub eax, edi
dec eax
cmp eax, 1
jb 0x40d8f0
sub edx, ecx
sub edi, ecx
mov eax, edx
mov dword [ebp - 0x78], edx
shr eax, 1
inc edi
mov ecx, eax
add eax, edx
not ecx
xor edx, edx
cmp ecx, dword [ebp - 0x78]
lea ecx, [ebp - 0x1c]
cmovae edx, eax
cmp edx, edi
cmovae edi, edx
push edi
call fcn.0040d2d0
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
test edi, edi
je 0x40d851
mov al, byte [eax]
mov byte [edi], al
inc ecx
inc edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x30], ecx
ja 0x40d774
xor ecx, ecx
mov edx, dword [ebp - 0x7c]
xor eax, eax
mov dword [ebp - 0x78], eax
mov edx, dword [edx + 0x10]
test edx, edx
je 0x40d96e
cmp edx, eax
jbe 0x40d8fa
mov edx, dword [ebp - 0x7c]
cmp dword [edx + 0x14], 0x10
jb 0x40d886
mov edx, dword [edx]
add eax, edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x6c], eax
cmp eax, esi
jae 0x40d904
cmp edx, eax
ja 0x40d904
sub eax, edx
mov dword [ebp - 0x6c], eax
cmp esi, ecx
jne 0x40d8e7
mov eax, ecx
sub eax, esi
cmp eax, 1
jae 0x40d8e4
mov eax, edx
sub eax, esi
dec eax
cmp eax, 1
jb 0x40d8f0
sub ecx, edx
sub esi, edx
mov eax, ecx
mov dword [ebp - 0x70], ecx
shr eax, 1
inc esi
mov ecx, eax
xor edx, edx
add eax, dword [ebp - 0x70]
not ecx
cmp ecx, dword [ebp - 0x70]
lea ecx, [ebp - 0x28]
cmovae edx, eax
cmp edx, esi
cmovae esi, edx
push esi
call fcn.0040d2d0
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x6c]
test esi, esi
je 0x40d955
mov al, byte [eax + edx]
jmp 0x40d953
push str.vector_T__too_long
call fcn.0044410a
push str.invalid_string_position
call fcn.0044412a
cmp esi, ecx
jne 0x40d94d
mov eax, ecx
sub eax, esi
cmp eax, 1
jae 0x40d94a
mov eax, edx
sub eax, esi
dec eax
cmp eax, 1
jb 0x40d8f0
sub ecx, edx
sub esi, edx
mov eax, ecx
mov dword [ebp - 0x70], ecx
shr eax, 1
inc esi
mov ecx, eax
xor edx, edx
add eax, dword [ebp - 0x70]
not ecx
cmp ecx, dword [ebp - 0x70]
lea ecx, [ebp - 0x28]
cmovae edx, eax
cmp edx, esi
cmovae esi, edx
push esi
call fcn.0040d2d0
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x6c]
test esi, esi
je 0x40d955
mov al, byte [eax]
mov byte [esi], al
mov edx, dword [ebp - 0x7c]
inc esi
mov eax, dword [ebp - 0x78]
inc eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x78], eax
mov edx, dword [edx + 0x10]
cmp edx, eax
ja 0x40d87b
push 4
push str.code
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x80], 0xf
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x94], 0
call fcn.00405360
lea ecx, [ebp - 0x68]
call fcn.0040d130
test al, al
je 0x40d9ca
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x94]
sub edi, ecx
cmp dword [ebp - 0x80], 0x10
push edi
cmovae eax, dword [ebp - 0x94]
push ecx
push 3
push 0
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x94]
call fcn.00404c00
push 4
push str.path
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x80], 0xf
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x94], 0
call fcn.00405360
lea ecx, [ebp - 0x68]
call fcn.0040d130
test al, al
je 0x40da31
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x94]
sub esi, ecx
cmp dword [ebp - 0x80], 0x10
push esi
cmovae eax, dword [ebp - 0x94]
push ecx
push 3
push 0
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x94]
call fcn.00404c00
lea ecx, [ebp - 0x28]
call fcn.0040d200
lea ecx, [ebp - 0x1c]
call fcn.0040d200
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x40da61
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x64]
call fcn.00404c00
lea ecx, [ebp - 0x40]
call fcn.00404c00
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.00491b3a
mov esp, ebp
pop ebp
ret