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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x46d070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], esi
nop dword [eax]
push 0x80
lea eax, [ebp - 0x184]
push 0
push eax
call fcn.0043a360
add esp, 0xc
lea eax, [ebp - 0x184]
push 0x40
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x428223
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x20c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x184]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x428223
mov dword [ebp - 0x208], eax
test ebx, ebx
jne 0x42806d
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x210], ebx
push ebx
push eax
call fcn.0043a360
add esp, 0xc
mov dword [ebp - 0x214], 0x40
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push str.ENQTYPE
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42821d
push 0
lea eax, [ebp - 0x208]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
lea eax, [ebp - 0x184]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4281ea
xor esi, esi
push 0x80
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0043a360
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x224], 0x40
push 0
push eax
call fcn.0043a360
add esp, 0x18
mov dword [ebp - 0x210], 0x40
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 0
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test edi, edi
jne 0x4281d5
push 0x80
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.0043a360
add esp, 0xc
mov dword [ebp - 0x228], 0x40
lea eax, [ebp - 0x228]
mov dword [ebp - 0x22c], edi
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x22c]
push eax
push edi
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4281d5
push str.DATE
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4281ac
cmp ebx, 1
jne 0x4281ac
push 0x40
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0043a360
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x210], eax
jmp 0x4281b2
mov eax, dword [ebp - 0x210]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x214]
lea eax, [ebp - 0x104]
push 0
push eax
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc esi
test edi, edi
je 0x4280a0
mov esi, dword [ebp - 0x21c]
mov edi, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x234]
lea eax, [ebx + 1]
push eax
push dword [ebp - 0x208]
push dword [ebp - 0x20c]
call fcn.00427f70
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x218]
inc esi
mov dword [ebp - 0x21c], esi
test eax, eax
je 0x427fb0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043598e
mov esp, ebp
pop ebp
ret 0xc