Function at 0x10073950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014bf61
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1019646c]
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.10017640
mov ecx, eax
test ecx, ecx
je 0x10073bae
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x10154eac
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.10019430
test al, al
jne 0x100739e0
push 0
push 0x10154eac
mov ecx, edi
call fcn.1001c180
mov byte [ebp - 4], 1
cmp dword [ebp + 0x18], 0
mov dword [ebp - 0x28], 1
je 0x10073a2d
push str.IsWow64Process
push 0x1015a4f4
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 0x10073a22
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 0x10073a32
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 0x10073b63
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call fcn.10017640
mov ecx, eax
test ecx, ecx
je 0x10073bb8
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.10019430
test al, al
jne 0x10073aa9
test ebx, ebx
jne 0x10073a86
xor ecx, ecx
jmp 0x10073a9f
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10073a90
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.1001c180
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 0x10073aef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x10073b63
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10073b63
add eax, 0x10
push 0x101a05b0
push eax
mov dword [ebp - 0x1c], eax
call fcn.100f68c8
mov esi, eax
add esp, 8
test esi, esi
je 0x10073b63
push dword [ebp - 0x1c]
push 0
push esi
call fcn.101166b0
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 0x10073b5a
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10073b40
sub ecx, edx
sar ecx, 1
je 0x10073b5a
push ecx
push esi
mov ecx, edi
call fcn.1001c180
push esi
call fcn.100f60cd
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10073b71
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 0x10073b90
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.100f5f8d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10013b40
push 0x80004005
call fcn.10013b40
int3