Function at 0x40bfba
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2108]
mov eax, 0x2108
call fcn.00435870
push 0xffffffffffffffff
push 0x4ab25a
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4e8008]
xor eax, ebp
mov dword [ebp + 0x2104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 0x2110]
mov dword [ebp - 0x24], esi
mov eax, dword [ebp + 0x2114]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x2118]
mov dword [ebp - 0x38], eax
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp + 0x104]
push eax
call fcn.0040c6be
test eax, eax
js 0x40c3b1
lea edx, [ebp - 0x14]
lea ecx, [ebp + 0x104]
call fcn.0040be84
test eax, eax
jne 0x40c053
mov eax, 0x80020009
jmp 0x40c3b1
mov ecx, ebx
call fcn.0040ce39
lea eax, [ebp + 0x104]
push eax
mov ecx, ebx
call fcn.0040c6be
test eax, eax
js 0x40c3b1
movzx eax, word [ebp - 0x14]
sub eax, 8
push 2
pop edi
je 0x40c356
sub eax, 9
je 0x40c1ec
sub eax, edi
je 0x40c19b
sub eax, 0x3ff5
jne 0x40c39e
lea ecx, [ebp + 0x104]
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x40c0a7
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 2]
mov dword [ebp], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
mul edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
cmp edx, ebx
ja 0x40c3d6
cmp eax, 0xffffffff
ja 0x40c3d6
cmp eax, 0x100
jbe 0x40c0ed
push eax
lea ecx, [ebp]
call fcn.0040b896
jmp 0x40c0f3
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], ebx
jmp 0x40c10c
mov esi, dword [ebp]
test esi, esi
je 0x40c17b
lea eax, [ebp + 0x104]
cmp word [ebp + 0x104], 0
mov dword [ebp - 0x14], eax
je 0x40c160
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
mov eax, dword [ebp - 0x14]
movzx edx, word [eax]
cmp edx, 0x5c
jne 0x40c153
push 0x30
pop eax
cmp word [ecx], ax
mov eax, dword [ebp - 0x14]
jne 0x40c153
xor eax, eax
mov word [esi], ax
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
jmp 0x40c158
mov word [esi], dx
add eax, edi
add esi, 2
cmp word [eax], bx
jmp 0x40c121
xor eax, eax
mov word [esi], ax
mov word [esi + edi], ax
push dword [ebp]
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
call fcn.0040beec
mov esi, eax
jmp 0x40c17e
push 0xe
pop esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40c38e
lea ecx, [ebp]
call fcn.0040b853
jmp 0x40c38e
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
jns 0x40c1c7
or dword [ebp - 4], 0xffffffff
jmp 0x40c3b1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
push 4
lea eax, [ebp - 0x20]
push eax
push 4
push ebx
push dword [ebp - 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
jmp 0x40c38e
lea ecx, [ebp + 0x104]
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x40c1f7
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], ecx
test cl, 1
jne 0x40c297
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
mov dword [ebp], ebx
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
cmp eax, 0x100
jbe 0x40c24a
push eax
lea ecx, [ebp]
call fcn.0040b896
mov eax, dword [ebp - 0x20]
jmp 0x40c250
lea ecx, [ebp + 4]
mov dword [ebp], ecx
mov dword [ebp - 4], 4
mov esi, dword [ebp - 0x28]
jmp 0x40c27d
cmp dword [ebp], 0
jne 0x40c2a1
or dword [ebp - 4], 0xffffffff
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40c297
lea ecx, [ebp]
call fcn.0040b853
mov eax, 0x80004005
jmp 0x40c3b1
push eax
push ebx
push dword [ebp]
call fcn.00415710
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0x18], ecx
test esi, esi
jle 0x40c327
push 0x30
pop esi
movzx edx, word [ebp + ecx*2 + 0x104]
mov eax, edx
cmp eax, esi
jb 0x40c2f0
cmp eax, 0x39
jbe 0x40c2eb
cmp eax, 0x40
jbe 0x40c2f0
cmp eax, 0x46
jbe 0x40c2e6
cmp eax, 0x60
jbe 0x40c2f0
cmp edx, 0x66
ja 0x40c2f0
add eax, 0xffffffa9
jmp 0x40c2f2
add eax, 0xffffffc9
jmp 0x40c2f2
add eax, 0xffffffd0
jmp 0x40c2f2
mov eax, ebx
mov dword [ebp - 0x14], eax
mov edi, ecx
test edi, edi
jns 0x40c2fe
add edi, 1
sar edi, 1
mov esi, dword [ebp]
mov eax, ecx
and eax, 1
shl eax, 2
push 4
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x14]
shl al, cl
or byte [edi + esi], al
mov ecx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x18], ecx
cmp ecx, dword [ebp - 0x28]
push 0x30
pop esi
jl 0x40c2ba
push dword [ebp - 0x20]
push dword [ebp]
push 3
push ebx
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40c38e
lea ecx, [ebp]
call fcn.0040b853
jmp 0x40c38e
lea ecx, [ebp + 0x104]
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x40c361
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp + 0x104]
push eax
push 1
push ebx
push dword [ebp - 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x40c39b
mov ecx, esi
call fcn.0040c6b0
jmp 0x40c3b1
mov ebx, dword [ebp - 0x2c]
push dword [ebp - 0x38]
mov ecx, ebx
call fcn.0040c6be
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2104]
xor ecx, ebp
call fcn.00413912
add ebp, 0x2108
leave
ret 0xc
push 0x80070216
call fcn.0040191f
int3