Function at 0x40d710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x18e
push eax
lea ecx, [ebp - 0x326]
push ecx
mov word [ebp - 0x328], ax
call fcn.004238b0
add esp, 0xc
xor edx, edx
push 0x18e
push edx
lea eax, [ebp - 0x4b6]
push eax
mov word [ebp - 0x4b8], dx
call fcn.004238b0
add esp, 0xc
xor ecx, ecx
push 0x18e
push ecx
lea edx, [ebp - 0x646]
push edx
mov word [ebp - 0x648], cx
call fcn.004238b0
add esp, 0xc
xor eax, eax
push 0x18e
push eax
lea ecx, [ebp - 0x196]
push ecx
mov word [ebp - 0x198], ax
call fcn.004238b0
add esp, 0xc
mov dword [ebp - 0x854], 0xc8
mov dword [ebp - 0x85c], 1
call fcn.0040a560
test eax, eax
jne 0x40d7c3
push str._HuCheck7__WinWin7
jmp 0x40da35
cmp eax, 2
jne 0x40d7e9
push 0x438d38
call fcn.00403790
add esp, 4
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x40d7f0
movzx ecx, word [eax + 0xc31254]
mov word [ebp + eax - 0x4b8], cx
add eax, 2
test cx, cx
jne 0x40d7f0
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + str.SystemCurrentControlSetServicesWin_Win7]
mov word [ebp + eax - 0x648], cx
add eax, 2
test cx, cx
jne 0x40d810
lea edx, [ebp - 0x858]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x648]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40da30
push 0x190
push eax
lea ecx, [ebp - 0x198]
push ecx
mov dword [ebp - 0x854], 0xc8
call fcn.004238b0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea edx, [ebp - 0x854]
push edx
mov edx, dword [ebp - 0x858]
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x85c]
push ecx
push 0
push str.Version
push edx
call esi
test eax, eax
jne 0x40d8ba
lea ecx, [ecx]
movzx ecx, word [ebp + eax - 0x198]
mov word [ebp + eax - 0x328], cx
add eax, 2
test cx, cx
jne 0x40d8a0
jmp 0x40d928
push 0x190
lea eax, [ebp - 0x198]
push 0
push eax
mov dword [ebp - 0x854], 0xc8
call fcn.004238b0
add esp, 0xc
lea ecx, [ebp - 0x854]
push ecx
mov ecx, dword [ebp - 0x858]
lea edx, [ebp - 0x198]
push edx
lea eax, [ebp - 0x85c]
push eax
push 0
push str.Version
push ecx
call esi
test eax, eax
jne 0x40da1c
jmp 0x40d910
movzx ecx, word [ebp + eax - 0x198]
mov word [ebp + eax - 0x328], cx
add eax, 2
test cx, cx
jne 0x40d910
mov edx, dword [ebp - 0x858]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x84e]
push ecx
mov word [ebp - 0x850], ax
call fcn.004238b0
add esp, 0xc
lea edx, [ebp - 0x4b8]
push edx
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0x850]
push str._HuCheck7___Client
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x850]
push edx
call fcn.00403790
add esp, 0x14
cmp word [0xc3126c], 0
jne 0x40d9a9
mov eax, 0xc31254
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d994
sub eax, edx
sar eax, 1
je 0x40d7d5
push 9
lea eax, [ebp - 0x4b8]
push eax
lea ecx, [ebp - 0x328]
push ecx
call fcn.0041e198
add esp, 0xc
test eax, eax
js 0x40da15
cmp dword [0xc3311c], 1
jne 0x40d7d5
cmp word [0xc3126c], 3
jae 0x40d9e3
push 0x438e18
jmp 0x40da35
call fcn.0040cff0
cmp eax, 1
jne 0x40d9f4
push 0x438e70
jmp 0x40da35
push 0x438ec8
call fcn.00403790
add esp, 4
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
push str._HuCheck7_
jmp 0x40da35
mov edx, dword [ebp - 0x858]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x438d88
jmp 0x40da35
push 0x438f60
call fcn.00403790
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0041bcde
mov esp, ebp
pop ebp
ret