Function at 0x40c380
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5396
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2294
call fcn.004beeb0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x22a4]
mov ecx, 0x8a5
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4f3280]
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
mov word [ebp - 0x202c], 0
mov dword [ebp - 0x2034], 0
mov dword [ebp - 0x2038], 0
lea eax, [ebp - 0x2020]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0040c100
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x40c40a
mov eax, dword [ebp - 0x1c]
jmp 0x40c8f9
lea ecx, [ebp - 0x202c]
push ecx
lea edx, [ebp - 0x2020]
push edx
call fcn.0040bdb0
add esp, 8
test eax, eax
jne 0x40c436
push 0x20f
mov ecx, dword [ebp - 0x18]
call fcn.0040af80
jmp 0x40c8f9
mov ecx, dword [ebp - 0x18]
call fcn.0040c0b0
lea eax, [ebp - 0x2020]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0040c100
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x40c45e
mov eax, dword [ebp - 0x1c]
jmp 0x40c8f9
movzx ecx, word [ebp - 0x202c]
mov dword [ebp - 0x22a0], ecx
cmp dword [ebp - 0x22a0], 0x13
jg 0x40c49c
cmp dword [ebp - 0x22a0], 0x13
je 0x40c68f
cmp dword [ebp - 0x22a0], 8
je 0x40c4ad
cmp dword [ebp - 0x22a0], 0x11
je 0x40c709
jmp 0x40c8b9
cmp dword [ebp - 0x22a0], 0x4008
je 0x40c4cd
jmp 0x40c8b9
push 1
lea edx, [ebp - 0x2020]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040a930
mov dword [ebp - 0x2034], eax
jmp 0x40c8b9
mov esi, esp
lea ecx, [ebp - 0x2020]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.004c39d6
add eax, 2
mov dword [ebp - 0x203c], eax
lea ecx, [ebp - 0x2144]
call fcn.0041dc10
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x203c]
push edx
lea ecx, [ebp - 0x2144]
call fcn.00417e60
jmp 0x40c523
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2144]
call fcn.004636c0
test eax, eax
je 0x40c66e
lea ecx, [ebp - 0x2144]
call fcn.004636c0
mov dword [ebp - 0x214c], eax
lea eax, [ebp - 0x2020]
mov dword [ebp - 0x2150], eax
mov dword [ebp - 0x203c], 0
mov ecx, dword [ebp - 0x2150]
movzx edx, word [ecx]
test edx, edx
je 0x40c629
mov esi, esp
mov eax, dword [ebp - 0x2150]
push eax
call dword [sym.imp.USER32.dll_CharNextW]
cmp esi, esp
call fcn.004c39d6
mov dword [ebp - 0x2154], eax
mov ecx, dword [ebp - 0x2150]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x40c5e5
mov eax, dword [ebp - 0x2154]
movzx ecx, word [eax]
cmp ecx, 0x30
jne 0x40c5e5
mov edx, dword [ebp - 0x214c]
mov word [edx], 0
mov eax, dword [ebp - 0x214c]
add eax, 2
mov dword [ebp - 0x214c], eax
mov esi, esp
mov ecx, dword [ebp - 0x2154]
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
cmp esi, esp
call fcn.004c39d6
mov dword [ebp - 0x2150], eax
jmp 0x40c615
mov edx, dword [ebp - 0x214c]
mov eax, dword [ebp - 0x2150]
mov cx, word [eax]
mov word [edx], cx
mov edx, dword [ebp - 0x214c]
add edx, 2
mov dword [ebp - 0x214c], edx
mov eax, dword [ebp - 0x2150]
add eax, 2
mov dword [ebp - 0x2150], eax
mov ecx, dword [ebp - 0x203c]
add ecx, 1
mov dword [ebp - 0x203c], ecx
jmp 0x40c564
mov edx, dword [ebp - 0x214c]
mov word [edx], 0
mov eax, dword [ebp - 0x214c]
add eax, 2
mov dword [ebp - 0x214c], eax
mov ecx, dword [ebp - 0x214c]
mov word [ecx], 0
lea ecx, [ebp - 0x2144]
call fcn.004636c0
push eax
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040a9c0
mov dword [ebp - 0x2034], eax
jmp 0x40c678
mov dword [ebp - 0x2034], 0xe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2144]
call fcn.00417e20
jmp 0x40c8b9
call fcn.00409d80
mov dword [ebp - 0x2168], eax
lea ecx, [ebp - 0x2178]
call fcn.0041dc10
push 0x400
lea eax, [ebp - 0x2020]
push eax
call fcn.00409e10
add esp, 8
mov dword [ebp - 0x2180], eax
mov esi, esp
lea ecx, [ebp - 0x215c]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x2180]
push edx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
cmp esi, esp
call fcn.004c39d6
mov eax, dword [ebp - 0x215c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040a8e0
mov dword [ebp - 0x2034], eax
lea ecx, [ebp - 0x2178]
call fcn.00417930
jmp 0x40c8b9
mov esi, esp
lea edx, [ebp - 0x2020]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.004c39d6
mov dword [ebp - 0x2184], eax
mov eax, dword [ebp - 0x2184]
and eax, 1
je 0x40c73a
mov eax, 0x80004005
jmp 0x40c8f9
mov eax, dword [ebp - 0x2184]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2188], eax
lea ecx, [ebp - 0x2290]
call fcn.0041dc10
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2188]
push ecx
lea ecx, [ebp - 0x2290]
call fcn.00417ea0
jmp 0x40c782
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x2290]
call fcn.004636c0
test eax, eax
jne 0x40c7bf
mov dword [ebp - 0x229c], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2290]
call fcn.00417e20
mov eax, dword [ebp - 0x229c]
jmp 0x40c8f9
mov edx, dword [ebp - 0x2188]
push edx
push 0
lea ecx, [ebp - 0x2290]
call fcn.004636c0
push eax
call fcn.004a1d00
add esp, 0xc
mov dword [ebp - 0x2298], 0
jmp 0x40c7f7
mov eax, dword [ebp - 0x2298]
add eax, 1
mov dword [ebp - 0x2298], eax
mov ecx, dword [ebp - 0x2298]
cmp ecx, dword [ebp - 0x2184]
jge 0x40c86e
mov eax, dword [ebp - 0x2298]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
lea ecx, [ebp - 0x2290]
call fcn.004636c0
add eax, esi
mov dword [ebp - 0x22a4], eax
mov edx, dword [ebp - 0x2298]
and edx, 1
mov esi, 1
sub esi, edx
shl esi, 2
mov eax, dword [ebp - 0x2298]
mov cx, word [ebp + eax*2 - 0x2020]
push ecx
call fcn.0040be90
add esp, 4
movzx edx, al
mov ecx, esi
shl edx, cl
mov eax, dword [ebp - 0x22a4]
movzx ecx, byte [eax]
or ecx, edx
mov edx, dword [ebp - 0x22a4]
mov byte [edx], cl
jmp 0x40c7e8
mov esi, esp
mov eax, dword [ebp - 0x2188]
push eax
lea ecx, [ebp - 0x2290]
call fcn.004636c0
push eax
push 3
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004636c0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.004c39d6
mov dword [ebp - 0x2034], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2290]
call fcn.00417e20
cmp dword [ebp - 0x2034], 0
je 0x40c8dd
mov dword [ebp - 0x2038], 0x204
mov edx, dword [ebp - 0x2034]
push edx
call fcn.0040a190
add esp, 4
jmp 0x40c8f9
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0040c100
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x40c8f7
mov eax, dword [ebp - 0x1c]
jmp 0x40c8f9
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x40c938]
call fcn.004c39f9
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.004a1723
add esp, 0x22a4
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret 0xc