Function at 0x4170e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551100
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5ba6c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0042e490
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x417124
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
mov edx, dword [ebp + 8]
cmp edx, ebx
jne 0x417145
xor eax, eax
jmp 0x417159
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x417150
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x10]
call fcn.004017f0
mov edi, dword [ebp - 0x10]
mov eax, edi
lea edx, [eax + 1]
jmp 0x417170
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x417170
sub eax, edx
push eax
push edi
call fcn.00407660
mov dword [ebp - 0x14], eax
inc eax
push eax
call fcn.0042d6c3
mov ecx, dword [ebp - 0x14]
inc ecx
push ecx
mov esi, eax
push ebx
push esi
call fcn.0052f600
mov eax, edi
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4171a0
lea edx, [ebp - 0x14]
push edx
sub eax, ecx
push esi
push eax
push edi
call fcn.00407720
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 2
push 0x5bc068
lea eax, [ebp - 0x18]
push str.SOFTWAREMicrosoft_
push eax
call fcn.00416de0
add esp, 0x1c
mov byte [ebp - 4], 3
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp + 8]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push SysReAllocStringLen
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x417214
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ebx
cmp eax, ebx
sete byte [ebp + 0xb]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41723b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp + 0xb], bl
je 0x417286
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
jne 0x417255
push 0x80004005
call fcn.00401000
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push ebx
push 0x5659d4
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push ebx
push str.extcount
push edi
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call fcn.0042d6ce
add esp, 4
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x4172a1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4172ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4