Function at 0x406b20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x900
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0xfe
xor ebx, ebx
lea ecx, [ebp - 0x162]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x164], ax
call fcn.00414930
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
lea ecx, [ebx + 0x40]
lea edi, [ebp - 0x264]
rep stosd dword es:[edi], eax
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
lea ecx, [ebx + 0x40]
lea edi, [ebp - 0x364]
add esp, 0xc
rep stosd dword es:[edi], eax
xor eax, eax
jmp 0x406b90
movzx ecx, word [eax + str.tztufn_dvssfoudpouspmtfu_tfswjdft_Xjo.Xjo8]
mov word [ebp + eax - 0x264], cx
add eax, 2
cmp cx, bx
jne 0x406b90
lea eax, [ebp - 0x364]
push eax
lea ecx, [ebp - 0x264]
push ecx
call fcn.00406f60
push 0x1fe
lea eax, [ebp - 0x8f2]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x8f4], dx
call fcn.00414930
add esp, 0x14
mov dword [ebp - 0x8f8], ebx
xor eax, eax
movzx ecx, word [ebp + eax - 0x364]
mov word [ebp + eax - 0x8f4], cx
add eax, 2
cmp cx, bx
jne 0x406be0
lea ecx, [ebp - 0x8f8]
push ecx
push 0x20019
push ebx
lea edx, [ebp - 0x8f4]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406c3d
mov eax, dword [ebp - 0x8f8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
push 0x18e
lea edx, [ebp - 0x4f2]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x4f4], cx
call fcn.00414930
push 0x1fe
lea ecx, [ebp - 0x6f2]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x8fc], 1
mov word [ebp - 0x6f4], ax
call fcn.00414930
add esp, 0x18
mov dword [ebp - 0x900], 0x200
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + str.SerialNumber]
mov word [ebp + eax - 0x4f4], cx
add eax, 2
cmp cx, bx
jne 0x406c90
lea edx, [ebp - 0x900]
push edx
lea eax, [ebp - 0x6f4]
push eax
mov eax, dword [ebp - 0x8f8]
lea ecx, [ebp - 0x8fc]
push ecx
push ebx
lea edx, [ebp - 0x4f4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x406cf7
mov ecx, dword [ebp - 0x8f8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x8f8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x406d10
movzx ecx, word [ebp + eax - 0x6f4]
mov word [ebp + eax - 0x164], cx
add eax, 2
cmp cx, bx
jne 0x406d10
lea eax, [ebp - 0x164]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406d31
sub eax, edx
sar eax, 1
cmp eax, 0xe
jne 0x406ec9
xor eax, eax
lea ecx, [ebp - 0x24]
push ecx
push esi
mov byte [ebp - 0x14], bl
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov byte [ebp - 0x24], bl
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x44], bl
mov dword [ebp - 0x43], eax
mov dword [ebp - 0x3f], eax
mov dword [ebp - 0x3b], eax
mov byte [ebp - 0x34], bl
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov word [ebp - 0x27], ax
mov word [ebp - 0x64], ax
mov dword [ebp - 0x62], eax
mov dword [ebp - 0x5e], eax
mov dword [ebp - 0x5a], eax
mov dword [ebp - 0x56], eax
mov dword [ebp - 0x52], eax
mov dword [ebp - 0x4e], eax
mov dword [ebp - 0x4a], eax
call fcn.004055b0
push 4
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.0040e4b0
push 4
lea ecx, [ebp - 0x1f]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.0040e4b0
push 4
lea eax, [ebp - 0x1a]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.0040e4b0
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x40
lea edi, [ebp - 0x264]
rep stosd dword es:[edi], eax
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x40
lea edi, [ebp - 0x364]
add esp, 0x2c
rep stosd dword es:[edi], eax
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + str.5:12.6CWI.3:_N]
mov word [ebp + eax - 0x264], cx
add eax, 2
cmp cx, bx
jne 0x406e10
lea eax, [ebp - 0x364]
push eax
lea ecx, [ebp - 0x264]
push ecx
call fcn.00406f60
lea edx, [ebp - 0x164]
push edx
lea eax, [ebp - 0x364]
push eax
call fcn.0040daf6
add esp, 0x10
test eax, eax
jne 0x406e69
pop edi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x14c], 0x5a
je 0x406e54
lea ebx, [ebp - 0x14]
call fcn.00407750
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x44]
mov ecx, ebx
call fcn.00407380
add esp, 4
test eax, eax
je 0x406ec9
lea edx, [ebp - 0x64]
push edx
lea ebx, [ebp - 0x34]
call fcn.00405630
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.0040daf6
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffc
pop edi
add eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret