Function at 0x100a28b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101923e1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x101ed40c]
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.10043000
mov ecx, eax
test ecx, ecx
je 0x100a2b14
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x1019e5ec
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.10042d30
test al, al
jne 0x100a2940
push 0
push 0x1019e5ec
mov ecx, edi
call fcn.10043c10
mov byte [ebp - 4], 1
cmp dword [ebp + 0x18], 0
mov dword [ebp - 0x28], 1
je 0x100a298d
push str.IsWow64Process
push 0x101a3dd8
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 0x100a2982
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 0x100a2992
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 0x100a2ac3
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call fcn.10043000
mov ecx, eax
test ecx, ecx
je 0x100a2b1e
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.10042d30
test al, al
jne 0x100a2a09
test ebx, ebx
jne 0x100a29e6
xor ecx, ecx
jmp 0x100a29ff
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a29f0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.10043c10
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]
neg eax
sbb esi, esi
add edx, 0xfffffff0
inc esi
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a2a4d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x100a2ac3
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100a2ac3
add eax, 0x10
push 0x101f3f0c
push eax
mov dword [ebp - 0x1c], eax
call fcn.10126b96
mov esi, eax
add esp, 8
test esi, esi
je 0x100a2ac3
push dword [ebp - 0x1c]
push 0
push esi
call fcn.1014de30
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 0x100a2aba
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a2aa0
sub ecx, edx
sar ecx, 1
je 0x100a2aba
push ecx
push esi
mov ecx, edi
call fcn.10043c10
push esi
call fcn.1012694d
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100a2ad7
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 0x100a2af6
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.10126919
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10042d10
push 0x80004005
call fcn.10042d10
int3