Function at 0x46dc40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499dc2
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
push str.SoftwareHuofengHuofengGameWorld
lea ecx, [ebp - 0x4a0]
mov dword [ebp - 0x4a8], edi
mov dword [ebp - 0x4a4], esi
call fcn.004022c0
push 7
push str._setup_
lea ecx, [ebp - 0x4a0]
mov dword [ebp - 4], esi
call fcn.00402ab0
cmp ebx, esi
jne 0x46dcaf
xor eax, eax
jmp 0x46dcc3
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x46dcb4
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x4a0]
call fcn.00402ab0
push 0x3fe
lea ecx, [ebp - 0x40e]
xor eax, eax
push esi
push ecx
mov dword [ebp - 0x4a4], 1
mov word [ebp - 0x410], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x4ac]
push edx
mov edx, dword [ebp - 0x4a0]
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x4a4]
push ecx
push 0x4a6e9c
push edx
push SysReAllocString
mov dword [ebp - 0x4ac], 0x400
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, esi
je 0x46e081
mov eax, dword [0x4cb4f4]
mov edi, 8
cmp dword [0x4cb508], edi
jae 0x46dd4d
mov eax, 0x4cb4f4
push eax
lea eax, [ebp - 0x42c]
push str.http:___s_api_play.jsp_spgameid:
push eax
call fcn.0047cbe0
add esp, 0xc
mov eax, ebx
mov byte [ebp - 4], 1
lea edx, [eax + 2]
jmp 0x46dd70
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x46dd70
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x42c]
call fcn.004026a0
push 0xa
push str._gamename:
lea ecx, [ebp - 0x42c]
call fcn.004026a0
lea ecx, [ebp - 0x480]
push ebx
push ecx
call fcn.0046daa0
add esp, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x46c], edi
jb 0x46ddc8
mov edi, dword [ebp - 0x480]
cmp edi, esi
jne 0x46ddce
xor eax, eax
jmp 0x46ddf9
lea edi, [ebp - 0x480]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x46dde1
xor eax, eax
jmp 0x46ddf9
lea esi, [eax + eax]
mov eax, esi
call fcn.00497dd0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00403590
xor esi, esi
mov edi, 0xf
mov ecx, eax
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], edi
mov byte [ebp - 0x448], 0
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x46de16
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x448]
call fcn.00403870
push 1
lea edx, [ebp - 0x448]
push edx
lea eax, [ebp - 0x49c]
push eax
mov byte [ebp - 4], 3
call fcn.00465210
add esp, 0xc
mov esi, 0x10
mov byte [ebp - 4], 5
cmp dword [ebp - 0x434], esi
jb 0x46de68
mov ecx, dword [ebp - 0x448]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x438], eax
mov byte [ebp - 0x448], al
cmp dword [ebp - 0x488], esi
jb 0x46dea4
mov edi, dword [ebp - 0x49c]
cmp edi, eax
je 0x46dec0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x46deac
xor eax, eax
jmp 0x46dec0
lea edi, [ebp - 0x49c]
jmp 0x46de8e
lea eax, [esi + esi]
call fcn.00497dd0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00403550
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x46dec5
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.004026a0
push 0xb
push str._category
lea ecx, [ebp - 0x42c]
call fcn.004026a0
lea edx, [ebp - 0x464]
push ebx
push edx
call fcn.00466b70
add esp, 8
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x464]
push eax
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 6
call fcn.00402d10
mov eax, dword [ebp - 0x464]
mov ebx, 8
cmp dword [ebp - 0x450], ebx
jae 0x46df36
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.MSVCR100.dll__wtoi]
add esp, 4
lea ecx, [ebp - 0x42c]
cmp eax, 5
jne 0x46df5d
mov edi, 7
push edi
push str.qd101
call fcn.004026a0
jmp 0x46df6e
push 7
push str.qd102
call fcn.004026a0
mov edi, 7
mov esi, dword [ebp - 0x4a8]
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], 0
lea edx, [ebp - 0x42c]
mov word [esi], cx
push edx
mov ecx, esi
call fcn.004085c0
cmp dword [ebp - 0x450], ebx
jb 0x46dfa8
mov eax, dword [ebp - 0x464]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x488], 0x10
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x454], 0
mov word [ebp - 0x464], cx
jb 0x46dfd9
mov edx, dword [ebp - 0x49c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x488], 0xf
mov dword [ebp - 0x48c], 0
mov byte [ebp - 0x49c], 0
cmp dword [ebp - 0x46c], ebx
jb 0x46e00b
mov eax, dword [ebp - 0x480]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x46c], edi
mov dword [ebp - 0x470], 0
mov word [ebp - 0x480], cx
cmp dword [ebp - 0x418], ebx
jb 0x46e03b
mov edx, dword [ebp - 0x42c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov word [ebp - 0x42c], ax
mov eax, dword [ebp - 0x4a0]
add eax, 0xfffffff0
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x41c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e07d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x46e0e9
xor ecx, ecx
lea eax, [ebp - 0x410]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
mov word [edi], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x46e0a0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x410]
push edx
mov ecx, edi
call fcn.004027c0
mov eax, dword [ebp - 0x4a0]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e0e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
lea esp, [ebp - 0x4bc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret