Function at 0x509030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60826b
mov eax, dword fs:[0]
push eax
sub esp, 0x20
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
mov eax, dword [edi + 0x90c]
cmp eax, 2
jne 0x5092b8
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x50939a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
mov ecx, 0xc
cmp dword [edi + 0x910], 0
mov eax, 0xfffffc19
cmove eax, ecx
mov dword [ebp - 0x2c], eax
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x5093a4
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 0x509121
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 0x509156
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 0x509174
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 [ebp - 0x2c]
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 0x5091fa
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 0x509226
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 - 0x28], esp
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov ecx, eax
mov dword [ebp - 0x2c], 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 0x509286
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x509388
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
xor ebx, ebx
test eax, eax
jne 0x5092cc
cmp dword [edi + 0x910], ebx
setne bl
add ebx, 2
jmp 0x5092d5
cmp dword [edi + 0x910], ebx
setne bl
push 0x914
call fcn.00560437
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0x10
mov ecx, esi
call fcn.004dacb0
mov byte [ebp - 4], 0x11
mov dword [esi], vtable.CQRCodeDlg.2.0
mov dword [esi + 0x10], vtable.CQRCodeDlg.5.0
mov dword [esi + 0x24], vtable.CQRCodeDlg.3.0
mov dword [esi + 0x28], vtable.CQRCodeDlg.0
mov dword [esi + 0x2c], vtable.CQRCodeDlg.1.0
mov dword [esi + 0x30], vtable.CQRCodeDlg.4.0
mov dword [esi + 0x900], 0
mov dword [esi + 0x904], 0
mov dword [esi + 0x908], 0x62
mov dword [esi + 0x90c], 0
mov dword [esi + 0x910], ebx
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
push 0
push 0
push 0
push 0
push 0
push 0
push 0x96c80000
push 0x639ee0
push dword [edi + 4]
call dword [sym.imp.ycomuiu.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____]
mov ecx, esi
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_]
mov ecx, esi
call dword [sym.imp.ycomuiu.dll_public:_unsigned_int___thiscall_DuiLib::CWindowWnd::ShowModal_void_]
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