Function at 0x4959f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5b9429
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6c56f8]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6c56f8]
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 0x495a74
lea eax, [esp + 0x2c]
xor ecx, ecx
mov word [eax + 6], cx
mov ebp, 1
mov dword [esp + 0x50], ebp
mov edx, dword [0x6dc778]
mov eax, dword [edx + 0xc]
mov ecx, 0x6dc778
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 [0x6ddebc], bl
je 0x495abc
mov eax, 0x101
cmp byte [esp + 0x58], bl
jne 0x495abe
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 0x495cf9
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x495ae8
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 0x495bbb
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x3c]
inc edi
cmp edi, edx
ja 0x495b27
push 0xffffffffffffffff
lea esi, [esp + 0x2c]
call fcn.00408285
jmp 0x495b98
or eax, 0xffffffff
sub edi, edx
sub eax, edx
cmp eax, edi
ja 0x495b3b
call fcn.0058070b
mov edx, dword [esp + 0x3c]
cmp edi, ebx
jbe 0x495b98
lea esi, [edx + edi]
cmp esi, 0x7ffffffe
jbe 0x495b53
call fcn.0058070b
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp eax, esi
jae 0x495c00
push edx
push esi
lea ecx, [esp + 0x30]
push ecx
call fcn.0040cbd6
mov edx, dword [esp + 0x3c]
cmp esi, ebx
jbe 0x495b98
push edi
xor eax, eax
lea ecx, [esp + 0x2c]
call fcn.0042eaa1
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], esi
jae 0x495b92
lea eax, [esp + 0x2c]
xor ecx, ecx
mov word [eax + esi*2], cx
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x495ba7
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 0x495cea
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x495bda
cmp eax, 2
je 0x495bda
cmp eax, 7
jne 0x495cea
mov edi, dword [esp + 0x14]
cmp edi, ebx
jbe 0x495cea
mov edx, dword [esp + 0x3c]
shr edi, 1
cmp edi, edx
ja 0x495c23
push 0xffffffffffffffff
lea esi, [esp + 0x2c]
call fcn.00408285
jmp 0x495c90
cmp esi, ebx
jne 0x495b71
cmp eax, 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], ebx
jae 0x495c19
lea eax, [esp + 0x2c]
xor edx, edx
mov word [eax], dx
jmp 0x495b98
or eax, 0xffffffff
sub edi, edx
sub eax, edx
cmp eax, edi
ja 0x495c37
call fcn.0058070b
mov edx, dword [esp + 0x3c]
cmp edi, ebx
jbe 0x495c90
lea esi, [edx + edi]
cmp esi, 0x7ffffffe
jbe 0x495c4f
call fcn.0058070b
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp eax, esi
jae 0x495ca5
push edx
push esi
lea ecx, [esp + 0x30]
push ecx
call fcn.0040cbd6
mov edx, dword [esp + 0x3c]
cmp esi, ebx
jbe 0x495c90
push edi
xor eax, eax
lea ecx, [esp + 0x2c]
call fcn.0042eaa1
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], esi
jae 0x495c8a
lea eax, [esp + 0x2c]
xor ecx, ecx
mov word [eax + esi*2], cx
cmp dword [esp + 0x40], 8
jb 0x495cc1
mov eax, dword [esp + 0x2c]
mov esi, eax
cmp eax, ebx
jne 0x495cc5
xor eax, eax
jmp 0x495cdf
cmp esi, ebx
jne 0x495c69
cmp eax, 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], ebx
jae 0x495cba
lea eax, [esp + 0x2c]
xor edx, edx
mov word [eax], dx
jmp 0x495c90
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 0x495cd0
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x24]
push esi
call fcn.0040b4fa
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 0x495d11
mov eax, dword [esp + 0x2c]
push eax
call fcn.0058125d
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.00581268
add esp, 0x40
ret