Function at 0x416110
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5ad1d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa3c
push ebp
mov ebp, ecx
push esi
xor esi, esi
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x1c], esi
cmp eax, esi
jle 0x4164c2
push ebx
push edi
xor ebx, ebx
mov eax, dword [ebp + 0x24]
add eax, ebx
mov ecx, dword [eax]
cmp dword [ecx + 0x1c], esi
jle 0x4164a9
mov edx, ecx
lea ecx, [esp + 0x64c]
push ecx
lea ecx, [esp + 0x850]
mov eax, dword [edx + 0x18]
lea edx, [esp + 0x450]
push edx
lea edx, [esp + 0x34]
mov eax, dword [eax]
push ecx
push edx
push eax
call fcn.0057f69a
add esp, 0x14
mov edx, dword [ebp + 0x18]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x44c]
push esi
push eax
push esi
push 0xf003f
push esi
push 0x679a2c
push esi
push ecx
push edx
mov dword [esp + 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4161f0
lea ecx, [esp + 0x240]
call fcn.00480870
push 1
push 0x6512dc
lea ecx, [esp + 0x248]
mov dword [esp + 0xa5c], esi
call fcn.00480980
lea ecx, [esp + 0x240]
mov dword [esp + 0xa54], 0xffffffff
call fcn.00480970
jmp 0x4164a9
mov eax, dword [ebp + 0x24]
add eax, ebx
mov ecx, dword [eax]
xor eax, eax
mov edx, ecx
mov edi, dword [ecx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [edx]
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
not ecx
push ecx
push edx
push 1
push esi
push 0x64f5d8
push eax
call edi
mov ecx, dword [ebp + 0x24]
push 4
mov edx, dword [ebx + ecx]
lea ecx, [esp + 0x24]
push ecx
push 4
mov eax, dword [edx + 0xc]
mov edx, dword [esp + 0x24]
push esi
push 0x64f5d4
push edx
mov dword [esp + 0x38], eax
call edi
mov eax, dword [ebp + 0x24]
push 4
mov ecx, dword [ebx + eax]
lea eax, [esp + 0x24]
push eax
push 4
mov edx, dword [ecx + 0x10]
mov ecx, dword [esp + 0x24]
push esi
push 0x64fb48
push ecx
mov dword [esp + 0x38], edx
call edi
mov edx, dword [ebp + 0x24]
xor edi, edi
mov dword [esp + 0x28], edi
mov eax, dword [ebx + edx]
cmp dword [eax + 0x1c], esi
jle 0x416493
mov ecx, dword [0x6754d4]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], ecx
push edi
lea edx, [esp + 0x20]
push 0x64eff4
push edx
mov dword [esp + 0xa60], 1
call fcn.00593b08
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push 0
push eax
push 0
push 0xf003f
push 0
push 0x679a28
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41631e
lea ecx, [esp + 0x34]
call fcn.00480870
push 1
push 0x6512ac
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa5c], 2
call fcn.00480980
lea ecx, [esp + 0x34]
mov byte [esp + 0xa54], 1
call fcn.00480970
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa54], 0xffffffff
call fcn.0059ad3d
jmp 0x41647a
mov eax, dword [ebp + 0x24]
add eax, ebx
mov ecx, dword [eax]
mov eax, dword [eax]
mov edx, dword [ecx + 0x18]
mov eax, dword [eax + 0x18]
add eax, esi
mov ecx, dword [edx + esi]
mov edi, dword [eax]
push ecx
call fcn.0057e90a
mov edx, dword [esp + 0x18]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push 0x64fe74
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp + 0x24]
add eax, ebx
mov ecx, dword [eax]
mov eax, ecx
mov edx, dword [ecx + 0x18]
or ecx, 0xffffffff
mov eax, dword [eax + 0x18]
mov edi, dword [edx + esi + 4]
add eax, esi
mov edx, dword [eax + 4]
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
not ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 1
push eax
push 0x64fe6c
push ecx
call edi
mov edx, dword [ebp + 0x24]
push 4
mov eax, dword [ebx + edx]
mov ecx, dword [eax + 0x18]
lea eax, [esp + 0x14]
push eax
push 4
mov edx, dword [ecx + esi + 0xc]
mov ecx, dword [esp + 0x20]
push 0
push 0x64fe60
push ecx
mov dword [esp + 0x28], edx
call edi
mov edx, dword [ebp + 0x24]
push 4
mov eax, dword [ebx + edx]
mov ecx, dword [eax + 0x18]
lea eax, [esp + 0x14]
push eax
push 4
mov edx, dword [ecx + esi + 0x10]
mov ecx, dword [esp + 0x20]
push 0
push 0x64fe4c
push ecx
mov dword [esp + 0x28], edx
call edi
mov edx, dword [ebp + 0x24]
push 4
mov eax, dword [ebx + edx]
mov ecx, dword [eax + 0x18]
lea eax, [esp + 0x14]
push eax
push 4
mov edx, dword [ecx + esi + 0x14]
push 0
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x24]
push 0x64fe38
push ecx
call edi
mov edx, dword [ebp + 0x24]
push 4
mov eax, dword [ebx + edx]
mov ecx, dword [eax + 0x18]
lea eax, [esp + 0x14]
push eax
push 4
mov edx, dword [ecx + esi + 8]
mov ecx, dword [esp + 0x20]
push 0
push 0x64fe20
push ecx
mov dword [esp + 0x28], edx
call edi
mov edx, dword [ebp + 0x24]
push 4
mov eax, dword [ebx + edx]
mov ecx, dword [eax + 0x18]
lea eax, [esp + 0x14]
push eax
push 4
mov edx, dword [ecx + esi + 0x20]
mov ecx, dword [esp + 0x20]
push 0
push 0x64fe18
push ecx
mov dword [esp + 0x28], edx
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa54], 0xffffffff
call fcn.0059ad3d
mov edi, dword [esp + 0x28]
mov eax, dword [ebp + 0x24]
inc edi
add esi, 0x24
mov dword [esp + 0x28], edi
mov ecx, dword [ebx + eax]
cmp edi, dword [ecx + 0x1c]
jl 0x416278
xor esi, esi
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x28]
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x416144
pop edi
pop ebx
mov ecx, dword [esp + 0xa44]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xa48
ret