Function at 0x40e100
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4766e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1124
call fcn.0044cd40
mov eax, dword [0x4b9314]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
xor eax, ebp
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], esp
push ecx
mov ecx, ebx
mov dword [ebp - 0x112c], ebx
mov dword [ebp - 0x1120], esi
mov dword [ebp - 0x1124], edi
mov dword [ebp - 0x1130], eax
mov dword [ebp - 0x111c], 0
call fcn.0040d350
test eax, eax
jl 0x40e507
lea edx, [ebp - 0x111c]
push edx
lea eax, [ebp - 0x1014]
push eax
call fcn.0040d190
add esp, 8
test eax, eax
jne 0x40e19a
mov eax, 0x80020009
jmp 0x40e507
mov ecx, ebx
call fcn.0040d2f0
lea ecx, [ebp - 0x1014]
push ecx
mov ecx, ebx
call fcn.0040d350
test eax, eax
jl 0x40e507
movzx eax, word [ebp - 0x111c]
cmp eax, 0x13
jg 0x40e3f2
je 0x40e333
cmp eax, 8
je 0x40e31b
cmp eax, 0x11
jne 0x40e4ef
lea edx, [ebp - 0x1014]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test bl, 1
mov dword [ebp - 0x1128], ebx
jne 0x40e265
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x111c], esi
mov dword [ebp - 0x1118], 0
mov dword [ebp - 4], 3
push esi
lea ecx, [ebp - 0x1118]
mov byte [ebp - 4], 4
call fcn.0040ddb0
jmp 0x40e246
mov edi, dword [ebp - 0x1118]
test edi, edi
jne 0x40e26f
lea eax, [ebp - 0x1114]
test eax, eax
je 0x40e265
lea ecx, [ebp - 0x1118]
call fcn.0040d600
mov eax, 0x80004005
jmp 0x40e507
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
xor esi, esi
test ebx, ebx
rep stosb byte es:[edi], al
jle 0x40e2cd
jmp 0x40e290
mov ecx, dword [ebp - 0x1118]
xor edx, edx
mov dl, byte [ebp + esi - 0x1014]
mov eax, esi
shr eax, 1
lea edi, [eax + ecx]
push edx
call fcn.0040d240
mov ecx, esi
and ecx, 1
shl ecx, 2
mov edx, ecx
mov ecx, 4
sub ecx, edx
mov dl, byte [edi]
shl al, cl
add esp, 4
or dl, al
inc esi
cmp esi, ebx
mov byte [edi], dl
jl 0x40e290
mov ecx, dword [ebp - 0x111c]
mov edx, dword [ebp - 0x1118]
mov eax, dword [ebp - 0x1120]
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp - 0x1124]
push edx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [ebp - 0x1118]
lea edx, [ebp - 0x1114]
cmp eax, edx
je 0x40e4da
lea ecx, [ebp - 0x1118]
call fcn.0040d600
jmp 0x40e4da
push 1
lea eax, [ebp - 0x1014]
push eax
push edi
mov ecx, esi
call fcn.0040d090
mov esi, eax
jmp 0x40e4da
call dword [0x4b7154]
lea ecx, [ebp - 0x1014]
push ecx
mov ebx, eax
mov dword [ebp - 0x111c], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea edi, [esi + esi]
cmp edi, 0x400
ja 0x40e381
push edi
call fcn.0040ba00
add esp, 4
test al, al
je 0x40e381
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0044cd40
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x40e38d
push edi
lea ecx, [ebp - 0x111c]
call fcn.0040d920
push ebx
push esi
lea edx, [ebp - 0x1014]
push edx
push eax
call fcn.004067c0
test eax, eax
jne 0x40e3b5
lea ecx, [ebp - 0x111c]
call fcn.0040ba90
mov eax, 0x8007000e
jmp 0x40e507
lea ecx, [ebp - 0x1128]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edx, dword [ebp - 0x1128]
mov eax, dword [ebp - 0x1124]
mov ecx, dword [ebp - 0x1120]
push edx
push eax
call fcn.0040d070
lea ecx, [ebp - 0x111c]
mov esi, eax
call fcn.0040ba90
jmp 0x40e4da
cmp eax, 0x4008
jne 0x40e4ef
lea ecx, [ebp - 0x1014]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
inc eax
mov dword [ebp - 0x1118], ecx
mov dword [ebp - 4], ecx
push eax
lea ecx, [ebp - 0x1118]
mov byte [ebp - 4], 1
call fcn.0040ddb0
mov edi, dword [ebp - 0x1118]
test edi, edi
je 0x40e4c0
mov al, byte [ebp - 0x1014]
test al, al
lea esi, [ebp - 0x1014]
je 0x40e49a
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
lea ebx, [ebx]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x40e47b
cmp byte [eax], 0x30
jne 0x40e47b
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x40e495
xor edx, edx
mov byte [edi], cl
mov dl, byte [esi]
push edx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40e493
mov al, byte [esi + 1]
inc edi
inc esi
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x40e450
mov edx, dword [ebp - 0x1124]
mov byte [edi], 0
mov ecx, dword [ebp - 0x1118]
push ecx
mov ecx, dword [ebp - 0x1120]
push edx
call fcn.0040d0c0
mov edi, dword [ebp - 0x1118]
mov esi, eax
jmp 0x40e4c5
mov esi, 0xe
lea eax, [ebp - 0x1114]
cmp edi, eax
je 0x40e4da
lea ecx, [ebp - 0x1118]
call fcn.0040d600
test esi, esi
je 0x40e4e9
push esi
call fcn.0040cfc0
add esp, 4
jmp 0x40e507
mov ebx, dword [ebp - 0x112c]
mov ecx, dword [ebp - 0x1130]
push ecx
mov ecx, ebx
call fcn.0040d350
xor edx, edx
test eax, eax
setge dl
dec edx
and eax, edx
lea esp, [ebp - 0x1140]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044c1c4
mov esp, ebp
pop ebp
ret 0xc