Function at 0x100939a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b9a00
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp eax, 1
je 0x100939e2
cmp eax, 2
jne 0x10093a62
xor edi, edi
cmp eax, 1
jne 0x100939f0
mov edi, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x100939fb
cmp eax, 2
mov ecx, SysReAllocString
cmove edi, ecx
mov esi, dword [ebp + 0x10]
push esi
push 0x1022bf9c
push edi
mov dword [ebp - 0xb0], edi
call fcn.1006f0b0
test al, al
je 0x10093a62
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push esi
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
push 0x1022bf9c
push edi
call fcn.1006f5a0
test al, al
jne 0x10093a69
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.10048a60
xor al, al
jmp 0x10093cfb
lea ecx, [ebp - 0xa4]
call fcn.10005010
lea ecx, [ebp - 0x8c]
call fcn.10005010
lea ecx, [ebp - 0x74]
call fcn.10005010
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x5c], 0
call fcn.10005010
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0xb8], eax
cmp edi, eax
je 0x10093cc0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea ecx, [ebp - 0x38]
call fcn.10006ac0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x28], 0
jne 0x10093ad8
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.10004f10
jmp 0x10093cb1
cmp dword [0x1022bfb0], 8
lea ecx, [ebp - 0xa8]
push ecx
push 0x20219
mov eax, 0x1022bf9c
mov dword [ebp - 0xa8], 0
cmovae eax, dword [0x1022bf9c]
push 0
push eax
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10093c18
mov ecx, dword [ebp - 0xa8]
test ecx, ecx
je 0x10093c18
cmp dword [ebp - 0x24], 8
lea edx, [ebp - 0xac]
push edx
push 0
mov dword [ebp - 0xb4], eax
lea edx, [ebp - 0xb4]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10093b66
push dword [ebp - 0xa8]
jmp 0x10093c16
mov eax, dword [ebp - 0xac]
test eax, eax
jne 0x10093b86
push eax
push 0x101cdc64
lea ecx, [ebp - 0x8c]
call fcn.100055f0
jmp 0x10093c0b
add eax, 2
push eax
call fcn.1019f3bd
mov ecx, dword [ebp - 0xac]
add esp, 4
add ecx, 2
mov esi, eax
push ecx
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xac]
cmp dword [ebp - 0x24], 8
lea ecx, [ebp - 0x38]
cmovae ecx, dword [ebp - 0x38]
push eax
push esi
lea eax, [ebp - 0xb4]
push eax
push 0
push ecx
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10093bfc
mov eax, esi
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10093be0
sub eax, edx
lea ecx, [ebp - 0x8c]
sar eax, 1
push eax
push esi
call fcn.100055f0
push esi
call fcn.1019f0a0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x10093c18
push eax
call esi
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push dword [ebp - 0x28]
cmovae eax, dword [ebp - 0x38]
lea ecx, [ebp - 0xa4]
push eax
call fcn.100055f0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebx + 4]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0xa4]
push eax
cmp dword [ebx + 8], esi
je 0x10093c97
mov ecx, esi
mov dword [ebp - 0xa8], esi
call fcn.10006ac0
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x18]
call fcn.10006ac0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x30]
call fcn.10006ac0
mov byte [ebp - 4], 5
lea ecx, [esi + 0x4c]
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0x48], eax
lea eax, [ebp - 0x58]
push eax
call fcn.10006ac0
mov byte [ebp - 4], 2
add dword [ebx + 4], 0x64
jmp 0x10093c9f
push esi
mov ecx, ebx
call fcn.10094650
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.10004f10
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 0x18
cmp edi, dword [ebp - 0xb8]
jne 0x10093ab4
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.10004f10
lea ecx, [ebp - 0x74]
call fcn.10004f10
lea ecx, [ebp - 0x8c]
call fcn.10004f10
lea ecx, [ebp - 0xa4]
call fcn.10004f10
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.10048a60
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret 0xc