Function at 0x47bec0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4fa0a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x808], ebx
test ebx, ebx
je 0x47c1a3
push esi
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.0049c3c0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x7ec]
add esp, 0xc
push eax
push 0x208
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x47c174
push edi
xor edi, edi
mov dword [ebp - 0x7f0], 0x104
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x7f0]
push eax
lea eax, [ebp - 0x3d8]
push eax
push edi
push dword [ebp - 0x7ec]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x47c167
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop word [eax + eax]
lea eax, [ebp - 0x7f8]
push eax
push 0x201
push 0
lea eax, [ebp - 0x3d8]
push eax
push dword [ebp - 0x7ec]
call esi
test eax, eax
jne 0x47c12b
lea eax, [ebp - 0x7fc]
mov dword [ebp - 0x800], 1
push eax
lea eax, [ebp - 0x5e0]
mov dword [ebp - 0x7fc], 0x208
push eax
lea eax, [ebp - 0x800]
push eax
push 0
push str.ServiceName
push dword [ebp - 0x7f8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47c11f
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.0049c3c0
lea eax, [ebp - 0x5e0]
push eax
push str.._s
lea eax, [ebp - 0x7e8]
push 0x208
push eax
call fcn.0047b610
add esp, 0x1c
lea eax, [ebp - 0x7e8]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x47c119
push 0
lea eax, [ebp - 0x7f4]
mov dword [ebp - 0x804], 0x1010101
push eax
push 0x104
lea eax, [ebp - 0x1d0]
mov dword [ebp - 0x7f4], 0
push eax
push 4
lea eax, [ebp - 0x804]
push eax
push 0x170002
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x47c116
cmp dword [ebp - 0x7f4], 0
jbe 0x47c116
movzx eax, byte [ebp - 0x1cb]
push eax
movzx eax, byte [ebp - 0x1cc]
push eax
movzx eax, byte [ebp - 0x1cd]
push eax
movzx eax, byte [ebp - 0x1ce]
push eax
movzx eax, byte [ebp - 0x1cf]
push eax
movzx eax, byte [ebp - 0x1d0]
push eax
push str._02X_02X_02X_02X_02X_02X
lea eax, [ebp - 0xcc]
push 0x64
push eax
call fcn.004751c0
add esp, 0x24
push esi
call ebx
cmp byte [ebp - 0x68], 0
je 0x47c0d6
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x47c119
lea eax, [ebp - 0x68]
mov edx, 0x64
lea esi, [ebp - 0xcc]
mov ecx, eax
sub esi, ecx
nop dword [eax + eax]
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x47c109
mov cl, byte [esi + eax]
test cl, cl
je 0x47c109
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x47c0f0
test edx, edx
lea ecx, [eax - 1]
cmovne ecx, eax
mov byte [ecx], 0
jmp 0x47c119
push esi
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push dword [ebp - 0x7f8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x7f0]
mov dword [ebp - 0x7f0], 0x104
push eax
lea eax, [ebp - 0x3d8]
inc edi
push eax
push edi
push dword [ebp - 0x7ec]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x47bf60
mov ebx, dword [ebp - 0x808]
push dword [ebp - 0x7ec]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
cmp byte [ebp - 0x68], 0
pop esi
je 0x47c1a3
lea eax, [ebp - 0x68]
mov edx, 0x64
push eax
mov ecx, ebx
call fcn.00472540
xor ecx, ecx
test eax, eax
pop ebx
setns cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a9dd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.0049a9dd
mov esp, ebp
pop ebp
ret