Function at 0x416ae2
Capabilities:
Set registry value

Disassembly:
push 0x860
mov eax, 0x437eb2
call fcn.004220d8
mov ebx, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x85c], esi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], esi
mov dword [ebp - 0x84c], ebx
mov dword [ebp - 0x838], ecx
mov byte [ecx], 0
mov eax, dword [ebx + 0x1b94]
sub eax, dword [ebx + 0x1b90]
push 0x24
cdq
pop edi
idiv edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x85c], 1
mov dword [ebp - 0x840], esi
test eax, eax
je 0x416dfa
mov dword [ebp - 0x86c], esi
mov dword [ebp - 0x848], esi
mov edi, str._CONNECTION_
mov esi, str.__CONNECTION_
jmp 0x416b62
mov ebx, dword [ebp - 0x84c]
mov ebx, dword [ebx + 0x1b90]
add ebx, dword [ebp - 0x848]
lea ecx, [ebp - 0x834]
push ebx
call fcn.00415cb4
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x818], eax
mov bl, byte [ebx + 0x20]
mov byte [ebp - 0x814], bl
mov eax, dword [0x44a014]
mov dword [ebp - 4], 1
mov dword [ebp - 0x844], eax
cmp dword [ebp - 0x820], 0x10
mov eax, dword [ebp - 0x834]
mov byte [ebp - 4], 2
jae 0x416bb7
lea eax, [ebp - 0x834]
movzx ecx, bl
push ecx
push eax
lea eax, [ebp - 0x844]
push str._s__d
push eax
call fcn.00403397
add esp, 0xc
mov ecx, esp
mov dword [ebp - 0x854], esp
push 0x43b916
call fcn.00401d7c
lea eax, [ebp - 0x844]
push eax
call fcn.00415dba
pop ecx
pop ecx
push dword [ebp - 0x844]
lea ecx, [ebp - 0x868]
call fcn.0040144c
mov ecx, dword [ebp - 0x84c]
push eax
lea eax, [ebp - 0x83c]
push eax
mov byte [ebp - 4], 3
call fcn.00414cf1
push dword [ebp - 0x868]
mov byte [ebp - 4], 5
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call fcn.00421060
pop ecx
mov ecx, dword [ebp - 0x838]
push eax
push edi
call fcn.00401c4a
push dword [ebp - 0x83c]
lea ecx, [ebp - 0x860]
call fcn.00402f3c
mov ebx, dword [eax]
push ebx
mov byte [ebp - 4], 6
call fcn.00421060
pop ecx
mov ecx, dword [ebp - 0x838]
push eax
push ebx
call fcn.00401c4a
lea ecx, [ebp - 0x860]
mov byte [ebp - 4], 5
call fcn.0040147e
push esi
call fcn.00421060
pop ecx
mov ecx, dword [ebp - 0x838]
push eax
push esi
call fcn.00401c4a
mov eax, dword [0x44a014]
mov dword [ebp - 0x850], eax
push dword [ebp - 0x840]
lea eax, [ebp - 0x850]
push str.conn_d
push eax
mov byte [ebp - 4], 7
call fcn.00403397
mov ebx, 0x400
push ebx
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00422690
add esp, 0x18
mov byte [ebp - 4], 8
lea eax, [ebp - 0x858]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlLockGUID
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416d8c
lea eax, [ebp - 0x83c]
push eax
call fcn.00415c2d
mov eax, dword [ebp - 0x83c]
pop ecx
mov dword [ebp - 0x854], eax
test eax, eax
je 0x416d1d
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x416d21
xor eax, eax
jmp 0x416d44
add eax, eax
mov dword [ebp - 0x864], eax
call fcn.004230b0
mov eax, esp
push 3
push dword [ebp - 0x864]
push dword [ebp - 0x854]
push eax
call fcn.0040590f
push eax
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.0042262c
lea eax, [ebp - 0x410]
push eax
call fcn.00421060
add esp, 0x10
inc eax
push eax
lea eax, [ebp - 0x410]
push eax
push 2
push 0
push dword [ebp - 0x850]
push dword [ebp - 0x858]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x858]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0
call ebx
lea ecx, [ebp - 0x850]
call fcn.0040147e
push dword [ebp - 0x83c]
call ebx
lea ecx, [ebp - 0x844]
call fcn.0040147e
lea ecx, [ebp - 0x834]
mov byte [ebp - 4], 0
call fcn.00415a68
mov ecx, dword [ebp - 0x84c]
mov eax, dword [ecx + 0x1b94]
sub eax, dword [ecx + 0x1b90]
push 0x24
cdq
pop ecx
idiv ecx
inc dword [ebp - 0x840]
add dword [ebp - 0x848], 0x24
cmp dword [ebp - 0x840], eax
jb 0x416b5c
mov ecx, dword [ebp - 0x838]
mov eax, ecx
lea esp, [ebp - 0x87c]
call fcn.0042215b
ret 4