Function at 0x100c8510
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ee0c6
mov eax, dword fs:[0]
push eax
sub esp, 0x924
mov eax, dword [0x101170e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8ec], ecx
cmp dword [ebp + 8], 0
jne 0x100c8551
mov eax, 1
jmp 0x100c8837
mov dword [ebp - 0x8e0], 0
mov dword [ebp - 0x90c], 0
push 0x1010162c
mov eax, dword [ebp - 0x8ec]
add eax, 0x48
push eax
push 0x10101630
lea ecx, [ebp - 0x908]
call fcn.100c1870
mov dword [ebp - 0x8f4], eax
mov ecx, dword [ebp - 0x8f4]
mov dword [ebp - 0x8f8], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x8f8]
push edx
lea eax, [ebp - 0x904]
push eax
call fcn.100c51c0
add esp, 0xc
mov dword [ebp - 0x8fc], eax
mov ecx, dword [ebp - 0x8fc]
mov dword [ebp - 0x900], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x900]
push edx
lea eax, [ebp - 0x8e4]
push eax
call fcn.100c5270
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x904]
call fcn.100c1ae0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x908]
call fcn.100c1ae0
lea ecx, [ebp - 0x90c]
push ecx
lea edx, [ebp - 0x8e0]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x8e4]
call fcn.10024da0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x100c865a
mov dword [ebp - 0x910], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8e4]
call fcn.100c1ae0
mov eax, dword [ebp - 0x910]
jmp 0x100c8837
lea eax, [ebp - 0x930]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [ebp - 0x930]
sub ecx, 0xd53e8000
mov edx, dword [ebp - 0x92c]
sbb edx, 0x19db1de
push 0
push 0x2710
push edx
push ecx
call fcn.100854e0
mov dword [ebp - 0x928], eax
mov dword [ebp - 0x924], edx
push 0xc8
push 0
lea eax, [ebp - 0xd8]
push eax
call fcn.10088fa0
add esp, 0xc
push 0xa
push 0x64
lea ecx, [ebp - 0xd8]
push ecx
mov edx, dword [ebp - 0x924]
push edx
mov eax, dword [ebp - 0x928]
push eax
call fcn.100a78b2
add esp, 0x14
push 0x800
push 0
lea ecx, [ebp - 0x8d8]
push ecx
call fcn.10088fa0
add esp, 0xc
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0
je 0x100c86fd
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x8f0], ecx
jmp 0x100c8707
mov dword [ebp - 0x8f0], 0x10100aa4
mov edx, dword [ebp - 0x8f0]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
mov ecx, dword [ebp - 0x8ec]
add ecx, 0x4c
call fcn.100c67c0
push eax
push str.version_s_exc_type_d_code_d_fpe_subcode_d_expression_s
push 0x400
lea eax, [ebp - 0x8d8]
push eax
call fcn.1000dd10
add esp, 0x20
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x8ec]
add ecx, 0x4c
call fcn.100c8860
lea ecx, [ebp - 0x8d8]
mov dword [ebp - 0x8dc], ecx
mov edx, dword [ebp - 0x8dc]
add edx, 2
mov dword [ebp - 0x914], edx
mov eax, dword [ebp - 0x8dc]
mov cx, word [eax]
mov word [ebp - 0x8e6], cx
add dword [ebp - 0x8dc], 2
cmp word [ebp - 0x8e6], 0
jne 0x100c8776
mov edx, dword [ebp - 0x8dc]
sub edx, dword [ebp - 0x914]
sar edx, 1
mov dword [ebp - 0x918], edx
mov eax, dword [ebp - 0x918]
shl eax, 1
push eax
lea ecx, [ebp - 0x8d8]
push ecx
push 1
push 0
lea edx, [ebp - 0xd8]
push edx
mov eax, dword [ebp - 0x8e0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100c8808
mov ecx, dword [ebp - 0x8e0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x91c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8e4]
call fcn.100c1ae0
mov eax, dword [ebp - 0x91c]
jmp 0x100c8837
mov edx, dword [ebp - 0x8e0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x920], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8e4]
call fcn.100c1ae0
mov eax, dword [ebp - 0x920]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008511a
mov esp, ebp
pop ebp
ret 4