Function at 0x47cef0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5acee9
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6bd6f8]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6bd6f8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x50], ebx
xor eax, eax
mov dword [esp + 0x24], ebx
mov edi, ecx
mov esi, edx
movzx edx, ax
mov ecx, 7
mov dword [esp + 0x40], ecx
mov word [esp + 0x2c], ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], 2
mov word [esp + 0x30], ax
mov dword [esp + 0x3c], 3
cmp ecx, 8
jae 0x47cf74
lea eax, [esp + 0x2c]
xor ecx, ecx
mov word [eax + 6], cx
mov ebp, 1
mov dword [esp + 0x50], ebp
mov edx, dword [0x6d50f8]
mov eax, dword [edx + 0xc]
mov ecx, 0x6d50f8
mov dword [esp + 0x1c], ebx
call eax
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x50], 1
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ebx
cmp byte [0x6d68b0], bl
je 0x47cfbc
mov eax, 0x101
cmp byte [esp + 0x58], bl
jne 0x47cfbe
mov eax, ebp
lea ecx, [esp + 0x18]
push ecx
push eax
push ebx
push esi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x47d1f9
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x47cfe8
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push ecx
call ebp
cmp eax, 0xea
jne 0x47d0bb
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x3c]
inc edi
cmp edi, edx
ja 0x47d027
push 0xffffffffffffffff
lea esi, [esp + 0x2c]
call fcn.004081fd
jmp 0x47d098
or eax, 0xffffffff
sub edi, edx
sub eax, edx
cmp eax, edi
ja 0x47d03b
call fcn.00572321
mov edx, dword [esp + 0x3c]
cmp edi, ebx
jbe 0x47d098
lea esi, [edx + edi]
cmp esi, 0x7ffffffe
jbe 0x47d053
call fcn.00572321
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp eax, esi
jae 0x47d100
push edx
push esi
lea ecx, [esp + 0x30]
push ecx
call fcn.0040cbe9
mov edx, dword [esp + 0x3c]
cmp esi, ebx
jbe 0x47d098
push edi
xor eax, eax
lea ecx, [esp + 0x2c]
call fcn.00428c72
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], esi
jae 0x47d092
lea eax, [esp + 0x2c]
xor ecx, ecx
mov word [eax + esi*2], cx
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x47d0a7
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push ecx
call ebp
cmp eax, ebx
jne 0x47d1ea
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x47d0da
cmp eax, 2
je 0x47d0da
cmp eax, 7
jne 0x47d1ea
mov edi, dword [esp + 0x14]
cmp edi, ebx
jbe 0x47d1ea
mov edx, dword [esp + 0x3c]
shr edi, 1
cmp edi, edx
ja 0x47d123
push 0xffffffffffffffff
lea esi, [esp + 0x2c]
call fcn.004081fd
jmp 0x47d190
cmp esi, ebx
jne 0x47d071
cmp eax, 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], ebx
jae 0x47d119
lea eax, [esp + 0x2c]
xor edx, edx
mov word [eax], dx
jmp 0x47d098
or eax, 0xffffffff
sub edi, edx
sub eax, edx
cmp eax, edi
ja 0x47d137
call fcn.00572321
mov edx, dword [esp + 0x3c]
cmp edi, ebx
jbe 0x47d190
lea esi, [edx + edi]
cmp esi, 0x7ffffffe
jbe 0x47d14f
call fcn.00572321
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp eax, esi
jae 0x47d1a5
push edx
push esi
lea ecx, [esp + 0x30]
push ecx
call fcn.0040cbe9
mov edx, dword [esp + 0x3c]
cmp esi, ebx
jbe 0x47d190
push edi
xor eax, eax
lea ecx, [esp + 0x2c]
call fcn.00428c72
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], esi
jae 0x47d18a
lea eax, [esp + 0x2c]
xor ecx, ecx
mov word [eax + esi*2], cx
cmp dword [esp + 0x40], 8
jb 0x47d1c1
mov eax, dword [esp + 0x2c]
mov esi, eax
cmp eax, ebx
jne 0x47d1c5
xor eax, eax
jmp 0x47d1df
cmp esi, ebx
jne 0x47d169
cmp eax, 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], ebx
jae 0x47d1ba
lea eax, [esp + 0x2c]
xor edx, edx
mov word [eax], dx
jmp 0x47d190
lea esi, [esp + 0x2c]
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47d1d0
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x24]
push esi
call fcn.0040b13c
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x20]
mov byte [esp + 0x50], bl
cmp dword [esp + 0x40], 8
jb 0x47d211
mov eax, dword [esp + 0x2c]
push eax
call fcn.00573401
add esp, 4
xor ecx, ecx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], cx
mov eax, edi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0057340c
add esp, 0x40
ret