Function at 0x4102b0
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 0x432990
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebx + 8]
xorps xmm0, xmm0
mov eax, dword [ebx + 0xc]
xor ecx, ecx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], cx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], reloc.OLEAUT32.dll_SysReAllocString
cmp dword [edi + 0x10], ecx
je 0x4104c6
cmp dword [eax + 0x10], ecx
je 0x4104c6
call fcn.0040a800
test al, al
mov ecx, 0x20019
mov edx, 0x20119
cmovne ecx, edx
cmp dword [edi + 0x14], 8
jb 0x410347
mov edi, dword [edi]
lea eax, [ebp - 0x20]
push eax
push ecx
push 0
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4104c6
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0x104
cmp edx, 0x104
jb 0x410397
mov eax, esi
cmp edi, 8
jb 0x410385
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0x104
mov word [eax + 0x208], cx
jmp 0x4103e9
mov ecx, 0x104
mov eax, edi
sub ecx, edx
sub eax, edx
cmp ecx, eax
ja 0x4103dc
mov dword [esi + 0x10], 0x104
mov eax, esi
mov dword [ebp - 0x24], esi
cmp edi, 8
jb 0x4103bc
mov eax, dword [esi]
mov dword [ebp - 0x24], eax
lea edi, [eax + edx*2]
test ecx, ecx
je 0x4103d1
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov word [eax + 0x208], cx
jmp 0x4103e9
push ecx
push ecx
push dword [ebp - 0x28]
push ecx
mov ecx, esi
call fcn.00402c90
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4103f3
mov ecx, dword [esi]
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x14], 8
jb 0x4103fe
mov eax, dword [eax]
lea edx, [ebp - 0x18]
push edx
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push 0
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4104a7
mov edi, dword [esi + 0x10]
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x28], edi
cmp ecx, edi
ja 0x41043f
mov edx, esi
cmp eax, 8
jb 0x410434
mov edx, dword [esi]
xor eax, eax
mov dword [esi + 0x10], ecx
mov word [edx + ecx*2], ax
jmp 0x410494
mov edx, ecx
sub eax, edi
sub edx, edi
cmp edx, eax
ja 0x410487
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [esi + 0x10], ecx
mov dword [ebp - 0x24], esi
jb 0x41045c
mov eax, dword [esi]
mov dword [ebp - 0x24], eax
lea eax, [eax + edi*2]
mov dword [ebp - 0x2c], eax
test edx, edx
je 0x410479
mov edi, dword [ebp - 0x2c]
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
lea eax, [edi + edx]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x410494
push ecx
push edx
push dword [ebp - 0x28]
mov ecx, esi
push edx
call fcn.00402c90
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov ecx, esi
call fcn.00401dc0
jmp 0x4104bd
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4104b1
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
push dword [ebp - 0x20]
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.00420573
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret