Function at 0x40e5d0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x553f3c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, ecx
lea eax, [esp + 0x24]
push 4
push eax
xor ebx, ebx
mov byte [esi + 0x64], 1
mov ecx, dword [0x5c74b0]
push 4
push ebx
push str.mzcc_ext_vers
push ecx
mov dword [esp + 0x3c], 0x3a
call edi
mov eax, dword [0x5c74b0]
lea edx, [esp + 0x20]
push 4
push edx
push 4
push ebx
push str.intAOFRWE
push eax
mov dword [esp + 0x38], 1
call edi
mov ecx, esi
call fcn.0040ef70
mov byte [esi + 0x65], bl
mov ecx, dword [0x5c2a74]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, esi
mov dword [esp + 0xdc], ebx
call fcn.0040ea50
test eax, eax
je 0x40e71f
mov ecx, dword [esi + 0x28]
xor edi, edi
cmp ecx, ebx
jle 0x40e71f
mov edx, dword [esi + 0x24]
mov ebx, dword [esp + 0x1c]
mov eax, edx
mov ebp, dword [eax]
cmp ebx, dword [ebp + 8]
je 0x40e69e
inc edi
add eax, 4
cmp edi, ecx
jl 0x40e68a
jmp 0x40e71f
mov eax, dword [edx + edi*4]
xor ebp, ebp
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jle 0x40e71f
xor ebx, ebx
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 0x18]
push edx
mov eax, dword [ecx + ebx]
push eax
call fcn.0052f680
add esp, 8
test eax, eax
je 0x40e6d5
mov eax, dword [esi + 0x24]
inc ebp
add ebx, 0x24
mov eax, dword [eax + edi*4]
cmp ebp, dword [eax + 0x1c]
jl 0x40e6ac
jmp 0x40e71f
mov ecx, dword [esi + 0x24]
lea eax, [ebp + ebp*8]
shl eax, 2
mov edx, dword [ecx + edi*4]
mov ecx, dword [edx + 0x18]
mov dword [ecx + eax + 0x18], 1
mov ecx, dword [esp + 0x1c]
cmp ecx, 1
jle 0x40e71f
mov edx, dword [esi + 0x24]
push 1
push 1
push ecx
mov ecx, dword [edx + edi*4]
mov edx, dword [ecx + 0x18]
mov ecx, esi
add edx, eax
push edx
call fcn.0040e0a0
test eax, eax
je 0x40e71f
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + edi*4]
mov dword [ecx + 0x10], 1
cmp dword [esp + 0x1c], 1
jne 0x40e73d
mov edx, dword [0x5c7a08]
mov eax, dword [0x5c79c0]
push 0x40
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov al, byte [esi + 0x66]
test al, al
je 0x40e770
mov al, byte [esi + 0x65]
test al, al
jne 0x40e770
push 0
mov ecx, esi
call fcn.004105e0
test eax, eax
je 0x40e770
mov ecx, dword [0x5c7a08]
mov edx, dword [0x5c79d4]
push 0x40
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esi + 0x28]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x14], edx
jle 0x40e7e8
mov eax, dword [esi + 0x24]
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
cmp dword [eax + 8], 1
jle 0x40e7cd
mov ebx, dword [eax + 0x1c]
xor ecx, ecx
test ebx, ebx
jle 0x40e7cd
mov eax, dword [eax + 0x18]
add eax, 0x20
cmp dword [eax - 8], 0
jne 0x40e7c5
cmp dword [eax], 0
je 0x40e7b8
cmp dword [eax - 0x10], 0
je 0x40e7c5
mov edi, dword [esp + 0x14]
mov ebp, edx
inc edi
mov dword [esp + 0x14], edi
mov edi, ecx
inc ecx
add eax, 0x24
cmp ecx, ebx
jl 0x40e7a7
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x28]
inc edx
add ecx, 4
cmp edx, eax
mov dword [esp + 0x10], ecx
jl 0x40e78c
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40e7f4
mov ecx, esi
call fcn.00410960
jmp 0x40e9c9
cmp eax, 1
jne 0x40e899
mov edx, dword [0x5c2a74]
mov dword [esp + 0x10], edx
mov byte [esp + 0xd4], al
mov eax, dword [esi + 0x24]
lea edi, [edi + edi*8]
mov eax, dword [eax + ebp*4]
shl edi, 2
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 4]
mov edx, dword [ecx + edi + 4]
mov ecx, dword [0x5c79bc]
push edx
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0053afda
mov eax, dword [0x5c7a08]
mov ecx, dword [esp + 0x20]
add esp, 0x10
push 0x24
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40e87c
mov edx, dword [esi + 0x24]
push 0
push 1
mov eax, dword [edx + ebp*4]
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 8]
add edx, edi
push ecx
push edx
mov ecx, esi
call fcn.0040e0a0
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + ebp*4]
mov dword [ecx + 0x10], 1
mov ecx, esi
call fcn.00410960
lea ecx, [esp + 0x10]
mov byte [esp + 0xd4], 0
call fcn.005421be
jmp 0x40e9c9
push 0
push esi
lea ecx, [esp + 0x30]
call fcn.0041dc40
lea ecx, [esp + 0x28]
mov byte [esp + 0xd4], 2
call fcn.0053e1a5
cmp eax, 1
jne 0x40e99d
mov eax, dword [esp + 0xc4]
test eax, eax
jle 0x40e8e1
mov edx, dword [0x5c7a08]
mov eax, dword [0x5c79b8]
push 0x40
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esi + 0x28]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x40e97b
xor edi, edi
mov eax, dword [esi + 0x24]
mov ecx, dword [edi + eax]
cmp dword [ecx + 8], 1
jle 0x40e964
mov edx, dword [ecx + 0x1c]
xor ebx, ebx
test edx, edx
jle 0x40e964
xor ebp, ebp
mov ecx, dword [edi + eax]
mov edx, dword [ecx + 0x18]
mov ecx, dword [edx + ebp + 0x18]
test ecx, ecx
jne 0x40e955
mov eax, dword [edi + eax]
mov ecx, dword [eax + 0x18]
add ecx, ebp
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x40e931
mov edx, dword [ecx + 0x10]
test edx, edx
je 0x40e955
mov edx, dword [ecx + 0x1c]
test edx, edx
je 0x40e955
mov edx, dword [eax + 8]
push 0
push 0
push edx
push ecx
mov ecx, esi
call fcn.0040e0a0
mov eax, dword [esi + 0x24]
mov ecx, dword [edi + eax]
mov dword [ecx + 0x10], 1
mov eax, dword [esi + 0x24]
inc ebx
add ebp, 0x24
mov edx, dword [edi + eax]
cmp ebx, dword [edx + 0x1c]
jl 0x40e90d
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x28]
inc eax
add edi, 4
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x40e8f6
mov eax, dword [esp + 0xc8]
test eax, eax
jle 0x40e99d
mov eax, dword [0x5c7a08]
mov ecx, dword [0x5c79b4]
push 0x40
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, esi
call fcn.00410960
lea ecx, [esp + 0x84]
mov byte [esp + 0xd4], 3
call fcn.0053c240
lea ecx, [esp + 0x28]
mov byte [esp + 0xd4], 0
call fcn.0053dde6
lea ecx, [esp + 0x18]
mov dword [esp + 0xd4], 0xffffffff
call fcn.005421be
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc8
ret 4