Function at 0x506490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x607951
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x6b000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x5066f1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x5066fb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
xor dl, dl
lea ecx, [ebp - 0x28]
call fcn.004dbed0
mov byte [ebp - 4], 4
push dword [eax]
lea eax, [ebp - 0x24]
push eax
call fcn.0055a5d0
mov esi, eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push str.type
push dword [0x6b9660]
mov dword [ebp - 0x20], 4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor ecx, ecx
test eax, eax
jne 0x50655b
cmp dword [ebp - 0x18], 2
cmovbe ecx, dword [ebp - 0x18]
push dword [esi]
lea eax, [ebp - 0x1c]
push ecx
push str.reg_type_dnickname_s
push eax
call fcn.0040d300
add esp, 0x10
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov edx, dword [ebp - 0x24]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x506590
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x5065ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.online
push 1
push ecx
push str.BuyMode
call fcn.00469e40
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x18]
call fcn.004e0640
push 0x2e
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 1
mov esi, eax
call fcn.004d1400
push dword [0x6b9698]
lea eax, [ebp - 0x28]
push eax
call fcn.0055a5d0
mov byte [ebp - 4], 9
push dword [0x6b9690]
push dword [esi]
push 0x6b96f8
push dword [edi + 0x90c]
push dword [eax]
lea eax, [ebp - 0x14]
push dword [0x6b9fc4]
push eax
call fcn.0040d300
add esp, 0x1c
mov byte [ebp - 4], 8
mov eax, ebx
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x506637
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov dword [ebp - 0x10], eax
and eax, 0xfffffffe
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x506663
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push dword [esi - 0xc]
push esi
call fcn.0040ceb0
mov ebx, dword [edi + 4]
push ecx
mov edi, esp
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov ecx, eax
mov dword [ebp - 0x28], eax
call fcn.0040c950
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 3
mov ecx, ebx
call fcn.004dd360
add esp, 4
mov byte [ebp - 4], 1
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x5066c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x5066df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040b250
push 0x80004005
call fcn.0040b250
int3