Function at 0x10003240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ab70
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x10027010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.10008b70
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x10003286
push 0x80004005
call fcn.10009010
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x100032b8
push dword [esi]
lea eax, [ebp - 0x14]
push str.SystemCurrentControlSetServices_sServiceConfiguration
push eax
call fcn.10008690
add esp, 0xc
jmp 0x100032cc
push eax
push dword [esi]
lea eax, [ebp - 0x14]
push str.SystemCurrentControlSetServices_sServiceConfiguration_s
push eax
call fcn.10008690
add esp, 0x10
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x14]
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x1000330d
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ebx
xor eax, eax
test edi, edi
sete al
test eax, eax
jne 0x1000332d
test edi, edi
jle 0x10003325
movzx edi, di
or edi, 0x80070000
or ebx, 0xffffffff
jmp 0x10003700
call fcn.10008b70
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x10003349
push 0x80004005
call fcn.10009010
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
xor edi, edi
mov dword [ebp - 0x28], 0x104
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
mov dword [ebp - 0x24], edi
jge 0x1000338b
push 0x104
lea ecx, [ebp - 0x10]
call fcn.10008fa0
mov eax, dword [ebp - 0x10]
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0
lea ecx, [ebp - 0x28]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
mov eax, dword [ebp - 0x10]
test edi, edi
sete bl
push dword [eax - 8]
push eax
call fcn.1000a94b
mov edx, eax
add esp, 8
test edx, edx
js 0x10003686
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x10003686
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
test bl, bl
je 0x100036c0
mov eax, dword [ebp - 0x10]
push dword [eax - 0xc]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffW]
mov eax, dword [ebp - 0x2c]
cmp eax, 2
je 0x100034fe
cmp eax, 1
je 0x100034fe
cmp eax, 4
jne 0x1000349e
mov ebx, dword [ebp - 0x4c]
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x1000327c
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 4
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x18], 0
push 8
mov byte [ebp - 4], 5
call fcn.1000a812
add esp, 4
test eax, eax
je 0x10003465
mov dword [eax], vtable.CValueHolder::CHolder_unsigned_long_int_.0
mov dword [eax + 4], edi
jmp 0x10003467
xor eax, eax
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 6
push dword [ebp - 0x10]
call fcn.10005830
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1000367a
mov eax, dword [ecx]
push 1
call dword [eax]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
inc edi
jmp 0x1000335c
cmp eax, 0xb
jne 0x10003677
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x4c]
call fcn.10007ed0
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x40]
call fcn.10005a80
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 7
push dword [ebp - 0x10]
call fcn.10005830
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100034e8
mov eax, dword [ecx]
push 1
call dword [eax]
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x4c]
inc edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
jmp 0x1000335c
call fcn.10008b70
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x1000327c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 3
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
mov dword [ebp - 0x18], 0x104
jge 0x1000354f
push 0x104
lea ecx, [ebp + 8]
call fcn.10008fa0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x4c]
call fcn.10007f20
mov edi, eax
mov eax, dword [ebp + 8]
push dword [eax - 8]
push eax
call fcn.1000a94b
mov edx, eax
add esp, 8
test edx, edx
js 0x10003686
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx - 8]
jg 0x10003686
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp + 8]
mov word [eax + edx*2], cx
cmp edi, 0xea
jne 0x1000360c
mov eax, dword [ebp + 8]
mov edx, 1
mov dword [ebp - 0x18], 0x30c
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x30c
or ecx, edx
jge 0x100035c9
push 0x30c
lea ecx, [ebp + 8]
call fcn.10008fa0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x4c]
call fcn.10007f20
mov edi, eax
mov eax, dword [ebp + 8]
push dword [eax - 8]
push eax
call fcn.1000a94b
mov edx, eax
add esp, 8
test edx, edx
js 0x10003686
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx - 8]
jg 0x10003686
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp + 8]
mov word [eax + edx*2], cx
xor eax, eax
test edi, edi
sete al
test eax, eax
je 0x10003690
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.10008890
lea ecx, [ebp - 0x20]
call fcn.100059c0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 4
push dword [ebp - 0x10]
call fcn.10005830
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1000364f
mov eax, dword [ecx]
push 1
call dword [eax]
mov byte [ebp - 4], 2
or ecx, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov dword [ebp - 0x20], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10003677
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
inc edi
jmp 0x1000335c
push 0x80070057
call fcn.10009010
test edi, edi
jle 0x1000369d
movzx edi, di
or edi, 0x80070000
mov byte [ebp - 4], 2
or ecx, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100036dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100036dd
test edi, edi
je 0x100036db
cmp edi, 0x103
je 0x100036db
test edi, edi
jle 0x100036dd
movzx edi, di
or edi, 0x80070000
jmp 0x100036dd
xor edi, edi
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x10]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10003700
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x1000370e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x1000372c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8