Function at 0x480d30
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5b37e9
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 0x480db4
lea eax, [esp + 0x2c]
xor ecx, ecx
mov word [eax + 6], cx
mov ebp, 1
mov dword [esp + 0x50], ebp
mov edx, dword [0x6dd118]
mov eax, dword [edx + 0xc]
mov ecx, 0x6dd118
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 [0x6de964], bl
je 0x480dfc
mov eax, 0x101
cmp byte [esp + 0x58], bl
jne 0x480dfe
mov eax, ebp
lea ecx, [esp + 0x18]
push ecx
push eax
push ebx
push esi
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x481039
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x480e28
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 0x480efb
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x3c]
inc edi
cmp edi, edx
ja 0x480e67
push 0xffffffffffffffff
lea esi, [esp + 0x2c]
call fcn.004081e8
jmp 0x480ed8
or eax, 0xffffffff
sub edi, edx
sub eax, edx
cmp eax, edi
ja 0x480e7b
call fcn.005785f1
mov edx, dword [esp + 0x3c]
cmp edi, ebx
jbe 0x480ed8
lea esi, [edx + edi]
cmp esi, 0x7ffffffe
jbe 0x480e93
call fcn.005785f1
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp eax, esi
jae 0x480f40
push edx
push esi
lea ecx, [esp + 0x30]
push ecx
call fcn.0040cd36
mov edx, dword [esp + 0x3c]
cmp esi, ebx
jbe 0x480ed8
push edi
xor eax, eax
lea ecx, [esp + 0x2c]
call fcn.00428f46
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], esi
jae 0x480ed2
lea eax, [esp + 0x2c]
xor ecx, ecx
mov word [eax + esi*2], cx
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x480ee7
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 0x48102a
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x480f1a
cmp eax, 2
je 0x480f1a
cmp eax, 7
jne 0x48102a
mov edi, dword [esp + 0x14]
cmp edi, ebx
jbe 0x48102a
mov edx, dword [esp + 0x3c]
shr edi, 1
cmp edi, edx
ja 0x480f63
push 0xffffffffffffffff
lea esi, [esp + 0x2c]
call fcn.004081e8
jmp 0x480fd0
cmp esi, ebx
jne 0x480eb1
cmp eax, 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], ebx
jae 0x480f59
lea eax, [esp + 0x2c]
xor edx, edx
mov word [eax], dx
jmp 0x480ed8
or eax, 0xffffffff
sub edi, edx
sub eax, edx
cmp eax, edi
ja 0x480f77
call fcn.005785f1
mov edx, dword [esp + 0x3c]
cmp edi, ebx
jbe 0x480fd0
lea esi, [edx + edi]
cmp esi, 0x7ffffffe
jbe 0x480f8f
call fcn.005785f1
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp eax, esi
jae 0x480fe5
push edx
push esi
lea ecx, [esp + 0x30]
push ecx
call fcn.0040cd36
mov edx, dword [esp + 0x3c]
cmp esi, ebx
jbe 0x480fd0
push edi
xor eax, eax
lea ecx, [esp + 0x2c]
call fcn.00428f46
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], esi
jae 0x480fca
lea eax, [esp + 0x2c]
xor ecx, ecx
mov word [eax + esi*2], cx
cmp dword [esp + 0x40], 8
jb 0x481001
mov eax, dword [esp + 0x2c]
mov esi, eax
cmp eax, ebx
jne 0x481005
xor eax, eax
jmp 0x48101f
cmp esi, ebx
jne 0x480fa9
cmp eax, 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], ebx
jae 0x480ffa
lea eax, [esp + 0x2c]
xor edx, edx
mov word [eax], dx
jmp 0x480fd0
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 0x481010
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x24]
push esi
call fcn.0040b3ac
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 0x481051
mov eax, dword [esp + 0x2c]
push eax
call fcn.005796d1
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.005796dc
add esp, 0x40
ret