Function at 0x40ab0c
Capabilities:
Set registry value

Disassembly:
mov eax, 0x427049
call fcn.0041ba64
push ecx
mov eax, 0x122c
call fcn.0041b480
mov eax, dword [0x42c300]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1238], esi
xor edi, edi
mov dword [ebp - 0x1228], edi
lea eax, [ebp - 0x121c]
push eax
call fcn.00409e1d
cmp eax, edi
jl 0x40af02
lea eax, [ebp - 0x1228]
push eax
lea eax, [ebp - 0x121c]
push eax
call fcn.0040af58
test eax, eax
jne 0x40ab74
mov eax, 0x80020009
jmp 0x40af02
mov ecx, esi
call fcn.00409df5
lea eax, [ebp - 0x121c]
push eax
mov ecx, esi
call fcn.00409e1d
cmp eax, edi
jl 0x40af02
movzx eax, word [ebp - 0x1228]
sub eax, 8
je 0x40aeb7
sub eax, 9
je 0x40ad8d
dec eax
dec eax
je 0x40ac9b
sub eax, 0x3ff5
jne 0x40aeee
lea eax, [ebp - 0x121c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 0x21c], edi
mov dword [ebp - 4], edi
mov byte [ebp - 4], 1
cmp eax, 0x100
jbe 0x40ac28
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040b036
and dword [ebp - 4], 0
mov edi, dword [ebp - 0x21c]
test edi, edi
je 0x40ac72
lea esi, [ebp - 0x121c]
cmp byte [ebp - 0x121c], 0
je 0x40ac5a
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x40ac3c
cmp byte [eax], 0x30
jne 0x40ac3c
mov byte [edi], 0
inc edi
push eax
call ebx
mov esi, eax
jmp 0x40ac55
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], eax
jmp 0x40abeb
mov byte [edi], cl
xor eax, eax
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40ac53
inc edi
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x40ac0e
mov byte [edi], 0
push dword [ebp - 0x21c]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0040af21
mov esi, eax
jmp 0x40ac75
push 0xe
pop esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x218]
cmp dword [ebp - 0x21c], eax
je 0x40aee0
lea ecx, [ebp - 0x21c]
call fcn.00409c9e
jmp 0x40aee0
call dword [0x42c090]
mov dword [ebp - 0x1234], eax
mov dword [ebp - 0x1220], edi
push 3
pop ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x121c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea edi, [esi + esi]
cmp edi, 0x400
ja 0x40aceb
push edi
call fcn.00405430
test al, al
je 0x40aceb
mov eax, edi
add eax, ebx
and eax, 0xfffffffc
call fcn.0041b480
mov dword [ebp - 0x10], esp
mov edi, esp
jmp 0x40acf9
push edi
lea ecx, [ebp - 0x1220]
call fcn.00405732
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x40ad22
mov word [edi], bx
push esi
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x121c]
push eax
push ebx
push dword [ebp - 0x1234]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
jmp 0x40ad24
xor eax, eax
cmp eax, ebx
jne 0x40ad41
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1220]
call fcn.0040560f
mov eax, 0x8007000e
jmp 0x40af02
lea ecx, [ebp - 0x1230]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x1230]
mov dword [ebp - 0x122c], eax
push 4
lea eax, [ebp - 0x122c]
push eax
push 4
push ebx
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1220]
call fcn.0040560f
jmp 0x40aee0
lea eax, [ebp - 0x121c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x1224], eax
test al, 1
jne 0x40ae1c
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov dword [ebp - 0x123c], ebx
mov dword [ebp - 0x118], edi
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
cmp ebx, 0x100
jbe 0x40add8
push ebx
lea ecx, [ebp - 0x118]
call fcn.0040b036
jmp 0x40adf2
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], eax
jmp 0x40adf2
mov dword [ebp - 4], 4
mov edi, dword [ebp - 0x118]
test edi, edi
jne 0x40ae26
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x114]
cmp edi, eax
je 0x40ae1c
lea ecx, [ebp - 0x118]
call fcn.00409c9e
mov eax, 0x80004005
jmp 0x40af02
mov ecx, ebx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp dword [ebp - 0x1224], edi
jle 0x40ae7c
mov eax, edi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
add esi, dword [ebp - 0x118]
xor eax, eax
mov al, byte [ebp + edi - 0x121c]
push eax
call fcn.0040b006
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x1224]
jl 0x40ae42
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x118]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x40aee0
lea ecx, [ebp - 0x118]
call fcn.00409c9e
jmp 0x40aee0
lea eax, [ebp - 0x121c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x121c]
push eax
push 1
push edi
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x40aeee
push esi
call fcn.0040a947
jmp 0x40af02
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1238]
call fcn.00409e1d
cmp eax, edi
jl 0x40af02
xor eax, eax
lea esp, [ebp - 0x1248]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0041b4ee
pop edi
pop esi
pop ebx
leave
ret 0xc