Function at 0x1010aac0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019c986
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x10211a50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x29c], ecx
mov dword [ebp - 0x288], 0
push 0x101a6614
lea ecx, [ebp - 0x248]
call fcn.100e9b90
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
lea ecx, [ebp - 0x230]
call fcn.100e9b70
mov byte [ebp - 4], 1
mov dword [ebp - 0x290], 0x101a6628
lea ecx, [ebp - 0x27c]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp - 0x290]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x284], eax
cmp dword [ebp - 0x284], 0
jne 0x1010ac96
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.10161e50
add esp, 0xc
mov dword [ebp - 0x28c], 1
lea edx, [ebp - 0x280]
push edx
push 0
lea eax, [ebp - 0x28c]
push eax
push 0
lea ecx, [ebp - 0x248]
call fcn.100ea070
push eax
mov ecx, dword [ebp - 0x27c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1010ac03
lea edx, [ebp - 0x280]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x28c]
push ecx
push 0
lea ecx, [ebp - 0x248]
call fcn.100ea070
push eax
mov edx, dword [ebp - 0x27c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.100e9cf0
jmp 0x1010ac84
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
lea edx, [ebp - 0x278]
push edx
call fcn.100e49e0
add esp, 4
mov dword [ebp - 0x294], eax
mov eax, dword [ebp - 0x294]
push eax
lea ecx, [ebp - 0x230]
call fcn.100e9c60
lea ecx, [ebp - 0x278]
call fcn.100e9ca0
lea ecx, [ebp - 0x230]
call fcn.100e9690
shl eax, 1
mov dword [ebp - 0x280], eax
mov ecx, dword [ebp - 0x280]
push ecx
lea ecx, [ebp - 0x230]
call fcn.100ea070
push eax
push 1
push 0
lea ecx, [ebp - 0x248]
call fcn.100ea070
push eax
mov edx, dword [ebp - 0x27c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x27c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1010ad45
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
lea edx, [ebp - 0x27c]
push edx
mov eax, dword [ebp - 0x290]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1010ad45
lea ecx, [ebp - 0x260]
push ecx
call fcn.100e49e0
add esp, 4
mov dword [ebp - 0x298], eax
mov edx, dword [ebp - 0x298]
push edx
lea ecx, [ebp - 0x230]
call fcn.100e9c60
lea ecx, [ebp - 0x260]
call fcn.100e9ca0
lea ecx, [ebp - 0x230]
call fcn.100e9690
shl eax, 1
mov dword [ebp - 0x280], eax
mov eax, dword [ebp - 0x280]
push eax
lea ecx, [ebp - 0x230]
call fcn.100ea070
push eax
push 1
push 0
lea ecx, [ebp - 0x248]
call fcn.100ea070
push eax
mov ecx, dword [ebp - 0x27c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x284], eax
mov edx, dword [ebp - 0x27c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x230]
call fcn.100ea070
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.100e1d90
add esp, 8
mov ecx, dword [ebp - 0x288]
or ecx, 1
mov dword [ebp - 0x288], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.100e9ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.100e9ca0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1016177d
mov esp, ebp
pop ebp
ret 8