Function at 0x100a0b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101898b1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x101dd594]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x20], 0
mov dword [edi], 0
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x100a0d94
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x10193fcc
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.1001d330
test al, al
jne 0x100a0bc0
push 0
push 0x10193fcc
mov ecx, edi
call fcn.10020080
mov byte [ebp - 4], 1
cmp dword [ebp + 0x18], 0
mov dword [ebp - 0x28], 1
je 0x100a0c0d
push str.IsWow64Process
push 0x1019c850
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100a0c02
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x1c], 0
mov eax, 0x20119
jne 0x100a0c12
mov eax, 0x20019
lea ecx, [ebp - 0x20]
push ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a0d43
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x100a0d9e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.1001d330
test al, al
jne 0x100a0c89
test ebx, ebx
jne 0x100a0c66
xor ecx, ecx
jmp 0x100a0c7f
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a0c70
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.10020080
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push 0
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push 0
push dword [ebp - 0x1c]
movlpd qword [ebp - 0x18], xmm0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x1c]
mov esi, eax
neg esi
sbb esi, esi
add edx, 0xfffffff0
inc esi
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x100a0ccf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x100a0d43
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100a0d43
add eax, 0x10
push 0x101e8778
push eax
mov dword [ebp - 0x1c], eax
call fcn.10128ac8
mov esi, eax
add esp, 8
test esi, esi
je 0x100a0d43
push dword [ebp - 0x1c]
push 0
push esi
call fcn.10150460
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push esi
push 0
push 0
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100a0d3a
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a0d20
sub ecx, edx
sar ecx, 1
je 0x100a0d3a
push ecx
push esi
mov ecx, edi
call fcn.10020080
push esi
call fcn.101282d1
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100a0d57
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x100a0d76
mov ecx, dword [eax]
push eax
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10128191
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10017a40
push 0x80004005
call fcn.10017a40
int3