Function at 0x100087c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10013971
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x225c
call fcn.10012970
mov eax, dword [0x1001a020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x223c], ecx
xor eax, eax
mov word [ebp - 0x2238], ax
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2258], 0
lea ecx, [ebp - 0x2014]
push ecx
mov ecx, dword [ebp - 0x223c]
call fcn.1000afc0
mov dword [ebp - 0x2220], eax
cmp dword [ebp - 0x2220], 0
jge 0x10008845
mov eax, dword [ebp - 0x2220]
jmp 0x10008d6c
lea edx, [ebp - 0x2238]
push edx
lea eax, [ebp - 0x2014]
push eax
call fcn.1000d260
add esp, 8
test eax, eax
jne 0x10008874
push 0x20f
mov ecx, dword [ebp - 0x223c]
call fcn.1000a830
jmp 0x10008d6c
mov ecx, dword [ebp - 0x223c]
call fcn.1000cd60
lea ecx, [ebp - 0x2014]
push ecx
mov ecx, dword [ebp - 0x223c]
call fcn.1000afc0
mov dword [ebp - 0x2220], eax
cmp dword [ebp - 0x2220], 0
jge 0x100088ab
mov eax, dword [ebp - 0x2220]
jmp 0x10008d6c
movzx edx, word [ebp - 0x2238]
mov dword [ebp - 0x2234], edx
cmp dword [ebp - 0x2234], 0x13
jg 0x100088e9
cmp dword [ebp - 0x2234], 0x13
je 0x10008ac6
cmp dword [ebp - 0x2234], 8
je 0x100088fa
cmp dword [ebp - 0x2234], 0x11
je 0x10008b7d
jmp 0x10008d20
cmp dword [ebp - 0x2234], 0x4008
je 0x1000891a
jmp 0x10008d20
push 1
lea eax, [ebp - 0x2014]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1000cc00
mov dword [ebp - 0x222c], eax
jmp 0x10008d20
lea edx, [ebp - 0x2014]
push edx
call dword [sym.imp.MSVCR120.dll_wcslen]
add esp, 4
add eax, 2
mov dword [ebp - 0x2240], eax
lea ecx, [ebp - 0x221c]
call fcn.10007100
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2240]
push eax
lea ecx, [ebp - 0x221c]
call fcn.10008e10
jmp 0x10008963
mov dword [ebp - 4], 0
jmp 0x10008973
lea ecx, [ebp - 0x221c]
call fcn.10007fa0
test eax, eax
je 0x10008aa5
lea ecx, [ebp - 0x221c]
call fcn.10007fa0
mov dword [ebp - 0x2224], eax
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x2228], ecx
mov dword [ebp - 0x2240], 0
mov edx, dword [ebp - 0x2228]
movzx eax, word [edx]
test eax, eax
je 0x10008a60
mov ecx, dword [ebp - 0x2228]
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x224c], eax
mov edx, dword [ebp - 0x2228]
movzx eax, word [edx]
cmp eax, 0x5c
jne 0x10008a1c
mov ecx, dword [ebp - 0x224c]
movzx edx, word [ecx]
cmp edx, 0x30
jne 0x10008a1c
xor eax, eax
mov ecx, dword [ebp - 0x2224]
mov word [ecx], ax
mov edx, dword [ebp - 0x2224]
add edx, 2
mov dword [ebp - 0x2224], edx
mov eax, dword [ebp - 0x224c]
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x2228], eax
jmp 0x10008a4c
mov ecx, dword [ebp - 0x2224]
mov edx, dword [ebp - 0x2228]
mov ax, word [edx]
mov word [ecx], ax
mov ecx, dword [ebp - 0x2224]
add ecx, 2
mov dword [ebp - 0x2224], ecx
mov edx, dword [ebp - 0x2228]
add edx, 2
mov dword [ebp - 0x2228], edx
mov eax, dword [ebp - 0x2240]
add eax, 1
mov dword [ebp - 0x2240], eax
jmp 0x100089ad
xor ecx, ecx
mov edx, dword [ebp - 0x2224]
mov word [edx], cx
mov eax, dword [ebp - 0x2224]
add eax, 2
mov dword [ebp - 0x2224], eax
xor ecx, ecx
mov edx, dword [ebp - 0x2224]
mov word [edx], cx
lea ecx, [ebp - 0x221c]
call fcn.10007fa0
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000cb60
mov dword [ebp - 0x222c], eax
jmp 0x10008aaf
mov dword [ebp - 0x222c], 0xe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x221c]
call fcn.100079c0
jmp 0x10008d20
call fcn.1000d360
mov dword [ebp - 0x226c], eax
lea ecx, [ebp - 0x2254]
call fcn.10007100
mov dword [ebp - 4], 3
push 0x400
lea ecx, [ebp - 0x2014]
push ecx
call fcn.10006b90
add esp, 8
mov dword [ebp - 0x2268], eax
lea edx, [ebp - 0x225c]
push edx
push 0
push 0
mov eax, dword [ebp - 0x2268]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov dword [ebp - 0x2220], eax
cmp dword [ebp - 0x2220], 0
jge 0x10008b4d
mov ecx, dword [ebp - 0x2220]
mov dword [ebp - 0x2260], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2254]
call fcn.10007800
mov eax, dword [ebp - 0x2260]
jmp 0x10008d6c
mov edx, dword [ebp - 0x225c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000cb30
mov dword [ebp - 0x222c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2254]
call fcn.10007800
jmp 0x10008d20
lea ecx, [ebp - 0x2014]
push ecx
call dword [sym.imp.MSVCR120.dll_wcslen]
add esp, 4
mov dword [ebp - 0x2244], eax
mov edx, dword [ebp - 0x2244]
and edx, 1
je 0x10008ba8
mov eax, 0x80004005
jmp 0x10008d6c
mov eax, dword [ebp - 0x2244]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2248], eax
lea ecx, [ebp - 0x2118]
call fcn.10007100
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2248]
push eax
lea ecx, [ebp - 0x2118]
call fcn.10008de0
jmp 0x10008be9
mov dword [ebp - 4], 4
jmp 0x10008bf9
lea ecx, [ebp - 0x2118]
call fcn.10007fa0
test eax, eax
jne 0x10008c2f
mov dword [ebp - 0x2264], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2118]
call fcn.100079c0
mov eax, dword [ebp - 0x2264]
jmp 0x10008d6c
mov ecx, dword [ebp - 0x2248]
push ecx
push 0
lea ecx, [ebp - 0x2118]
call fcn.10007fa0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x2230], 0
jmp 0x10008c67
mov edx, dword [ebp - 0x2230]
add edx, 1
mov dword [ebp - 0x2230], edx
mov eax, dword [ebp - 0x2230]
cmp eax, dword [ebp - 0x2244]
jge 0x10008cde
mov eax, dword [ebp - 0x2230]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
lea ecx, [ebp - 0x2118]
call fcn.10007fa0
add eax, esi
mov dword [ebp - 0x2250], eax
mov ecx, dword [ebp - 0x2230]
and ecx, 1
mov esi, 1
sub esi, ecx
shl esi, 2
mov edx, dword [ebp - 0x2230]
movzx eax, word [ebp + edx*2 - 0x2014]
push eax
call fcn.10009a00
add esp, 4
movzx edx, al
mov ecx, esi
shl edx, cl
mov eax, dword [ebp - 0x2250]
movzx ecx, byte [eax]
or ecx, edx
mov edx, dword [ebp - 0x2250]
mov byte [edx], cl
jmp 0x10008c58
mov eax, dword [ebp - 0x2248]
push eax
lea ecx, [ebp - 0x2118]
call fcn.10007fa0
push eax
push 3
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10007fa0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x222c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2118]
call fcn.100079c0
cmp dword [ebp - 0x222c], 0
je 0x10008d44
mov dword [ebp - 0x2258], 0x204
mov edx, dword [ebp - 0x222c]
push edx
call fcn.10009250
add esp, 4
jmp 0x10008d6c
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x223c]
call fcn.1000afc0
mov dword [ebp - 0x2220], eax
cmp dword [ebp - 0x2220], 0
jge 0x10008d6a
mov eax, dword [ebp - 0x2220]
jmp 0x10008d6c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100128d6
mov esp, ebp
pop ebp
ret 0xc