Function at 0x40bcdc
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4341d9
call fcn.0041c8ac
push ecx
mov eax, 0x1114
call fcn.0041c8d0
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
lea eax, [ebp - 0x1124]
mov dword [ebp - 0x10], esp
mov esi, ecx
push eax
mov dword [ebp - 0x20], esi
call fcn.0040af36
test eax, eax
js 0x40c043
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1124]
push eax
call fcn.0040adcb
pop ecx
pop ecx
test eax, eax
jne 0x40bd34
mov eax, 0x80020009
jmp 0x40c043
mov ecx, esi
call fcn.0040af14
lea eax, [ebp - 0x1124]
push eax
mov ecx, esi
call fcn.0040af36
test eax, eax
js 0x40c043
movzx eax, word [ebp - 0x18]
sub eax, 8
je 0x40c00f
sub eax, 9
je 0x40bf1b
dec eax
dec eax
je 0x40be44
sub eax, 0x3ff5
jne 0x40c032
lea eax, [ebp - 0x1124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0x124], 0
add eax, 2
and dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0040ba8a
mov edi, dword [ebp - 0x124]
test edi, edi
je 0x40be1f
cmp byte [ebp - 0x1124], 0
lea esi, [ebp - 0x1124]
je 0x40be05
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x40bde4
cmp byte [eax], 0x30
jne 0x40bde4
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x40be00
mov byte [edi], cl
movzx eax, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40bdfe
inc edi
inc esi
mov al, byte [esi]
test al, al
je 0x40be05
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x40bdc4
mov ecx, dword [ebp + 8]
mov word [edi], 0
push dword [ebp - 0x124]
push dword [ebp + 0xc]
call fcn.0040acac
mov ebx, eax
jmp 0x40be22
push 0xe
pop ebx
lea eax, [ebp - 0x120]
cmp dword [ebp - 0x124], eax
je 0x40c025
lea ecx, [ebp - 0x124]
call fcn.0040b159
jmp 0x40c025
xor esi, esi
mov dword [ebp - 0x14], esi
push 3
pop ebx
lea eax, [ebp - 0x1124]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push 2
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040265b
add esp, 0xc
test eax, eax
js 0x40bf11
mov edi, dword [ebp - 0x18]
cmp edi, 0x400
jg 0x40be9b
push edi
call fcn.00403576
pop ecx
test al, al
je 0x40be9b
mov eax, edi
call fcn.0041c920
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x40bea7
push edi
lea ecx, [ebp - 0x14]
call fcn.00403a92
mov esi, dword [ebp - 0x14]
push ebx
shr edi, 1
push edi
lea ecx, [ebp - 0x1124]
push ecx
push eax
call fcn.00401a30
xor edi, edi
cmp eax, edi
je 0x40bf0d
lea ecx, [ebp - 0x1c]
push ecx
push edi
push edi
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x1c]
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push 4
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
cmp esi, edi
je 0x40c025
push esi
mov esi, dword [esi]
call fcn.0041c94c
pop ecx
test esi, esi
jne 0x40bef2
jmp 0x40c025
push esi
mov esi, dword [esi]
call fcn.0041c94c
pop ecx
cmp esi, edi
jne 0x40bf04
mov eax, 0x8007000e
jmp 0x40c043
lea eax, [ebp - 0x1124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x14], eax
test al, 1
je 0x40bf39
mov eax, 0x80004005
jmp 0x40c043
and dword [ebp - 0x124], 0
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 4
push ebx
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 5
call fcn.0040ba8a
jmp 0x40bf6c
xor edi, edi
cmp dword [ebp - 0x124], edi
jne 0x40bf8d
lea eax, [ebp - 0x120]
test eax, eax
je 0x40bf2f
lea ecx, [ebp - 0x124]
call fcn.0040b159
jmp 0x40bf2f
push ebx
push edi
push dword [ebp - 0x124]
call fcn.0041bdb0
add esp, 0xc
cmp dword [ebp - 0x14], edi
jle 0x40bfd8
mov ecx, dword [ebp - 0x124]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
movzx eax, byte [ebp + edi - 0x1124]
push eax
call fcn.0040ae61
pop ecx
mov edx, edi
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x14]
jl 0x40bfa2
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x124]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
lea eax, [ebp - 0x120]
cmp dword [ebp - 0x124], eax
je 0x40c025
lea ecx, [ebp - 0x124]
call fcn.0040b159
jmp 0x40c025
mov ecx, dword [ebp + 8]
push 1
lea eax, [ebp - 0x1124]
push eax
push dword [ebp + 0xc]
call fcn.0040ac78
mov ebx, eax
test ebx, ebx
je 0x40c032
push ebx
call fcn.0040aadb
pop ecx
jmp 0x40c043
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
call fcn.0040af36
test eax, eax
js 0x40c043
xor eax, eax
lea esp, [ebp - 0x1130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc