Function at 0x40e750
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483df1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1130
call fcn.0043c870
mov eax, dword [0x4a55d0]
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x112c], eax
mov dword [ebp - 0x1138], ecx
lea eax, [ebp - 0x1018]
mov ecx, esi
mov dword [ebp - 0x1134], esi
mov dword [ebp - 0x1128], edi
mov dword [ebp - 0x1124], 0
call fcn.0040ef20
test eax, eax
jl 0x40ebce
lea edx, [ebp - 0x1124]
push edx
lea ebx, [ebp - 0x1018]
call fcn.0040e3f0
add esp, 4
test eax, eax
jne 0x40e7e8
mov eax, 0x80020009
jmp 0x40ebce
call fcn.0040f770
lea eax, [ebp - 0x1018]
mov ecx, esi
call fcn.0040ef20
xor ebx, ebx
cmp eax, ebx
jl 0x40ebce
movzx eax, word [ebp - 0x1124]
cmp eax, 0x13
jg 0x40ea8f
je 0x40e9ae
cmp eax, 8
je 0x40e97e
cmp eax, 0x11
jne 0x40ebb3
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov dword [ebp - 0x1124], ebx
test bl, 1
jne 0x40e8df
cdq
sub eax, edx
mov edi, eax
sar edi, 1
xor eax, eax
mov dword [ebp - 0x1130], edi
mov dword [ebp - 0x1120], eax
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
cmp eax, eax
ja 0x40e873
cmp edi, 0xffffffff
jbe 0x40e87d
push 0x80070057
call fcn.004025a0
cmp edi, 0x100
jbe 0x40e8b4
lea ecx, [ebp - 0x1120]
push ecx
mov eax, edi
call fcn.0040e6a0
jmp 0x40e8c0
lea edx, [ebp - 0x111c]
mov dword [ebp - 0x1120], edx
mov eax, dword [ebp - 0x1120]
test eax, eax
jne 0x40e8e9
lea eax, [ebp - 0x111c]
test eax, eax
je 0x40e8df
lea eax, [ebp - 0x1120]
call fcn.0040e690
mov eax, 0x80004005
jmp 0x40ebce
push edi
push 0
push eax
call fcn.0043abc0
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x40e938
jmp 0x40e900
mov edx, dword [ebp - 0x1120]
mov ecx, esi
shr ecx, 1
lea ebx, [ecx + edx]
mov cl, byte [ebp + esi - 0x1018]
call fcn.0040e6e0
mov ecx, esi
and ecx, 1
add ecx, ecx
add ecx, ecx
mov edx, ecx
mov ecx, 4
sub ecx, edx
shl al, cl
inc esi
or byte [ebx], al
cmp esi, dword [ebp - 0x1124]
jl 0x40e900
mov ecx, dword [ebp - 0x1120]
mov edx, dword [ebp - 0x112c]
mov eax, dword [ebp - 0x1128]
mov eax, dword [eax]
push edi
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x111c]
cmp dword [ebp - 0x1120], eax
je 0x40eba4
lea eax, [ebp - 0x1120]
call fcn.0040e690
jmp 0x40eba4
lea ecx, [ebp - 0x1018]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [edi]
inc eax
push eax
mov eax, dword [ebp - 0x112c]
lea edx, [ebp - 0x1018]
push edx
push 1
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x40eba4
mov dword [ebp - 0x1128], ebx
lea edx, [ebp - 0x1018]
push edx
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push 2
push eax
mov dword [ebp - 0x1124], eax
lea eax, [ebp - 0x1124]
push eax
call fcn.0040e4f0
add esp, 0xc
test eax, eax
jl 0x40ea30
mov esi, dword [ebp - 0x1124]
cmp esi, 0x400
jg 0x40ea0e
push esi
call fcn.0040e560
add esp, 4
test al, al
je 0x40ea0e
mov eax, esi
call fcn.0043a7f0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x40ea1a
push esi
lea ecx, [ebp - 0x1128]
call fcn.0040e650
push 3
shr esi, 1
push esi
lea ecx, [ebp - 0x1018]
push ecx
push eax
call fcn.0040e520
cmp eax, ebx
jne 0x40ea45
lea ecx, [ebp - 0x1128]
call fcn.00402110
mov eax, 0x8007000e
jmp 0x40ebce
lea edx, [ebp - 0x1130]
push edx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x1130]
mov edx, dword [ebp - 0x112c]
push 4
lea ecx, [ebp - 0x1124]
push ecx
push 4
push ebx
mov dword [ebp - 0x1124], eax
mov eax, dword [edi]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x1128]
mov esi, eax
call fcn.00402110
jmp 0x40eba4
cmp eax, 0x4008
jne 0x40ebb3
lea ecx, [ebp - 0x1018]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov dword [ebp - 0x1120], ebx
xor ecx, ecx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
cmp ecx, ebx
ja 0x40eac2
cmp eax, 0xffffffff
jbe 0x40eacc
push 0x80070057
call fcn.004025a0
cmp eax, 0x100
jbe 0x40eafa
lea edx, [ebp - 0x1120]
push edx
call fcn.0040e6a0
jmp 0x40eb06
lea eax, [ebp - 0x111c]
mov dword [ebp - 0x1120], eax
mov ebx, dword [ebp - 0x1120]
test ebx, ebx
je 0x40eb86
cmp byte [ebp - 0x1018], 0
lea esi, [ebp - 0x1018]
je 0x40eb67
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push esi
call edi
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x40eb3f
cmp byte [eax], 0x30
jne 0x40eb3f
mov byte [ebx], 0
push eax
inc ebx
call edi
mov esi, eax
jmp 0x40eb5c
mov byte [ebx], cl
movzx ecx, byte [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40eb5a
mov al, byte [esi + 1]
inc esi
inc ebx
test al, al
je 0x40eb61
mov byte [ebx], al
inc ebx
inc esi
cmp byte [esi], 0
jne 0x40eb25
mov edi, dword [ebp - 0x1128]
mov eax, dword [ebp - 0x112c]
mov byte [ebx], 0
mov byte [ebx + 1], 0
mov edx, dword [ebp - 0x1120]
push edx
push eax
push edi
call fcn.0040e4a0
mov esi, eax
jmp 0x40eb8b
mov esi, 0xe
lea ecx, [ebp - 0x111c]
cmp dword [ebp - 0x1120], ecx
je 0x40eba4
lea eax, [ebp - 0x1120]
call fcn.0040e690
xor ebx, ebx
cmp esi, ebx
je 0x40ebb3
mov eax, esi
call fcn.0040ef10
jmp 0x40ebce
mov eax, dword [ebp - 0x1138]
mov ecx, dword [ebp - 0x1134]
call fcn.0040ef20
xor edx, edx
cmp eax, ebx
setge dl
dec edx
and eax, edx
lea esp, [ebp - 0x1150]
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.00436738
mov esp, ebp
pop ebp
ret 8