Function at 0x47c650
Capabilities:
Persist via appinit_dlls registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f10
xor eax, eax
push ebp
push 0x47c8a4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0xf013f
push 0
push 0x47c8b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47c87c
mov eax, 0x80
call fcn.00402e60
mov dword [ebp - 0x18], eax
mov eax, 4
call fcn.00402e60
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0x80
xor edx, edx
push ebp
push 0x47c875
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0
push 0x47c8ec
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x47c72a
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x47c6f8
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
push ebx
mov eax, dword [ebp - 4]
call fcn.00404f20
push eax
push 1
push 0
push 0x47c8ec
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x47c723
call fcn.004044d0
jmp 0x47c87c
mov bl, 1
jmp 0x47c7b5
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x18]
call fcn.004093fc
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 8]
call fcn.004086b0
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004086b0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
call fcn.0040506c
test eax, eax
jne 0x47c7b3
cmp dword [ebp - 8], 0
je 0x47c778
push dword [ebp - 4]
push 0x47c904
push dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404e24
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x47c784
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
push ebx
mov eax, dword [ebp - 4]
call fcn.00404f20
push eax
push 1
push 0
push 0x47c8ec
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x47c7af
call fcn.004044d0
jmp 0x47c87c
mov bl, 1
jmp 0x47c7b5
mov bl, 1
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x47c908
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x47c80a
or edx, 0xffffffff
mov eax, 0x47c924
call fcn.00408cac
mov dword [ebp - 0x1c], eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push 0x47c908
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x47c806
call fcn.004044d0
jmp 0x47c87c
mov al, 1
jmp 0x47c849
cmp dword [ebp - 0x20], 1
je 0x47c847
or edx, 0xffffffff
mov eax, 0x47c924
call fcn.00408cac
mov dword [ebp - 0x1c], eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push 0x47c908
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x47c843
call fcn.004044d0
jmp 0x47c87c
mov al, 1
jmp 0x47c849
mov al, 1
and al, bl
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c87c
mov eax, dword [ebp - 0x18]
call fcn.00402e7c
mov eax, dword [ebp - 0x14]
call fcn.00402e7c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c8ab
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00404ab4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ab4
ret