Function at 0x10004fd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031631
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x22ac
call fcn.1001e8e0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x22bc]
mov ecx, 0x8ab
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x10040224]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
xor eax, eax
mov word [ebp - 0x202c], ax
mov dword [ebp - 0x2034], 0
mov dword [ebp - 0x2038], 0
lea ecx, [ebp - 0x2020]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.100034a0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x1000505a
mov eax, dword [ebp - 0x1c]
jmp 0x1000556d
lea edx, [ebp - 0x202c]
push edx
lea eax, [ebp - 0x2020]
push eax
call fcn.10005770
add esp, 8
test eax, eax
jne 0x10005086
push 0x20f
mov ecx, dword [ebp - 0x18]
call fcn.10003350
jmp 0x1000556d
mov ecx, dword [ebp - 0x18]
call fcn.100033e0
lea ecx, [ebp - 0x2020]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.100034a0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x100050ae
mov eax, dword [ebp - 0x1c]
jmp 0x1000556d
movzx edx, word [ebp - 0x202c]
mov dword [ebp - 0x22b8], edx
cmp dword [ebp - 0x22b8], 0x13
jg 0x100050ec
cmp dword [ebp - 0x22b8], 0x13
je 0x100052ea
cmp dword [ebp - 0x22b8], 8
je 0x100050fd
cmp dword [ebp - 0x22b8], 0x11
je 0x10005372
jmp 0x1000552d
cmp dword [ebp - 0x22b8], 0x4008
je 0x1000511d
jmp 0x1000552d
push 1
lea eax, [ebp - 0x2020]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10001d90
mov dword [ebp - 0x2034], eax
jmp 0x1000552d
mov esi, esp
lea edx, [ebp - 0x2020]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.1001e274
add eax, 2
mov dword [ebp - 0x203c], eax
lea ecx, [ebp - 0x2144]
call fcn.10007010
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x203c]
push eax
lea ecx, [ebp - 0x2144]
call fcn.100075e0
jmp 0x1000517e
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2144]
call fcn.10008100
test eax, eax
je 0x100052c9
lea ecx, [ebp - 0x2144]
call fcn.10008100
mov dword [ebp - 0x2158], eax
lea ecx, [ebp - 0x2020]
mov dword [ebp - 0x215c], ecx
mov dword [ebp - 0x203c], 0
mov edx, dword [ebp - 0x215c]
movzx eax, word [edx]
test eax, eax
je 0x10005284
mov esi, esp
mov ecx, dword [ebp - 0x215c]
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
cmp esi, esp
call fcn.1001e274
mov dword [ebp - 0x2160], eax
mov edx, dword [ebp - 0x215c]
movzx eax, word [edx]
cmp eax, 0x5c
jne 0x10005240
mov ecx, dword [ebp - 0x2160]
movzx edx, word [ecx]
cmp edx, 0x30
jne 0x10005240
xor eax, eax
mov ecx, dword [ebp - 0x2158]
mov word [ecx], ax
mov edx, dword [ebp - 0x2158]
add edx, 2
mov dword [ebp - 0x2158], edx
mov esi, esp
mov eax, dword [ebp - 0x2160]
push eax
call dword [sym.imp.USER32.dll_CharNextW]
cmp esi, esp
call fcn.1001e274
mov dword [ebp - 0x215c], eax
jmp 0x10005270
mov ecx, dword [ebp - 0x2158]
mov edx, dword [ebp - 0x215c]
mov ax, word [edx]
mov word [ecx], ax
mov ecx, dword [ebp - 0x2158]
add ecx, 2
mov dword [ebp - 0x2158], ecx
mov edx, dword [ebp - 0x215c]
add edx, 2
mov dword [ebp - 0x215c], edx
mov eax, dword [ebp - 0x203c]
add eax, 1
mov dword [ebp - 0x203c], eax
jmp 0x100051bf
xor ecx, ecx
mov edx, dword [ebp - 0x2158]
mov word [edx], cx
mov eax, dword [ebp - 0x2158]
add eax, 2
mov dword [ebp - 0x2158], eax
xor ecx, ecx
mov edx, dword [ebp - 0x2158]
mov word [edx], cx
lea ecx, [ebp - 0x2144]
call fcn.10008100
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.100056b0
mov dword [ebp - 0x2034], eax
jmp 0x100052d3
mov dword [ebp - 0x2034], 0xe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2144]
call fcn.100075a0
jmp 0x1000552d
call fcn.100022b0
mov dword [ebp - 0x2174], eax
lea ecx, [ebp - 0x2184]
call fcn.10007010
mov dword [ebp - 4], 3
push 0x400
lea ecx, [ebp - 0x2020]
push ecx
call fcn.100027a0
add esp, 8
mov dword [ebp - 0x218c], eax
mov esi, esp
lea edx, [ebp - 0x2168]
push edx
push 0
push 0
mov eax, dword [ebp - 0x218c]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
cmp esi, esp
call fcn.1001e274
mov ecx, dword [ebp - 0x2168]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.10005660
mov dword [ebp - 0x2034], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2184]
call fcn.10007030
jmp 0x1000552d
mov esi, esp
lea eax, [ebp - 0x2020]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.1001e274
mov dword [ebp - 0x2190], eax
mov ecx, dword [ebp - 0x2190]
and ecx, 1
je 0x100053a3
mov eax, 0x80004005
jmp 0x1000556d
mov eax, dword [ebp - 0x2190]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2194], eax
lea ecx, [ebp - 0x229c]
call fcn.10007010
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2194]
push edx
lea ecx, [ebp - 0x229c]
call fcn.10007620
jmp 0x100053f6
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x229c]
call fcn.10008100
test eax, eax
jne 0x10005433
mov dword [ebp - 0x22b4], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x229c]
call fcn.100075a0
mov eax, dword [ebp - 0x22b4]
jmp 0x1000556d
mov eax, dword [ebp - 0x2194]
push eax
push 0
lea ecx, [ebp - 0x229c]
call fcn.10008100
push eax
call fcn.1001ea40
add esp, 0xc
mov dword [ebp - 0x22b0], 0
jmp 0x1000546b
mov ecx, dword [ebp - 0x22b0]
add ecx, 1
mov dword [ebp - 0x22b0], ecx
mov edx, dword [ebp - 0x22b0]
cmp edx, dword [ebp - 0x2190]
jge 0x100054e2
mov eax, dword [ebp - 0x22b0]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
lea ecx, [ebp - 0x229c]
call fcn.10008100
add eax, esi
mov dword [ebp - 0x22bc], eax
mov eax, dword [ebp - 0x22b0]
and eax, 1
mov esi, 1
sub esi, eax
shl esi, 2
mov ecx, dword [ebp - 0x22b0]
movzx edx, word [ebp + ecx*2 - 0x2020]
push edx
call fcn.10005860
add esp, 4
movzx eax, al
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x22bc]
movzx edx, byte [ecx]
or edx, eax
mov eax, dword [ebp - 0x22bc]
mov byte [eax], dl
jmp 0x1000545c
mov esi, esp
mov ecx, dword [ebp - 0x2194]
push ecx
lea ecx, [ebp - 0x229c]
call fcn.10008100
push eax
push 3
push 0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.10008100
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.1001e274
mov dword [ebp - 0x2034], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x229c]
call fcn.100075a0
cmp dword [ebp - 0x2034], 0
je 0x10005551
mov dword [ebp - 0x2038], 0x204
mov eax, dword [ebp - 0x2034]
push eax
call fcn.10004c70
add esp, 4
jmp 0x1000556d
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.100034a0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x1000556b
mov eax, dword [ebp - 0x1c]
jmp 0x1000556d
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x100055ac]
call fcn.1001e297
pop eax
pop edx
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.1001e7f8
add esp, 0x22bc
cmp ebp, esp
call fcn.1001e274
mov esp, ebp
pop ebp
ret 0xc