Function at 0x40e5a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539501
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1124
call fcn.00513790
mov eax, dword [0x583384]
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 - 0x1128], esi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1134], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x1130], esi
mov dword [ebp - 0x1124], ebx
mov dword [ebp - 0x111c], edi
mov dword [ebp - 0x1120], 0
call fcn.0040f8f0
test eax, eax
js 0x40e9d6
lea eax, [ebp - 0x1120]
push eax
lea eax, [ebp - 0x1014]
push eax
call fcn.00411fa0
add esp, 8
test eax, eax
jne 0x40e641
mov eax, 0x80020009
jmp 0x40e9d6
mov ecx, esi
call fcn.00411450
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.0040f8f0
test eax, eax
js 0x40e9d6
movzx eax, word [ebp - 0x1120]
cmp eax, 0x13
ja 0x40e8b6
je 0x40e7c4
cmp eax, 8
je 0x40e7ac
cmp eax, 0x11
jne 0x40e9c0
lea ebx, [ebp - 0x1014]
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x40e690
sub ebx, ecx
mov dword [ebp - 0x112c], ebx
test bl, 1
jne 0x40e713
mov eax, ebx
mov dword [ebp - 0x1118], 0
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x1120], esi
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x1118]
push esi
mov byte [ebp - 4], 5
call fcn.0040ea50
jmp 0x40e6f4
mov eax, dword [ebp - 0x1118]
test eax, eax
jne 0x40e71d
lea eax, [ebp - 0x1114]
test eax, eax
je 0x40e713
lea ecx, [ebp - 0x1118]
call fcn.0040f2a0
mov eax, 0x80004005
jmp 0x40e9d6
push esi
push 0
push eax
call fcn.00517590
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x40e769
nop
movzx eax, byte [ebp + edi - 0x1014]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x1118]
push eax
call fcn.0040ed30
mov edx, edi
mov ecx, 4
and edx, 1
inc edi
shl edx, 2
add esp, 4
sub ecx, edx
shl al, cl
or byte [esi], al
cmp edi, ebx
jl 0x40e730
mov esi, dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x1124]
push esi
push dword [ebp - 0x1118]
push 3
push 0
push dword [ebp - 0x111c]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x40e9ab
lea ecx, [ebp - 0x1118]
call fcn.0040f2a0
jmp 0x40e9ab
push 1
lea eax, [ebp - 0x1014]
mov ecx, ebx
push eax
push edi
call fcn.00411280
mov esi, eax
jmp 0x40e9ab
mov dword [ebp - 0x111c], 0
lea ecx, [ebp - 0x1014]
mov dword [ebp - 4], 3
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e7e0
sub ecx, edx
push 2
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0x1120], eax
lea eax, [ebp - 0x1120]
push eax
call fcn.0040d120
add esp, 0xc
test eax, eax
js 0x40e8a1
mov esi, dword [ebp - 0x1120]
cmp esi, 0x400
jg 0x40e835
push esi
call fcn.00412080
add esp, 4
test al, al
je 0x40e835
mov eax, esi
call fcn.00513d40
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x40e841
push esi
lea ecx, [ebp - 0x111c]
call fcn.0040ea00
push 3
shr esi, 1
lea ecx, [ebp - 0x1014]
push esi
push ecx
push eax
call fcn.0040ebb0
test eax, eax
je 0x40e8a1
lea ecx, [ebp - 0x112c]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
jns 0x40e881
lea ecx, [ebp - 0x111c]
call fcn.0040dc20
mov eax, esi
jmp 0x40e9d6
push dword [ebp - 0x112c]
mov ecx, ebx
push edi
call fcn.00411200
lea ecx, [ebp - 0x111c]
mov esi, eax
call fcn.0040dc20
jmp 0x40e9ab
lea ecx, [ebp - 0x111c]
call fcn.0040dc20
mov eax, 0x8007000e
jmp 0x40e9d6
cmp eax, 0x4008
jne 0x40e9c0
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e8d0
sub ecx, edx
mov dword [ebp - 0x1118], 0
add ecx, 2
push ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1118]
mov byte [ebp - 4], 1
call fcn.0040ea50
jmp 0x40e911
mov edi, dword [ebp - 0x1118]
test edi, edi
je 0x40e991
cmp byte [ebp - 0x1014], 0
lea esi, [ebp - 0x1014]
je 0x40e96b
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x40e949
cmp byte [eax], 0x30
jne 0x40e949
push eax
mov byte [edi], 0
call ebx
mov esi, eax
jmp 0x40e965
mov byte [edi], cl
movzx eax, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40e964
mov al, byte [esi + 1]
inc esi
inc edi
test al, al
je 0x40e96b
mov byte [edi], al
inc esi
inc edi
cmp byte [esi], 0
jne 0x40e930
mov ecx, dword [ebp - 0x1124]
mov word [edi], 0
push dword [ebp - 0x1118]
push dword [ebp - 0x111c]
call fcn.00411220
mov edi, dword [ebp - 0x1118]
mov esi, eax
jmp 0x40e996
mov esi, 0xe
lea eax, [ebp - 0x1114]
cmp edi, eax
je 0x40e9ab
lea ecx, [ebp - 0x1118]
call fcn.0040f2a0
test esi, esi
je 0x40e9ba
push esi
call fcn.0040ec60
add esp, 4
jmp 0x40e9d6
mov esi, dword [ebp - 0x1128]
push dword [ebp - 0x1134]
mov ecx, esi
call fcn.0040f8f0
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
lea esp, [ebp - 0x1144]
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.00513512
mov esp, ebp
pop ebp
ret 0xc