Function at 0x4ff950
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x58d4cd
mov eax, dword fs:[0]
push eax
sub esp, 0x9e4
mov eax, dword [0x5cca0c]
xor eax, esp
mov dword [esp + 0x9e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5cca0c]
xor eax, esp
push eax
lea eax, [esp + 0x9f8]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
mov esi, ecx
push str.__._6A8DCD5A_CB21_4FFB_BA2D_622381D69E3C
mov dword [esp + 0x34], esi
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4ffda6
mov dword [esp + 0x34], ebx
push 0x39
mov edi, 7
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
lea ecx, [esp + 0xa0]
mov dword [esp + 0xa08], ebx
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], bx
call fcn.0040c2f0
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
mov eax, dword [esp + 0x9c]
mov edi, 8
cmp dword [esp + 0xb0], edi
mov byte [esp + 0xa00], 2
jae 0x4ffa2c
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x1c]
push ecx
push 0x2001f
push ebx
push eax
push reloc.WS2_32.dll_bind
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4ffa59
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x20], ebx
jmp 0x4ffad4
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x59648b
mov ecx, esi
mov byte [esi + 4], bl
call fcn.0040c1c0
cmp dword [esp + 0x94], edi
jb 0x4ffa8c
mov eax, dword [esp + 0x80]
push eax
call fcn.0055215c
add esp, 4
cmp dword [esp + 0xb0], edi
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
jb 0x4ffe8b
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.0055215c
add esp, 4
jmp 0x4ffe8b
mov esi, dword [esp + 0x18]
push 0x800
lea edx, [esp + 0x1f8]
push ebx
push edx
call fcn.00552500
add esp, 0xc
lea eax, [esp + 0x74]
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 + 0x208]
push edx
push eax
push ecx
mov dword [esp + 0x44], 0x800
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4ffd09
add dword [esp + 0x20], 1
xor esi, esi
mov dword [esp + 0x30], esi
push 0x59bd20
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0xa0c], 3
call fcn.004fd3d0
lea ecx, [esp + 0x200]
push ecx
push eax
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0xa18], 4
call fcn.004fd3d0
add esp, 0x18
cmp dword [eax + 0x18], edi
jb 0x4ffb71
mov eax, dword [eax + 4]
jmp 0x4ffb74
add eax, 4
lea ecx, [esp + 0x2c]
push ecx
push 0x2001f
push ebx
push eax
push reloc.WS2_32.dll_bind
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4ffb9f
mov esi, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x30], esi
cmp eax, ebx
setne byte [esp + 0x17]
cmp dword [esp + 0x50], edi
jb 0x4ffbb7
mov edx, dword [esp + 0x3c]
push edx
call fcn.0055215c
add esp, 4
cmp dword [esp + 0x6c], edi
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
mov byte [esp + 0xa00], 3
jb 0x4ffbe3
mov eax, dword [esp + 0x58]
push eax
call fcn.0055215c
add esp, 4
cmp byte [esp + 0x17], bl
je 0x4ffbfd
cmp esi, ebx
je 0x4ffad0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ffad0
push 0x800
lea ecx, [esp + 0x1f8]
push ebx
push ecx
mov dword [esp + 0x30], 0x800
call fcn.00552500
add esp, 0xc
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1f8]
push eax
push str.ServiceName
lea ecx, [esp + 0x3c]
call fcn.00449990
push 4
mov ebp, 7
push str.__._
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
call fcn.0040c2f0
lea ecx, [esp + 0x1f4]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0xa0c], 5
call fcn.004fd3d0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0xa0c], 6
call fcn.0040a160
cmp dword [esp + 0x6c], edi
jb 0x4ffca5
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0055215c
add esp, 4
cmp dword [esp + 0x50], edi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
jb 0x4ffcc5
mov edx, dword [esp + 0x3c]
push edx
call fcn.0055215c
add esp, 4
cmp dword [esp + 0x94], edi
mov eax, dword [esp + 0x80]
jae 0x4ffcdc
lea eax, [esp + 0x80]
push ebx
push ebx
push 3
push ebx
push 3
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4ffbe9
cmp esi, ebx
je 0x4ffd05
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x94], edi
jb 0x4ffd22
mov eax, dword [esp + 0x80]
push eax
call fcn.0055215c
add esp, 4
cmp dword [esp + 0xb0], edi
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
jb 0x4ffd55
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.0055215c
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], bx
mov dword [esp + 0xa00], 0xffffffff
je 0x4ffd89
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, 0xffffffff
jne 0x4ffda6
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
push 0x59648b
jmp 0x4ffe84
push 0xff
lea edx, [esp + 0xf9]
push ebx
push edx
mov byte [esp + 0x100], bl
call fcn.00552500
push 0x40
lea eax, [esp + 0xc4]
push ebx
push eax
mov dword [esp + 0x40], 0x1010101
call fcn.00552500
add esp, 0x18
push ebx
lea ecx, [esp + 0x74]
push ecx
push 0x100
lea edx, [esp + 0x100]
push edx
push 4
lea eax, [esp + 0x3c]
push eax
push 0x170002
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4ffe50
movzx ecx, byte [esp + 0xf9]
movzx edx, byte [esp + 0xf8]
movzx eax, byte [esp + 0xf7]
push ecx
movzx ecx, byte [esp + 0xfa]
push edx
movzx edx, byte [esp + 0xfd]
push eax
movzx eax, byte [esp + 0x100]
push ecx
push edx
push eax
lea ecx, [esp + 0xcc]
push str._02X_02X_02X_02X_02X_02X
push ecx
call fcn.00555846
add esp, 0x20
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0xb4]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4ffe70
sub eax, edx
push eax
lea edx, [esp + 0xb8]
push edx
mov ecx, esi
call fcn.0040c1c0
mov eax, esi
mov ecx, dword [esp + 0x9f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x9e0]
xor ecx, esp
call fcn.00552d63
add esp, 0x9f0
ret