Function at 0x40dce5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x2ec
mov eax, 0x4ad88c
call fcn.0048f48f
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2bc]
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x280], ebx
call fcn.0042f326
mov dword [ebp - 4], ebx
call fcn.00411341
test al, al
jne 0x40dd40
xor eax, eax
inc eax
mov edi, eax
mov edx, 0xba
dec edx
lea ecx, [eax + edi]
lea edi, [eax]
mov eax, ecx
jns 0x40dd30
mov dword [0x507340], ecx
mov edi, 0x505ab0
push edi
lea ecx, [ebp - 0x294]
call fcn.00408fd9
push edi
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 1
call fcn.00408fd9
push edi
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 2
call fcn.00408fd9
push str.hive
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.0042f676
sub esp, 0x18
mov ecx, eax
push esp
call fcn.0042fc5e
lea eax, [ebp - 0x27c]
push eax
call fcn.00437fc7
add esp, 0x1c
push eax
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 5
call fcn.00402394
mov ecx, dword [ebp - 0x27c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.00407864
mov edi, dword [ebp - 0x294]
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x270], esp
push eax
mov dword [ebp - 0x27c], eax
call fcn.00403b5b
pop ecx
mov ecx, dword [ebp - 0x270]
add eax, 0x10
mov dword [ecx], eax
call fcn.0040fb03
pop ecx
mov dword [ebp - 0x278], eax
test eax, eax
jne 0x40debc
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x270]
push str.enumRegValues_hive_error_
push eax
call fcn.00409288
add esp, 0xc
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 6
call fcn.00438012
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 7
call fcn.0042f275
push 0x4c0c00
lea ecx, [ebp - 0x2bc]
mov byte [ebp - 4], 8
call fcn.0042f5f2
lea ecx, [ebp - 0x2ac]
push ecx
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 7
call fcn.0042f451
lea ecx, [ebp - 0x234]
call fcn.00401056
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x28c]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x290]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x27c]
call fcn.00407864
mov byte [ebp - 4], bl
mov edi, dword [ebp - 0x298]
jmp 0x40e40c
push 0x4c1028
mov ecx, esi
call fcn.0042f676
sub esp, 0x18
mov ecx, eax
push esp
call fcn.0042fc5e
lea eax, [ebp - 0x270]
push eax
call fcn.00437fc7
add esp, 0x1c
push eax
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 9
call fcn.00402394
mov eax, dword [ebp - 0x270]
mov byte [ebp - 4], 4
lea ecx, [eax - 0x10]
call fcn.00407864
push 0x4c1034
mov ecx, esi
call fcn.00430238
test al, al
je 0x40df29
push 0x4c1034
mov ecx, esi
call fcn.0042f676
mov ecx, eax
call fcn.0042fb76
jmp 0x40df2b
mov eax, ebx
mov ecx, 0x20019
cmp eax, 0x20
jne 0x40df3c
mov ecx, 0x20219
jmp 0x40df47
mov edx, 0x20119
cmp eax, 0x40
cmove ecx, edx
mov esi, dword [ebp - 0x290]
lea eax, [ebp - 0x280]
push eax
push ecx
push ebx
push esi
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e02a
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.0042c341
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x270]
push str.enumRegValues_RegOpenKeyEx_
push eax
mov byte [ebp - 4], 0xa
call fcn.00409288
add esp, 0xc
mov ecx, dword [ebp - 0x278]
mov byte [ebp - 4], 0xc
lea ecx, [ecx - 0x10]
call fcn.00407864
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00438012
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 0xd
call fcn.0042f275
push 0x4c0c00
lea ecx, [ebp - 0x2bc]
mov byte [ebp - 4], 0xe
call fcn.0042f5f2
lea ecx, [ebp - 0x2ac]
push ecx
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 0xd
call fcn.0042f451
lea ecx, [ebp - 0x234]
call fcn.00401056
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x28c]
lea ecx, [ecx - 0x10]
call fcn.00407864
lea ecx, [esi - 0x10]
jmp 0x40de9e
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call fcn.004913e0
add esp, 0xc
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x2d0]
push eax
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x2cc]
push eax
push ebx
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x280]
mov dword [ebp - 0x2c4], 0x104
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 0x288], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40e0c6
mov eax, dword [ebp - 0x29c]
inc eax
mov dword [ebp - 0x288], eax
push 0x505ab0
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x274], ebx
call fcn.00408fd9
mov eax, dword [ebp - 0x288]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x27c], eax
push dword [ebp - 0x288]
lea ecx, [ebp - 0x284]
call fcn.00406eed
push ebx
push ebx
lea ecx, [ebp - 0x274]
push ecx
push ebx
lea ecx, [ebp - 0x288]
push ecx
push eax
push dword [ebp - 0x270]
push dword [ebp - 0x280]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x278], eax
cmp eax, 0x103
je 0x40e2bc
push 0xffffffffffffffff
lea ecx, [ebp - 0x284]
call fcn.00409a5b
cmp dword [ebp - 0x278], 0
jne 0x40e22a
push ebx
lea ecx, [ebp - 0x2ac]
call fcn.0042f326
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x24c]
push eax
mov byte [ebp - 4], 0x10
call fcn.00438012
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2f0]
mov byte [ebp - 4], 0x11
call fcn.0042f275
push 0x4c102c
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 0x12
call fcn.0042f5f2
lea ecx, [ebp - 0x2f0]
push ecx
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x2f0]
mov byte [ebp - 4], 0x11
call fcn.0042f451
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0x10
call fcn.00401056
push dword [ebp - 0x274]
lea ecx, [ebp - 0x22c]
call fcn.0042f2b1
push str.type
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 0x13
call fcn.0042f5f2
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0x10
call fcn.0042f451
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x2bc]
call fcn.0042fa35
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 0xf
call fcn.0042f451
mov eax, dword [ebp - 0x27c]
inc dword [ebp - 0x270]
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x288], eax
call fcn.00404b74
mov edx, dword [0x507340]
push 0x15
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
pop ecx
idiv ecx
cmp edx, 5
jne 0x40e0f2
movd xmm4, dword [0x507340]
movsd xmm3, qword [0x4c0b60]
xorps xmm2, xmm2
cvtdq2pd xmm4, xmm4
addsd xmm2, xmm3
movapd xmm0, xmm2
mulsd xmm0, xmm2
comisd xmm0, xmm4
jbe 0x40e29d
subsd xmm2, xmm3
divsd xmm3, qword [0x4c0b68]
movapd xmm1, xmm2
mulsd xmm1, xmm2
movapd xmm0, xmm4
subsd xmm0, xmm1
comisd xmm0, xmmword [0x4c0b58]
ja 0x40e27f
jmp 0x40e0f2
lea ecx, [ebp - 0x2bc]
call fcn.0042fe3a
test al, al
je 0x40e30c
push str.empty
lea ecx, [ebp - 0x22c]
call fcn.0042f2f7
push 0x4c0c00
lea ecx, [ebp - 0x2bc]
mov byte [ebp - 4], 0x14
call fcn.0042f5f2
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0xf
call fcn.0042f451
mov ecx, dword [ebp - 0x284]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x28c]
mov dword [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00407864
lea ecx, [esi - 0x10]
call fcn.00407864
lea ecx, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.00407864
jmp 0x40deb1
push 8
pop esi
call fcn.0041143d
test al, al
jne 0x40e42a
mov eax, dword [0x507340]
push 1
test eax, eax
pop ecx
cmove eax, ecx
mov dword [0x507340], eax
cmp dword [ebp - 0x280], 0
je 0x40e445
push dword [ebp - 0x280]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x280], ebx
lea ecx, [ebp - 0x26c]
call fcn.00430a82
push 0x505ab0
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0x19
call fcn.00408fd9
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0x1a
call fcn.00432bf9
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x1b
jb 0x40e48d
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401027
lea eax, [ebp - 0x29c]
push eax
call fcn.00437fc7
add esp, 0x1c
push eax
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0x1c
call fcn.00402394
mov ecx, dword [ebp - 0x29c]
lea ecx, [ecx - 0x10]
call fcn.00407864
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0x1a
call fcn.00401056
mov word [edi], si
mov esi, dword [ebp - 0x274]
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x40e4f0
call fcn.00409bd9
mov dword [edi + 8], eax
call fcn.004111f5
test al, al
jne 0x40e519
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x507340]
test eax, eax
push 7
pop eax
cmove ecx, eax
mov dword [0x507340], ecx
lea ecx, [esi - 0x10]
call fcn.00407864
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], bl
call fcn.004090f2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2bc]
call fcn.0042f451
call fcn.0048f3e1
ret