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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4960d7
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x4a93dc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x206
lea edx, [ebp - 0x21a]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x4c0], eax
mov dword [ebp - 0x4bc], ebx
mov word [ebp - 0x21c], cx
call fcn.00489270
mov eax, 7
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x4c8], 0x104
mov dword [ebp - 0x4c4], ebx
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x444], ebx
mov word [ebp - 0x454], cx
mov dword [ebp - 4], ebx
xor edx, edx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x428], ebx
mov word [ebp - 0x438], dx
mov byte [ebp - 4], 1
mov dword [ebp - 0x45c], eax
xor eax, eax
mov word [ebp - 0x470], ax
push 8
mov eax, 0x4a3f7c
lea esi, [ebp - 0x470]
mov dword [ebp - 0x460], ebx
call fcn.00401d40
mov ecx, esi
push ecx
mov eax, 0x49a32c
lea ecx, [ebp - 0x4a8]
mov byte [ebp - 4], 2
call fcn.00478740
push eax
mov eax, 0x4a413c
lea ecx, [ebp - 0x48c]
mov byte [ebp - 4], 3
call fcn.00478740
add esp, 8
mov edi, eax
lea esi, [ebp - 0x438]
mov byte [ebp - 4], 4
call fcn.004019e0
mov edi, 8
cmp dword [ebp - 0x478], edi
jb 0x47ad96
mov edx, dword [ebp - 0x48c]
push edx
call fcn.00480861
add esp, 4
xor eax, eax
mov esi, 7
mov dword [ebp - 0x478], esi
mov dword [ebp - 0x47c], ebx
mov word [ebp - 0x48c], ax
cmp dword [ebp - 0x494], edi
jb 0x47adc7
mov ecx, dword [ebp - 0x4a8]
push ecx
call fcn.00480861
add esp, 4
xor edx, edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x494], esi
mov dword [ebp - 0x498], ebx
mov word [ebp - 0x4a8], dx
cmp dword [ebp - 0x45c], edi
jb 0x47adf7
mov eax, dword [ebp - 0x470]
push eax
call fcn.00480861
add esp, 4
mov eax, dword [ebp - 0x438]
cmp dword [ebp - 0x424], edi
jae 0x47ae0b
lea eax, [ebp - 0x438]
lea ecx, [ebp - 0x4bc]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x47afa0
lea edx, [ebp - 0x4b8]
push edx
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
je 0x47ae84
cmp dword [ebp - 0x424], edi
jb 0x47ae4e
mov eax, dword [ebp - 0x438]
push eax
call fcn.00480861
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x428], ebx
mov word [ebp - 0x438], cx
cmp dword [ebp - 0x440], edi
jb 0x47ae7a
mov edx, dword [ebp - 0x454]
push edx
call fcn.00480861
add esp, 4
mov eax, 1
jmp 0x47b080
push 0xff
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x4b8]
push ecx
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x47aeee
cmp dword [ebp - 0x424], edi
jb 0x47aeb8
mov edx, dword [ebp - 0x438]
push edx
call fcn.00480861
add esp, 4
xor eax, eax
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x428], ebx
mov word [ebp - 0x438], ax
cmp dword [ebp - 0x440], edi
jb 0x47aee4
mov ecx, dword [ebp - 0x454]
push ecx
call fcn.00480861
add esp, 4
mov eax, 2
jmp 0x47b080
lea eax, [ebp - 0x41c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47aef7
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x41c]
lea esi, [ebp - 0x454]
call fcn.00401d40
mov eax, dword [ebp - 0x438]
cmp dword [ebp - 0x424], edi
jae 0x47af2c
lea eax, [ebp - 0x438]
lea edx, [ebp - 0x4bc]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x47b09e
mov eax, dword [ebp - 0x454]
cmp dword [ebp - 0x440], edi
jae 0x47af5b
lea eax, [ebp - 0x454]
mov ecx, dword [ebp - 0x444]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0x4bc]
push 1
push ebx
push str.GUID
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x47b09e
mov esi, dword [ebp - 0x4c0]
push ebx
lea ecx, [ebp - 0x454]
add esi, 0x4c
push ecx
or eax, 0xffffffff
mov ecx, esi
call fcn.00401a50
jmp 0x47aff7
mov ecx, dword [ebp - 0x4bc]
lea edx, [ebp - 0x4c8]
push edx
lea eax, [ebp - 0x21c]
push eax
push ebx
push ebx
push str.GUID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47b0a3
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47afd3
mov esi, dword [ebp - 0x4c0]
sub eax, edx
sar eax, 1
push eax
add esi, 0x4c
lea eax, [ebp - 0x21c]
call fcn.00401d40
mov eax, dword [esi + 0x10]
push 0x49a07c
xor edi, edi
mov ecx, esi
call fcn.00402aa0
test eax, eax
jne 0x47b01e
push ebx
lea edx, [ebp - 0x454]
push edx
or eax, 0xffffffff
mov ecx, esi
call fcn.00401a50
mov esi, 7
lea edi, [esi + 1]
mov eax, dword [ebp - 0x4bc]
cmp eax, ebx
je 0x47b037
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x424], edi
jb 0x47b04e
mov eax, dword [ebp - 0x438]
push eax
call fcn.00480861
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x428], ebx
mov word [ebp - 0x438], cx
cmp dword [ebp - 0x440], edi
jb 0x47b07a
mov edx, dword [ebp - 0x454]
push edx
call fcn.00480861
add esp, 4
mov eax, dword [ebp - 0x4c4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048036c
mov esp, ebp
pop ebp
ret 4
mov esi, 7
mov dword [ebp - 0x4c4], 3
jmp 0x47b026