Function at 0x46fb10
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4bb998
mov eax, dword fs:[0]
push eax
sub esp, 0x5f4
mov eax, dword [0x4de57c]
xor eax, esp
mov dword [esp + 0x5f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4de57c]
xor eax, esp
push eax
lea eax, [esp + 0x608]
mov dword fs:[0], eax
mov esi, dword [esp + 0x618]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push str.__._6A8DCD5A_CB21_4FFB_BA2D_622381D69E3C
mov dword [esp + 0x34], esi
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x46ff92
mov dword [esp + 0x34], ebx
push 0x39
mov edi, 0xf
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
lea ecx, [esp + 0xb0]
mov dword [esp + 0x618], ebx
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
call fcn.00401e90
lea ecx, [esp + 0x74]
mov byte [esp + 0x610], 1
call fcn.0047db60
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
mov eax, dword [esp + 0xac]
mov edi, 0x10
cmp dword [esp + 0xc0], edi
mov byte [esp + 0x610], 3
jae 0x46fc00
lea eax, [esp + 0xac]
lea ecx, [esp + 0x1c]
push ecx
push 0x2001f
push ebx
push eax
push 0x80000002
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x46fc30
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x20], ebx
jmp 0x46fcb4
push ebx
mov ebp, 0xf
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push 0x4bf904
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00401e90
cmp dword [esp + 0xa4], edi
jb 0x46fc64
mov eax, dword [esp + 0x90]
push eax
call fcn.0048d433
add esp, 4
lea ecx, [esp + 0x74]
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
mov byte [esp + 0x610], 1
call fcn.0047db70
cmp dword [esp + 0xc0], edi
jb 0x47007b
mov ecx, dword [esp + 0xac]
push ecx
call fcn.0048d433
add esp, 4
jmp 0x47007b
mov esi, dword [esp + 0x18]
push 0x400
lea edx, [esp + 0x208]
push ebx
push edx
call fcn.0048ea70
add esp, 0xc
lea eax, [esp + 0x84]
push eax
mov eax, dword [esp + 0x24]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x218]
push edx
push eax
push ecx
mov dword [esp + 0x44], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x46fee9
add dword [esp + 0x20], 1
xor esi, esi
mov dword [esp + 0x30], esi
push 0x4bfc88
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x61c], 4
call fcn.00416030
lea ecx, [esp + 0x210]
push ecx
push eax
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0x628], 5
call fcn.00416030
add esp, 0x18
cmp dword [eax + 0x18], edi
jb 0x46fd54
mov eax, dword [eax + 4]
jmp 0x46fd57
add eax, 4
lea ecx, [esp + 0x28]
push ecx
push 0x2001f
push ebx
push eax
push 0x80000002
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x46fd82
mov esi, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x30], esi
cmp eax, ebx
setne byte [esp + 0x17]
cmp dword [esp + 0x50], edi
jb 0x46fd9a
mov edx, dword [esp + 0x3c]
push edx
call fcn.0048d433
add esp, 4
cmp dword [esp + 0x6c], edi
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
mov byte [esp + 0x610], 4
jb 0x46fdc5
mov eax, dword [esp + 0x58]
push eax
call fcn.0048d433
add esp, 4
cmp byte [esp + 0x17], bl
je 0x46fddf
cmp esi, ebx
je 0x46fcb0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46fcb0
push 0x400
lea ecx, [esp + 0x208]
push ebx
push ecx
mov dword [esp + 0x30], 0x400
call fcn.0048ea70
add esp, 0xc
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x208]
push eax
push str.ServiceName
lea ecx, [esp + 0x3c]
call fcn.0046de00
push 4
mov ebp, 0xf
push str.__._
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.00401e90
lea ecx, [esp + 0x204]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x61c], 6
call fcn.00416030
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x98]
mov byte [esp + 0x61c], 7
call fcn.00401cf0
cmp dword [esp + 0x6c], edi
jb 0x46fe86
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0048d433
add esp, 4
cmp dword [esp + 0x50], edi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
jb 0x46fea5
mov edx, dword [esp + 0x3c]
push edx
call fcn.0048d433
add esp, 4
cmp dword [esp + 0xa4], edi
mov eax, dword [esp + 0x90]
jae 0x46febc
lea eax, [esp + 0x90]
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x46fdcb
cmp esi, ebx
je 0x46fee5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x18]
cmp dword [esp + 0xa4], edi
jb 0x46ff02
mov eax, dword [esp + 0x90]
push eax
call fcn.0048d433
add esp, 4
lea ecx, [esp + 0x74]
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
mov byte [esp + 0x610], 1
call fcn.0047db70
cmp dword [esp + 0xc0], edi
jb 0x46ff45
mov ecx, dword [esp + 0xac]
push ecx
call fcn.0048d433
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov edi, 0xf
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
mov dword [esp + 0x610], 0xffffffff
je 0x46ff79
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, 0xffffffff
jne 0x46ff97
push ebx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
push 0x4bf904
jmp 0x470074
mov edi, 0xf
push 0xff
lea edx, [esp + 0x109]
push ebx
push edx
mov byte [esp + 0x110], bl
call fcn.0048ea70
push 0x40
lea eax, [esp + 0xd4]
push ebx
push eax
mov dword [esp + 0x44], 0x1010101
call fcn.0048ea70
add esp, 0x18
push ebx
lea ecx, [esp + 0x74]
push ecx
push 0x100
lea edx, [esp + 0x110]
push edx
push 4
lea eax, [esp + 0x40]
push eax
push 0x170002
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x470041
movzx ecx, byte [esp + 0x109]
movzx edx, byte [esp + 0x108]
movzx eax, byte [esp + 0x107]
push ecx
movzx ecx, byte [esp + 0x10a]
push edx
movzx edx, byte [esp + 0x10d]
push eax
movzx eax, byte [esp + 0x110]
push ecx
push edx
push eax
lea ecx, [esp + 0xdc]
push str._02X_02X_02X_02X_02X_02X
push ecx
call fcn.0048f076
add esp, 0x20
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0xc4]
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
jmp 0x470060
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x470060
sub eax, edx
push eax
lea edx, [esp + 0xc8]
push edx
mov ecx, esi
call fcn.00401e90
mov eax, esi
mov ecx, dword [esp + 0x608]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5f0]
xor ecx, esp
call fcn.0048de34
add esp, 0x600
ret