Function at 0x47c3d4
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 0x47c628
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0xf013f
push 0
push 0x47c638
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47c600
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 0x47c5f9
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 0x47c670
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x47c4ae
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x47c47c
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 0x47c670
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x47c4a7
call fcn.004044d0
jmp 0x47c600
mov bl, 1
jmp 0x47c539
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x18]
call fcn.0040942c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 8]
call fcn.004086e0
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004086e0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
call fcn.0040506c
test eax, eax
jne 0x47c537
cmp dword [ebp - 8], 0
je 0x47c4fc
push dword [ebp - 4]
push 0x47c688
push dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404e24
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x47c508
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 0x47c670
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x47c533
call fcn.004044d0
jmp 0x47c600
mov bl, 1
jmp 0x47c539
mov bl, 1
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x47c68c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x47c58e
or edx, 0xffffffff
mov eax, 0x47c6a8
call fcn.00408cdc
mov dword [ebp - 0x1c], eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push 0x47c68c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x47c58a
call fcn.004044d0
jmp 0x47c600
mov al, 1
jmp 0x47c5cd
cmp dword [ebp - 0x20], 1
je 0x47c5cb
or edx, 0xffffffff
mov eax, 0x47c6a8
call fcn.00408cdc
mov dword [ebp - 0x1c], eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push 0x47c68c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x47c5c7
call fcn.004044d0
jmp 0x47c600
mov al, 1
jmp 0x47c5cd
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 0x47c600
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 0x47c62f
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00404ab4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ab4
ret