Function at 0x413870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad535
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x620024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
call fcn.00449b3d
mov ecx, eax
test ecx, ecx
je 0x413b2a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0
push 0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00402d30
mov byte [ebp - 4], 3
call fcn.00449b3d
mov ecx, eax
test ecx, ecx
je 0x413b34
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0
push 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00402d30
mov byte [ebp - 4], 5
push 0x5c
push dword [ebp + 0xc]
call fcn.00587ca4
add esp, 8
test eax, eax
jne 0x413911
or eax, 0xffffffff
jmp 0x413916
sub eax, dword [ebp + 0xc]
sar eax, 1
inc eax
lea ecx, [ebp + 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00415fc0
mov byte [ebp - 4], 6
or ebx, 0xffffffff
mov ecx, dword [eax]
mov esi, dword [ebp - 0x10]
lea edx, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp edx, edi
je 0x413982
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x413973
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x413973
push edx
call fcn.00405670
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x41396b
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
jmp 0x413982
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00402d30
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4139a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5c
push dword [ebp + 0xc]
call fcn.00587ca4
mov ecx, dword [ebp + 0xc]
add esp, 8
test eax, eax
jne 0x4139b9
or eax, 0xffffffff
jmp 0x4139bd
sub eax, ecx
sar eax, 1
lea edx, [eax + 1]
mov eax, dword [ecx - 0xc]
sub eax, edx
lea ecx, [ebp + 0xc]
push eax
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00416150
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x14]
lea edx, [eax - 0x10]
lea ecx, [edi - 0x10]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x24], ecx
cmp edx, ecx
je 0x413a3b
cmp dword [ecx + 0xc], 0
jl 0x413a29
mov edi, dword [ebp - 0x24]
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x413a29
push edx
call fcn.00405670
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, ebx
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413a21
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
jmp 0x413a38
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
call fcn.00402d30
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 5
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413a53
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
push eax
push 0x20006
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413aa3
mov eax, dword [ebp + 0x10]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp + 8], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x413a77
sub edx, dword [ebp + 8]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x413abe
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x413ad9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413af7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x413b16
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00403300
push 0x80004005
call fcn.00403300
int3