Function at 0x10047860
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009226d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x100b5164]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov edx, dword [edi + 4]
push ecx
mov ecx, dword [edi]
call fcn.10025120
mov eax, dword [edi]
add esp, 4
mov dword [edi + 4], eax
cmp eax, dword [edi + 8]
je 0x100478eb
mov ecx, edi
call fcn.100248b0
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push 0x100
push eax
push 0x20019
push dword [ebp - 0x34]
mov edx, SysStringLen
call fcn.10088242
add esp, 0x10
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x10047b2e
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10047921
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x10047b2e
cmp dword [ebp - 0x2c], 7
je 0x10047952
mov esi, 0x65d
jmp 0x10047b31
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x100479a8
cmp eax, 0x7fffffff
ja 0x10047b5f
push eax
lea ecx, [ebp - 0x20]
call fcn.10088242
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x20]
push ecx
push 0
push eax
lea esi, [ecx + eax]
call fcn.10067700
mov ecx, dword [ebp - 0x20]
add esp, 0xc
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x38]
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x100479b4
mov esi, dword [esi]
lea eax, [ebp - 0x24]
push eax
push ecx
push 0
push 0
push esi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x10047ae9
mov eax, dword [ebp - 0x24]
mov edx, dword [edi + 4]
push ecx
mov ecx, dword [edi]
mov dword [ebp - 0x34], eax
call fcn.10025120
mov ecx, dword [ebp - 0x20]
add esp, 4
mov eax, dword [edi]
mov esi, ecx
mov dword [edi + 4], eax
cmp word [ecx], 0
je 0x10047aec
nop word [eax + eax]
mov eax, dword [ebp - 0x34]
dec eax
add eax, ecx
cmp esi, eax
jae 0x10047aec
mov ecx, esi
mov dword [ebp - 0x50], 0
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10047a30
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x50]
call fcn.10088242
mov byte [ebp - 4], 2
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x10047a77
movups xmm0, xmmword [ebp - 0x50]
mov edx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x40]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [edi + 4], 0x18
mov word [ebp - 0x50], ax
jmp 0x10047a86
lea ecx, [ebp - 0x50]
push ecx
push eax
mov ecx, edi
call fcn.10088242
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x10047ac1
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10047ab7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047b64
push edx
push ecx
call fcn.10088242
add esp, 8
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x20]
add eax, esi
shr eax, 1
push eax
push esi
call fcn.10088242
add esp, 8
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], 0
je 0x10047ae9
mov ecx, dword [ebp - 0x20]
jmp 0x10047a00
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x10047b2e
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10047b0f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047b64
push edx
push ecx
call fcn.10088242
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x10047b3f
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006552a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1000b390
call fcn.1006a0c2
int3