Function at 0x100a1890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10192251
mov eax, dword fs:[0]
push eax
sub esp, 0x48
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 ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 2
mov dword [ebx], 0
call fcn.10043000
mov ecx, eax
test ecx, ecx
je 0x100a1dee
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x1019e5ec
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.10042d30
test al, al
jne 0x100a1916
push 0
push 0x1019e5ec
mov ecx, ebx
call fcn.10043c10
mov byte [ebp - 4], 2
mov dword [ebp - 0x50], 1
call fcn.10043000
mov ecx, eax
test ecx, ecx
je 0x100a1df8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x40], eax
push 0x1019e5ec
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.10042d30
test al, al
jne 0x100a195f
push 0
push 0x1019e5ec
lea ecx, [ebp - 0x40]
call fcn.10043c10
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
push eax
call fcn.10042e70
add eax, 0x10
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100a2050
mov eax, dword [ebp - 0x40]
add esp, 8
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x48], eax
push eax
call fcn.10042e70
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.100a1540
mov esi, dword [ebp - 0x4c]
mov ecx, eax
mov eax, dword [ebp + 0x14]
add esp, 4
or edi, 0xffffffff
mov dword [ebp - 0x44], ecx
test eax, eax
jne 0x100a1a46
push 0x20019
push dword [ebp - 0x18]
call fcn.100a21e0
add esp, 8
lea ecx, [ebp - 0x34]
push ecx
push eax
push 0
push esi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a1a40
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.10042e70
add esp, 4
xorps xmm0, xmm0
movlpd qword [ebp - 0x30], xmm0
lea edi, [eax + 0x10]
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push edi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a1a32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x100a1a40
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x44]
dec eax
cmp eax, 0xa
ja case.0x100a1a57.5
movzx eax, byte [eax + 0x100a1e1c]
jmp dword [eax*4 + 0x100a1e04]
push dword [ebp - 0x18]
lea eax, [esi - 0x10]
push dword [ebp + 0x10]
push ecx
push ecx
mov edi, esp
push eax
mov dword [ebp - 0x1c], edi
call fcn.10042e70
add eax, 0x10
add esp, 4
mov dword [edi], eax
lea eax, [ebp - 0x14]
push eax
call fcn.100a28b0
add esp, 0x14
push eax
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.1004e420
mov edx, dword [ebp - 0x14]
jmp 0x100a1d41
push dword [ebp - 0x18]
lea eax, [esi - 0x10]
push dword [ebp + 0x10]
push ecx
push ecx
mov edi, esp
push eax
mov dword [ebp - 0x1c], edi
call fcn.10042e70
add eax, 0x10
add esp, 4
mov dword [edi], eax
lea eax, [ebp - 0x14]
push eax
call fcn.100a24d0
add esp, 0x14
push eax
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.1004e420
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a1af1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x101a23dc
push 0x101a3df8
mov ecx, ebx
call fcn.1005e260
jmp case.0x100a1a57.5
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
lea eax, [esi - 0x10]
push eax
call fcn.10042e70
add eax, 0x10
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 9
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 8
mov dword [ebp - 0x38], 0
je 0x100a1b7c
push str.IsWow64Process
push 0x101a3dd8
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100a1b71
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x14]
cmp dword [ebp - 0x18], 0
mov eax, 0xf013f
jne 0x100a1b81
mov eax, 0xf003f
lea ecx, [ebp - 0x38]
push ecx
push eax
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a1bc0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x100a1bc0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], 0xb
je 0x100a1bce
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
add edx, 0xfffffff0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
mov eax, edi
mov byte [ebp - 4], 6
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a1bf8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x3c]
push dword [ebp - 0x14]
push str._I64d
push ebx
call fcn.1004e910
add esp, 0x10
jmp case.0x100a1a57.5
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [esi - 0x10]
push eax
call fcn.10042e70
add eax, 0x10
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x34], 0
je 0x100a1c8d
push str.IsWow64Process
push 0x101a3dd8
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x100a1c82
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x3c]
cmp dword [ebp - 0x24], 0
mov eax, 0xf013f
jne 0x100a1c92
mov eax, 0xf003f
lea ecx, [ebp - 0x34]
push ecx
push eax
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a1cd1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x100a1cd1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
add edx, 0xfffffff0
mov byte [ebp - 4], 6
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a1cf5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x1c]
push 0x101a3db4
push ebx
call fcn.1004e910
add esp, 0xc
jmp case.0x100a1a57.5
push dword [ebp - 0x18]
lea eax, [esi - 0x10]
push dword [ebp + 0x10]
push ecx
push ecx
mov edi, esp
push eax
mov dword [ebp - 0x1c], edi
call fcn.10042e70
add eax, 0x10
add esp, 4
mov dword [edi], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100a2260
add esp, 0x14
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.1004e420
mov edx, dword [ebp - 0x1c]
or eax, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg case.0x100a1a57.5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a1d7b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x48]
mov eax, esi
mov byte [ebp - 4], 2
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a1d96
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a1db4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x100a1dd0
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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
nop
pop esi
sbb cl, byte [edx]
adc byte [eax], cl
sbb eax, 0x1c11100a
or dl, byte [eax]
pushfd
sbb cl, byte [edx]
adc byte [edi], al
sbb ecx, dword [edx]
adc byte [ebp + 0x1d], bl
or dl, byte [eax]
add byte [eax], al
add dword [edx], eax
add eax, 84214533
add eax, -858993660
int3