Function at 0x10073850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10156c81
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x101a154c]
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.10017d20
mov ecx, eax
test ecx, ecx
je 0x10073aae
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x1015fecc
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.10019a00
test al, al
jne 0x100738e0
push 0
push 0x1015fecc
mov ecx, edi
call fcn.1001c8c0
mov byte [ebp - 4], 1
cmp dword [ebp + 0x18], 0
mov dword [ebp - 0x28], 1
je 0x1007392d
push str.IsWow64Process
push 0x10165494
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 0x10073922
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x1c], 0
mov eax, 0xf013f
jne 0x10073932
mov eax, 0xf003f
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 0x10073a63
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call fcn.10017d20
mov ecx, eax
test ecx, ecx
je 0x10073ab8
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.10019a00
test al, al
jne 0x100739a9
test ebx, ebx
jne 0x10073986
xor ecx, ecx
jmp 0x1007399f
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10073990
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.1001c8c0
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 0x100739ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x10073a63
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10073a63
add eax, 0x10
push 0x101ab5a0
push eax
mov dword [ebp - 0x1c], eax
call fcn.100f98f8
mov esi, eax
add esp, 8
test esi, esi
je 0x10073a63
push dword [ebp - 0x1c]
push 0
push esi
call fcn.101213d0
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 0x10073a5a
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10073a40
sub ecx, edx
sar ecx, 1
je 0x10073a5a
push ecx
push esi
mov ecx, edi
call fcn.1001c8c0
push esi
call fcn.100f90fe
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10073a71
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 0x10073a90
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.100f8fe1
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100142b0
push 0x80004005
call fcn.100142b0
int3