Function at 0x10003990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001fcb7
mov eax, dword fs:[0]
push eax
mov eax, 0xc04c
call fcn.1000f3f0
mov eax, dword [0x1002b130]
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 esi, ecx
mov dword [ebp - 0xc044], 0
mov dword [ebp - 0xc040], 0
mov dword [ebp - 0xc03c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc058], 0
mov dword [ebp - 0xc054], 0
mov dword [ebp - 0xc050], 0
cmp dword [esi + 0xe34], 8
lea eax, [esi + 0xe20]
mov byte [ebp - 4], 1
jb 0x10003a1c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xc014]
call fcn.10001490
lea edx, [esi + 0x20]
mov byte [ebp - 4], 2
test edx, edx
jne 0x10003a37
xor ecx, ecx
jmp 0x10003a4f
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003a40
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xc014]
call fcn.10001eb0
push 1
push 0x10021298
lea ecx, [ebp - 0xc014]
call fcn.10001eb0
lea edx, [esi + 0x220]
test edx, edx
jne 0x10003a7c
xor ecx, ecx
jmp 0x10003a90
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003a81
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xc014]
call fcn.10001eb0
mov eax, dword [esi + 0xe3c]
lea ecx, [esi + 0xe38]
sub eax, dword [ecx]
mov dword [ebp - 0xc04c], ecx
test eax, 0xfffffffc
je 0x10003abd
call fcn.10003940
mov ecx, dword [esi + 0xe48]
lea ebx, [esi + 0xe44]
sub ecx, dword [ebx]
mov eax, 0x2aaaaaab
imul ecx
mov dword [ebp - 0xc034], ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10003b02
push dword [ebp - 0xc034]
lea eax, [ebp - 0xc025]
push eax
push dword [ebx + 4]
push dword [ebx]
call fcn.10001280
mov eax, dword [ebx]
add esp, 0x10
mov dword [ebx + 4], eax
push 0x20019
push dword [ebp - 0xc014]
lea ecx, [ebp - 0xc044]
push VariantInit
call fcn.100028a0
or edi, 0xffffffff
test eax, eax
jne 0x10003d4a
xor ebx, ebx
mov dword [ebp - 0xc024], ebx
push 0x3fff
lea eax, [ebp - 0x8010]
push 0
push eax
call fcn.1000fa70
add esp, 0xc
mov dword [ebp - 0xc02c], 0x3fff
lea eax, [ebp - 0xc02c]
mov dword [ebp - 0xc048], 0x3fff
push eax
lea eax, [ebp - 0xc010]
push eax
push 0
push 0
lea eax, [ebp - 0xc048]
push eax
lea eax, [ebp - 0x8010]
push eax
push ebx
push dword [ebp - 0xc044]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0xc030], eax
test eax, eax
jne 0x10003d3b
lea eax, [ebp - 0x8010]
push eax
lea ecx, [ebp - 0xc038]
call fcn.10001490
xor esi, esi
xor eax, eax
xor edx, edx
mov dword [ebp - 0xc020], esi
mov dword [ebp - 0xc01c], eax
mov dword [ebp - 0xc018], edx
xor ebx, ebx
mov byte [ebp - 4], 4
cmp dword [ebp - 0xc02c], ebx
jbe 0x10003cb7
lea edi, [ebp - 0xc010]
add edi, ebx
cmp edi, eax
jae 0x10003c42
cmp esi, edi
ja 0x10003c42
sub edi, esi
cmp eax, edx
jne 0x10003c39
mov ecx, edx
sub ecx, eax
cmp ecx, 1
jae 0x10003c39
mov ecx, esi
sub ecx, eax
dec ecx
cmp ecx, 1
jb 0x10003db3
sub eax, esi
sub edx, esi
mov esi, edx
or ecx, 0xffffffff
shr esi, 1
inc eax
sub ecx, esi
cmp ecx, edx
jae 0x10003c14
xor edx, edx
jmp 0x10003c16
add edx, esi
cmp edx, eax
lea ecx, [ebp - 0xc020]
cmovb edx, eax
push edx
call fcn.10003340
mov edx, dword [ebp - 0xc018]
mov eax, dword [ebp - 0xc01c]
mov esi, dword [ebp - 0xc020]
test eax, eax
je 0x10003ca0
mov cl, byte [esi + edi]
jmp 0x10003c9e
cmp eax, edx
jne 0x10003c98
mov ecx, edx
sub ecx, eax
cmp ecx, 1
jae 0x10003c98
mov ecx, esi
sub ecx, eax
dec ecx
cmp ecx, 1
jb 0x10003db3
sub eax, esi
sub edx, esi
mov esi, edx
or ecx, 0xffffffff
shr esi, 1
inc eax
sub ecx, esi
cmp ecx, edx
jae 0x10003c73
xor edx, edx
jmp 0x10003c75
add edx, esi
cmp edx, eax
lea ecx, [ebp - 0xc020]
cmovb edx, eax
push edx
call fcn.10003340
mov edx, dword [ebp - 0xc018]
mov eax, dword [ebp - 0xc01c]
mov esi, dword [ebp - 0xc020]
test eax, eax
je 0x10003ca0
mov cl, byte [edi]
mov byte [eax], cl
inc eax
inc ebx
mov dword [ebp - 0xc01c], eax
cmp ebx, dword [ebp - 0xc02c]
jb 0x10003bd1
or edi, 0xffffffff
mov ecx, dword [ebp - 0xc04c]
lea eax, [ebp - 0xc038]
push eax
call fcn.10003f10
mov ecx, dword [ebp - 0xc034]
lea eax, [ebp - 0xc020]
push eax
call fcn.10003fe0
mov eax, dword [ebp - 0xc020]
test eax, eax
je 0x10003d0c
push eax
call fcn.1000e5b0
add esp, 4
mov dword [ebp - 0xc020], 0
mov dword [ebp - 0xc01c], 0
mov dword [ebp - 0xc018], 0
mov edx, dword [ebp - 0xc038]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10003d2f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xc030]
mov ebx, dword [ebp - 0xc024]
inc ebx
mov dword [ebp - 0xc024], ebx
test eax, eax
je 0x10003b30
mov ebx, dword [ebp - 0xc044]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x10003d65
push ebx
call esi
xor ebx, ebx
mov dword [ebp - 0xc044], ebx
mov edx, dword [ebp - 0xc014]
add edx, 0xfffffff0
mov dword [ebp - 0xc040], 0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x10003d90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x10003d97
push ebx
call esi
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.1000ef8b
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call fcn.1000e4f7
int3