Function at 0x40d6c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x1128
lea ebp, [esp - 0x10a8]
call fcn.004156d0
mov eax, dword [0x42a390]
push ebx
push esi
mov esi, dword [ebp + 0x10b4]
mov ebx, ecx
xor eax, ebp
push edi
mov edi, dword [ebp + 0x10b0]
lea ecx, [ebp + 0xa4]
mov dword [ebp + 0x10a4], eax
mov eax, dword [ebp + 0x10b8]
push ecx
mov ecx, ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], 0
call fcn.0040c8d0
test eax, eax
jl 0x40da4d
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp + 0xa4]
push eax
call fcn.0040dab0
add esp, 8
test eax, eax
jne 0x40d740
mov eax, 0x80020009
jmp 0x40da4d
mov ecx, dword [ebx]
xor edx, edx
mov dl, byte [ecx]
mov ecx, ebx
push edx
call fcn.0040c880
test eax, eax
je 0x40d76f
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, eax
xor edx, edx
mov dword [ebx], eax
mov dl, byte [ecx]
mov ecx, ebx
push edx
call fcn.0040c880
test eax, eax
jne 0x40d752
lea eax, [ebp + 0xa4]
push eax
mov ecx, ebx
call fcn.0040c8d0
test eax, eax
jl 0x40da4d
movzx eax, word [ebp - 0x74]
cmp eax, 0x13
jg 0x40d97e
je 0x40d8ca
cmp eax, 8
je 0x40d8a2
cmp eax, 0x11
jne 0x40da38
lea ecx, [ebp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test bl, 1
jne 0x40d7f6
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0x100
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], 0
jbe 0x40d800
push esi
lea ecx, [ebp - 0x60]
call fcn.0040dbf0
mov edi, dword [ebp - 0x60]
test edi, edi
jne 0x40d806
lea edx, [ebp - 0x5c]
test edx, edx
je 0x40d7f6
lea ecx, [ebp - 0x60]
call fcn.0040dbe0
mov eax, 0x80004005
jmp 0x40da4d
lea edi, [ebp - 0x5c]
mov dword [ebp - 0x60], edi
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
test ebx, ebx
jle 0x40d85c
mov edi, edi
mov eax, dword [ebp - 0x60]
mov esi, edi
shr esi, 1
add esi, eax
xor eax, eax
mov al, byte [ebp + edi + 0xa4]
push eax
call fcn.0040db60
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
mov ecx, 4
sub ecx, edx
mov dl, byte [esi]
shl al, cl
add esp, 4
or dl, al
inc edi
cmp edi, ebx
mov byte [esi], dl
jl 0x40d820
mov esi, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
push esi
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x60]
mov esi, eax
lea eax, [ebp - 0x5c]
cmp ecx, eax
je 0x40d889
lea ecx, [ebp - 0x60]
call fcn.0040dbe0
mov ebx, dword [ebp - 0x70]
test esi, esi
je 0x40da38
push esi
call fcn.0040d460
add esp, 4
jmp 0x40da4d
lea ecx, [ebp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [edi]
lea edx, [ebp + 0xa4]
push edx
push 1
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x40d88c
call dword [0x42a0f8]
lea ecx, [ebp + 0xa4]
push ecx
mov ebx, eax
mov dword [ebp - 0x64], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea edi, [esi + esi]
cmp edi, 0x400
ja 0x40d912
push edi
call fcn.0040bd60
add esp, 4
test al, al
je 0x40d912
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.004156d0
mov eax, esp
jmp 0x40d91b
push edi
lea ecx, [ebp - 0x64]
call fcn.0040bfb0
push ebx
push esi
lea edx, [ebp + 0xa4]
push edx
push eax
call fcn.0040bdf0
test eax, eax
jne 0x40d940
lea ecx, [ebp - 0x64]
call fcn.0040beb0
mov eax, 0x8007000e
jmp 0x40da4d
lea ecx, [ebp - 0x78]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edx, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x6c]
push 4
lea eax, [ebp - 0x80]
push eax
push 4
mov dword [ebp - 0x80], edx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx]
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x64]
mov esi, eax
call fcn.0040beb0
jmp 0x40d889
cmp eax, 0x4008
jne 0x40da38
lea ecx, [ebp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0
call fcn.0040dc20
mov edi, dword [ebp - 0x60]
test edi, edi
je 0x40da1b
mov al, byte [ebp + 0xa4]
test al, al
lea esi, [ebp + 0xa4]
je 0x40da01
mov edi, edi
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x40d9e2
cmp byte [eax], 0x30
jne 0x40d9e2
mov byte [edi], 0
push eax
inc edi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x40d9fc
xor edx, edx
mov byte [edi], cl
mov dl, byte [esi]
push edx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40d9fa
mov al, byte [esi + 1]
inc edi
inc esi
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x40d9c0
mov edx, dword [ebp - 0x6c]
mov byte [edi], 0
mov ecx, dword [ebp - 0x60]
push ecx
mov ecx, dword [ebp - 0x68]
push edx
call fcn.0040da70
mov edi, dword [ebp - 0x60]
mov esi, eax
jmp 0x40da20
mov esi, 0xe
lea eax, [ebp - 0x5c]
cmp edi, eax
je 0x40d88c
lea ecx, [ebp - 0x60]
call fcn.0040dbd0
jmp 0x40d88c
mov ecx, dword [ebp - 0x7c]
push ecx
mov ecx, ebx
call fcn.0040c8d0
xor edx, edx
test eax, eax
setge dl
dec edx
and eax, edx
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x10a4]
xor ecx, ebp
call fcn.0041413a
add ebp, 0x10a8
mov esp, ebp
pop ebp
ret 0xc