Function at 0x413ba0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42abe6
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x43b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x244], ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x238], 0x100
nop dword [eax + eax]
lea eax, [ebp - 0x250]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x413d68
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x23c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x244]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, dword [ebp - 0x220]
test eax, eax
jne 0x413d1a
test ecx, ecx
je 0x413c92
push ecx
call esi
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], 0
test eax, eax
jne 0x413d1a
push 0xf013f
lea eax, [ebp - 0x210]
push eax
push dword [ebx]
lea ecx, [ebp - 0x234]
call fcn.004035a0
test eax, eax
jne 0x413ce5
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x220]
call fcn.00413ba0
mov dword [ebp - 0x238], 0x100
inc edi
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x413cfc
push eax
call esi
mov dword [ebp - 0x234], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x230], 0
test eax, eax
je 0x413d59
push eax
jmp 0x413d4d
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x413d37
push eax
call esi
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x413d59
push ecx
call esi
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
jmp 0x413bf0
push 0x400
mov dword [ebp - 0x238], 0x100
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x214], 0x400
mov dword [ebp - 0x24c], 0x400
call fcn.00416873
mov edi, eax
mov dword [ebp - 0x228], 0x100
xor ecx, ecx
mov dword [ebp - 0x248], 0x100
mov eax, 0x100
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416873
add esp, 8
mov esi, eax
lea eax, [ebp - 0x228]
push 0
push 0
push 0
push 0
push eax
push esi
push 0
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x413e4b
cmp eax, 0xea
jne 0x413e76
push esi
call fcn.00416865
mov eax, dword [ebp - 0x228]
xor ecx, ecx
mov dword [ebp - 0x248], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416873
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x224]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x228]
push ecx
push esi
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x413df1
push edi
call fcn.00416865
push esi
call fcn.00416865
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416148
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x214]
push eax
push edi
lea eax, [ebp - 0x240]
push eax
push 0
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x413ece
push edi
call fcn.00416865
mov eax, dword [ebp - 0x214]
push eax
mov dword [ebp - 0x24c], eax
call fcn.00416873
add esp, 8
mov edi, eax
lea eax, [ebp - 0x214]
push eax
push edi
lea eax, [ebp - 0x240]
push eax
push 0
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413e25
push dword [ebp - 0x214]
push edi
push dword [ebp - 0x240]
push eax
mov eax, dword [ebp - 0x244]
push esi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x224]
inc eax
mov dword [ebp - 0x224], eax
jmp 0x413e2b