Function at 0x47d260
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5ad299
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6b06f8]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6b06f8]
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 0x47d2e4
lea eax, [esp + 0x2c]
xor ecx, ecx
mov word [eax + 6], cx
mov ebp, 1
mov dword [esp + 0x50], ebp
mov edx, dword [0x6c7718]
mov eax, dword [edx + 0xc]
mov ecx, 0x6c7718
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 [0x6c8ed0], bl
je 0x47d32c
mov eax, 0x101
cmp byte [esp + 0x58], bl
jne 0x47d32e
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 0x47d569
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x47d358
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 0x47d42b
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x3c]
inc edi
cmp edi, edx
ja 0x47d397
push 0xffffffffffffffff
lea esi, [esp + 0x2c]
call fcn.00408231
jmp 0x47d408
or eax, 0xffffffff
sub edi, edx
sub eax, edx
cmp eax, edi
ja 0x47d3ab
call fcn.00572631
mov edx, dword [esp + 0x3c]
cmp edi, ebx
jbe 0x47d408
lea esi, [edx + edi]
cmp esi, 0x7ffffffe
jbe 0x47d3c3
call fcn.00572631
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp eax, esi
jae 0x47d470
push edx
push esi
lea ecx, [esp + 0x30]
push ecx
call fcn.0040cc51
mov edx, dword [esp + 0x3c]
cmp esi, ebx
jbe 0x47d408
push edi
xor eax, eax
lea ecx, [esp + 0x2c]
call fcn.00428e04
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], esi
jae 0x47d402
lea eax, [esp + 0x2c]
xor ecx, ecx
mov word [eax + esi*2], cx
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x47d417
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 0x47d55a
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x47d44a
cmp eax, 2
je 0x47d44a
cmp eax, 7
jne 0x47d55a
mov edi, dword [esp + 0x14]
cmp edi, ebx
jbe 0x47d55a
mov edx, dword [esp + 0x3c]
shr edi, 1
cmp edi, edx
ja 0x47d493
push 0xffffffffffffffff
lea esi, [esp + 0x2c]
call fcn.00408231
jmp 0x47d500
cmp esi, ebx
jne 0x47d3e1
cmp eax, 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], ebx
jae 0x47d489
lea eax, [esp + 0x2c]
xor edx, edx
mov word [eax], dx
jmp 0x47d408
or eax, 0xffffffff
sub edi, edx
sub eax, edx
cmp eax, edi
ja 0x47d4a7
call fcn.00572631
mov edx, dword [esp + 0x3c]
cmp edi, ebx
jbe 0x47d500
lea esi, [edx + edi]
cmp esi, 0x7ffffffe
jbe 0x47d4bf
call fcn.00572631
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp eax, esi
jae 0x47d515
push edx
push esi
lea ecx, [esp + 0x30]
push ecx
call fcn.0040cc51
mov edx, dword [esp + 0x3c]
cmp esi, ebx
jbe 0x47d500
push edi
xor eax, eax
lea ecx, [esp + 0x2c]
call fcn.00428e04
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], esi
jae 0x47d4fa
lea eax, [esp + 0x2c]
xor ecx, ecx
mov word [eax + esi*2], cx
cmp dword [esp + 0x40], 8
jb 0x47d531
mov eax, dword [esp + 0x2c]
mov esi, eax
cmp eax, ebx
jne 0x47d535
xor eax, eax
jmp 0x47d54f
cmp esi, ebx
jne 0x47d4d9
cmp eax, 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], ebx
jae 0x47d52a
lea eax, [esp + 0x2c]
xor edx, edx
mov word [eax], dx
jmp 0x47d500
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 0x47d540
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x24]
push esi
call fcn.0040b33c
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 0x47d581
mov eax, dword [esp + 0x2c]
push eax
call fcn.00573721
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.0057372c
add esp, 0x40
ret