Function at 0x40edd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49f1cc
mov eax, dword fs:[0]
push eax
sub esp, 0x8a8
mov eax, dword [0x4cc99c]
xor eax, esp
mov dword [esp + 0x8a0], eax
push ebx
push esi
push edi
mov eax, dword [0x4cc99c]
xor eax, esp
push eax
lea eax, [esp + 0x8b8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push str._r_n______________________________r_n
push eax
mov dword [esp + 0x1c], eax
call fcn.0040e570
push 0x3fe
xor esi, esi
lea ecx, [esp + 0x4ba]
xor eax, eax
push esi
push ecx
mov dword [esp + 0x30], 1
mov word [esp + 0x4c0], ax
call sub.MSVCR100.dll_memset
add esp, 0x14
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x4b0]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x4ab248
push str.SoftwareHuofengHuofengGameWorld
push SysReAllocString
mov dword [esp + 0x30], 0x400
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp eax, esi
je 0x40ee94
push str.Error_iwan_version.
lea edx, [esp + 0x4b0]
push edx
call edi
push 0x4adf64
lea ecx, [esp + 0x294]
call fcn.004022c0
push 0x4ad420
lea ecx, [esp + 0x298]
mov dword [esp + 0x8c4], esi
call fcn.004022c0
push str.hfgwupdate.exe
lea ecx, [esp + 0x29c]
mov byte [esp + 0x8c4], 1
call fcn.004022c0
push 0x4adf9c
lea ecx, [esp + 0x2a0]
mov byte [esp + 0x8c4], 2
call fcn.004022c0
push str.AuxMod.dll
lea ecx, [esp + 0x2a4]
mov byte [esp + 0x8c4], 3
call fcn.004022c0
mov dword [esp + 0x8c0], 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea esp, [esp]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x2ae]
push ecx
mov word [esp + 0x2b0], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [esp + 0x4ac]
push edx
lea eax, [esp + 0x2a8]
push eax
call ebx
push 0x4adfcc
lea ecx, [esp + 0x2a8]
push ecx
call edi
mov edx, dword [esp + esi*4 + 0x290]
push edx
lea eax, [esp + 0x2a8]
push eax
call edi
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x2a8]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40efa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x2c]
push 0x4ab4f4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x40f005
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx edx, word [esp + 0x38]
movzx eax, word [esp + 0x36]
movzx ecx, word [esp + 0x34]
push edx
movzx edx, word [esp + 0x36]
push eax
movzx eax, word [esp + 0x36]
push ecx
movzx ecx, word [esp + 0x38]
push edx
push eax
mov eax, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x2bc]
push edx
push 0x4adfd0
push eax
call fcn.0040e570
add esp, 0x24
inc esi
cmp esi, 5
jl 0x40ef20
mov ecx, dword [esp + 0x14]
push str._r_n______________________________r_n
push ecx
call fcn.0040e570
add esp, 8
push fcn.0045d6b0
push 5
push 4
lea edx, [esp + 0x29c]
push edx
call fcn.004977ff
mov ecx, dword [esp + 0x8b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8a0]
xor ecx, esp
call fcn.00497792
mov esp, ebp
pop ebp
ret