Function at 0x41940a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
mov eax, dword [ebp + 0x14]
push eax
call fcn.0041ac20
add esp, 4
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004017c7
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 8]
push edx
call fcn.0041ac20
add esp, 4
mov esi, eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041ac20
add esp, 4
add esi, eax
imul esi, esi, 3
add esi, 0xf
push esi
call fcn.004017c7
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00419708
add esp, 0x10
lea edx, [ebp - 4]
push edx
push 0x428984
push bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x41949a
mov eax, 1
jmp 0x419703
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x419697
cmp dword [ebp - 0xc], 0xea
je 0x419697
push 0x4289ac
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041ab50
add esp, 8
test eax, eax
jne 0x419697
push 0x4289b0
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0041b7c0
add esp, 8
mov edx, dword [ebp - 0x20]
lea eax, [edx + eax + 1]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x18]
add ecx, 0xa
push ecx
call fcn.004017c7
add esp, 4
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x419697
cmp dword [ebp - 8], 1
jne 0x419697
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
jmp 0x419573
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x34], 2
jge 0x41965d
mov edx, dword [ebp - 0x2c]
mov byte [edx], 0x30
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov byte [ecx], 0x78
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
push 0x4289b4
mov eax, dword [ebp - 0x30]
push eax
call fcn.0041b7c0
add esp, 8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x3c]
sub ecx, 1
xor ecx, 3
mov edx, dword [ebp - 0x30]
movsx eax, byte [edx + ecx]
cmp eax, 0x30
jne 0x4195e4
cmp dword [ebp - 0x3c], 1
jle 0x4195e4
mov ecx, dword [ebp - 0x3c]
sub ecx, 1
mov dword [ebp - 0x3c], ecx
jmp 0x4195be
mov dword [ebp - 0x38], 0
jmp 0x4195f6
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x3c]
jge 0x41961b
mov ecx, dword [ebp - 0x38]
xor ecx, 3
mov edx, dword [ebp - 0x3c]
sub edx, 1
sub edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
mov cl, byte [esi + ecx]
mov byte [eax + edx], cl
jmp 0x4195ed
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
lea edx, [ecx + eax*4]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
movsx ecx, byte [eax]
test ecx, ecx
je 0x419652
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x2c]
mov byte [eax], 0x2c
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov byte [edx], 0
jmp 0x41956a
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0041ab50
add esp, 8
test eax, eax
jne 0x419697
mov edx, dword [ebp - 0x14]
push edx
call fcn.0041ac20
add esp, 4
add eax, 1
push eax
mov eax, dword [ebp - 0x14]
push eax
push 1
push 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0041ab50
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040184a
add esp, 4
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0040184a
add esp, 4
cmp dword [ebp - 0xc], 0xea
je 0x4196e7
cmp dword [ebp - 0xc], 0
jne 0x4196ee
cmp dword [ebp - 8], 1
jne 0x4196ee
cmp dword [ebp - 0x1c], 0
je 0x4196ee
mov eax, 2
jmp 0x419703
cmp dword [ebp - 0xc], 0
jne 0x4196fa
cmp dword [ebp - 8], 1
je 0x419701
mov eax, 1
jmp 0x419703
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret