Function at 0x1003ff70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c9ad
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100ef034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x10], 0xc8
call fcn.1007686c
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.10037360
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x1004002d
nop dword [eax + eax]
add dword [ebp - 0x10], 2
push esi
call fcn.1007686c
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.10037360
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x1003fff0
test eax, eax
jne 0x1004005f
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x10040066
cmp eax, 2
je 0x10040066
cmp eax, 7
je 0x10040066
cmp eax, 4
jne 0x1004005f
push dword [esi]
push 0x100c8674
push dword [ebp + 8]
call fcn.10040690
add esp, 0xc
jmp 0x1004017c
xor bl, bl
jmp 0x1004017e
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x10], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x10]
cmp word [esi + eax*2], cx
jne 0x1004008a
nop dword [eax]
dec eax
mov dword [ebp - 0x10], eax
cmp word [esi + eax*2], cx
je 0x10040080
lea edi, [eax + 1]
mov dword [ebp - 0x10], edi
call fcn.1003aaa0
mov ecx, eax
test ecx, ecx
je 0x100401b3
test esi, esi
jne 0x100400ab
test edi, edi
jne 0x100401a9
mov eax, dword [ecx]
push 2
push edi
call dword [eax]
test eax, eax
je 0x100401bd
add eax, 0x10
mov dword [ebp - 0x18], eax
test edi, edi
js 0x100401a9
cmp edi, dword [eax - 8]
jg 0x100401a9
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x18]
add edi, edi
mov word [edi + eax], cx
test edi, edi
je 0x1004011a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1004010a
push edi
test esi, esi
je 0x100400fb
push esi
push eax
call fcn.10078580
add esp, 0xc
jmp 0x1004011a
push 0
push eax
call fcn.10078b00
add esp, 0xc
test esi, esi
jne 0x1004011a
call fcn.1007c187
mov dword [eax], 0x16
call fcn.1007bd82
mov byte [ebp - 4], 2
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov edi, dword [ebx]
lea ecx, [eax - 0x10]
sub edi, 0x10
cmp ecx, edi
je 0x10040170
cmp dword [edi + 0xc], 0
jl 0x10040165
mov edx, dword [ecx]
cmp edx, dword [edi]
jne 0x10040165
call fcn.10040870
mov dword [ebp - 0x20], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1004015e
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [ebx], eax
jmp 0x10040170
push dword [eax - 0xc]
mov ecx, ebx
push eax
call fcn.1003f950
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.10039130
mov bl, 1
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.1007686c
add esp, 4
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.100374f0
push 0x80004005
call fcn.100374f0
call fcn.1003fa60
int3