Function at 0x40a33a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4280fe
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x112c
call fcn.0041c660
mov eax, dword [0x437084]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1138], esi
mov edi, edx
mov dword [ebp - 0x112c], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1128], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x113c], eax
and dword [ebp - 0x1120], 0
lea eax, [ebp - 0x1014]
call fcn.0040a247
test eax, eax
js 0x40a829
lea eax, [ebp - 0x1120]
push eax
lea eax, [ebp - 0x1014]
push eax
call fcn.0040a154
pop ecx
pop ecx
test eax, eax
jne 0x40a3cf
mov eax, 0x80020009
jmp 0x40a829
call fcn.0040a223
lea eax, [ebp - 0x1014]
mov ecx, esi
call fcn.0040a247
test eax, eax
js 0x40a829
movzx eax, word [ebp - 0x1120]
sub eax, 8
je 0x40a7de
sub eax, 9
je 0x40a662
dec eax
dec eax
je 0x40a556
sub eax, 0x3ff5
jne 0x40a816
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
xor esi, esi
mov dword [ebp - 0x1118], esi
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1134], eax
mov dword [ebp - 0x1130], esi
cmp esi, esi
ja 0x40a449
cmp eax, 0xffffffff
jbe 0x40a453
push 0x80070216
call fcn.004011b7
cmp eax, 0x100
jbe 0x40a469
push eax
lea eax, [ebp - 0x1118]
push eax
call fcn.00411c09
jmp 0x40a475
lea eax, [ebp - 0x1114]
mov dword [ebp - 0x1118], eax
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0x1118]
test esi, esi
je 0x40a52d
lea edi, [ebp - 0x1014]
cmp byte [ebp - 0x1014], 0
je 0x40a4e0
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push edi
call ebx
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x40a4bf
cmp byte [eax], 0x30
jne 0x40a4bf
mov byte [esi], 0
inc esi
push eax
call ebx
mov edi, eax
jmp 0x40a4db
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40a4d9
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x40a4e0
mov byte [esi], al
inc esi
inc edi
cmp byte [edi], 0
jne 0x40a49b
mov word [esi], 0
mov edi, dword [ebp - 0x1118]
mov ebx, edi
xor eax, eax
test edi, edi
setne al
test eax, eax
jne 0x40a4fc
push 0xd
jmp 0x40a52f
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add edi, eax
add esi, eax
cmp eax, 1
jne 0x40a4fe
push esi
push ebx
push 7
push 0
push dword [ebp - 0x1128]
mov eax, dword [ebp - 0x112c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x40a530
push 0xe
pop esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x40a803
lea eax, [ebp - 0x1118]
call fcn.00411964
jmp 0x40a803
xor edi, edi
mov dword [ebp - 0x1120], edi
mov dword [ebp - 4], 3
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 0x111c], eax
lea ecx, [ebp - 0x111c]
push ecx
call fcn.004086db
pop ecx
test eax, eax
js 0x40a5db
mov ebx, dword [ebp - 0x111c]
cmp ebx, 0x400
jg 0x40a5b1
push ebx
call fcn.0040870b
pop ecx
test al, al
je 0x40a5b1
mov eax, ebx
call fcn.00421730
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x40a5c4
mov eax, ebx
lea esi, [ebp - 0x1120]
call fcn.004111f9
mov edi, dword [ebp - 0x1120]
push 3
shr ebx, 1
push ebx
lea ecx, [ebp - 0x1014]
push ecx
mov esi, eax
call fcn.00402974
test eax, eax
jne 0x40a5fe
or dword [ebp - 4], 0xffffffff
jmp 0x40a5f0
push edi
mov edi, dword [edi]
mov dword [ebp - 0x1120], edi
call fcn.0041679c
pop ecx
test edi, edi
jne 0x40a5e1
mov eax, 0x8007000e
jmp 0x40a829
lea ecx, [ebp - 0x1130]
push ecx
xor ebx, ebx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x1130]
mov dword [ebp - 0x111c], eax
push 4
lea eax, [ebp - 0x111c]
push eax
push 4
push ebx
push dword [ebp - 0x1128]
mov eax, dword [ebp - 0x112c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
or dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x40a803
push edi
mov edi, dword [edi]
mov dword [ebp - 0x1120], edi
call fcn.0041679c
pop ecx
test edi, edi
jne 0x40a64a
jmp 0x40a803
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x111c], eax
test al, 1
je 0x40a683
mov eax, 0x80004005
jmp 0x40a829
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x1130], edi
xor eax, eax
mov dword [ebp - 0x1118], eax
push 4
pop esi
mov dword [ebp - 4], esi
mov byte [ebp - 4], 5
mov dword [ebp - 0x1124], edi
mov dword [ebp - 0x1120], eax
cmp eax, eax
ja 0x40a449
cmp edi, 0xffffffff
ja 0x40a449
cmp edi, 0x100
jbe 0x40a6d6
push edi
lea eax, [ebp - 0x1118]
push eax
call fcn.00411c09
jmp 0x40a6e2
lea eax, [ebp - 0x1114]
mov dword [ebp - 0x1118], eax
mov dword [ebp - 4], esi
jmp 0x40a6fa
xor esi, esi
cmp dword [ebp - 0x1118], esi
jne 0x40a72a
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x40a679
lea eax, [ebp - 0x1118]
call fcn.00411964
jmp 0x40a679
push edi
push esi
push dword [ebp - 0x1118]
call fcn.0041b1d0
add esp, 0xc
cmp dword [ebp - 0x111c], esi
jle 0x40a79d
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x1118]
mov cl, byte [ebp + esi - 0x1014]
cmp cl, 0x30
jl 0x40a781
cmp cl, 0x39
jle 0x40a77c
cmp cl, 0x40
jle 0x40a781
cmp cl, 0x46
jle 0x40a777
lea edx, [ecx - 0x61]
cmp dl, 5
ja 0x40a781
lea edx, [ecx - 0x57]
jmp 0x40a783
lea edx, [ecx - 0x37]
jmp 0x40a783
lea edx, [ecx - 0x30]
jmp 0x40a783
xor dl, dl
mov ebx, esi
and ebx, 1
shl ebx, 2
push 4
pop ecx
sub ecx, ebx
shl dl, cl
or byte [eax], dl
inc esi
cmp esi, dword [ebp - 0x111c]
jl 0x40a742
mov eax, dword [ebp - 0x112c]
mov eax, dword [eax]
push edi
push dword [ebp - 0x1118]
push 3
push 0
push dword [ebp - 0x1128]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x40a803
lea eax, [ebp - 0x1118]
call fcn.00411964
jmp 0x40a803
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
push 0
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x40a810
mov eax, esi
call fcn.00408865
jmp 0x40a829
mov esi, dword [ebp - 0x1138]
mov eax, dword [ebp - 0x113c]
mov ecx, esi
call fcn.0040a247
test eax, eax
js 0x40a829
xor eax, eax
lea esp, [ebp - 0x114c]
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.00416782
leave
ret 8