Function at 0x41a580
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x61676c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x2c]
push 4
push ecx
xor ebx, ebx
mov byte [edi + 0x64], 1
mov edx, dword [0x6d2354]
mov eax, dword [0x6d2178]
push 4
push ebx
push str.mzcc_ext_vers
push edx
mov dword [esp + 0x44], eax
call esi
mov ecx, dword [0x6d2354]
lea eax, [esp + 0x1c]
push 4
push eax
push 4
push ebx
push str.intAOFRWE
push ecx
mov dword [esp + 0x34], 1
call esi
mov ecx, edi
call fcn.0041b250
mov byte [edi + 0x65], bl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov word [esp + 0x24], bx
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, edi
mov dword [esp + 0xe4], ebx
call fcn.0041a9e0
test eax, eax
je 0x41a6dc
mov ecx, dword [edi + 0x28]
xor esi, esi
cmp ecx, ebx
jle 0x41a6dc
mov edx, dword [edi + 0x24]
mov ebx, dword [esp + 0x18]
mov eax, edx
mov ebp, dword [eax]
cmp ebx, dword [ebp + 8]
je 0x41a653
inc esi
add eax, 4
cmp esi, ecx
jl 0x41a63f
jmp 0x41a6dc
mov eax, dword [edx + esi*4]
xor ebp, ebp
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jle 0x41a6dc
xor ebx, ebx
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x41a66d
lea ecx, [esp + 0x24]
mov edx, dword [eax + 0x18]
push ecx
mov eax, dword [edx + ebx]
push eax
call fcn.005e985c
add esp, 8
test eax, eax
je 0x41a692
mov eax, dword [edi + 0x24]
inc ebp
add ebx, 0x24
mov eax, dword [eax + esi*4]
cmp ebp, dword [eax + 0x1c]
jl 0x41a661
jmp 0x41a6dc
mov ecx, dword [edi + 0x24]
lea eax, [ebp + ebp*8]
shl eax, 2
mov edx, dword [ecx + esi*4]
mov ecx, dword [edx + 0x18]
mov dword [ecx + eax + 0x18], 1
mov ecx, dword [esp + 0x18]
cmp ecx, 1
jle 0x41a6dc
mov edx, dword [edi + 0x24]
push 1
push 1
push ecx
mov ecx, dword [edx + esi*4]
mov edx, dword [ecx + 0x18]
mov ecx, edi
add edx, eax
push edx
call fcn.0041a180
test eax, eax
je 0x41a6dc
mov eax, dword [edi + 0x24]
mov ecx, dword [eax + esi*4]
mov dword [ecx + 0x10], 1
cmp dword [esp + 0x18], 1
jne 0x41a703
mov eax, dword [0x6d2340]
test eax, eax
jne 0x41a703
mov edx, dword [0x6d2dc8]
mov eax, dword [0x6d2d80]
push 0x40
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [edi + 0x28]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x14], edx
jle 0x41a77b
mov ecx, dword [edi + 0x24]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp dword [eax + 8], 1
jle 0x41a760
mov ebx, dword [eax + 0x1c]
xor ecx, ecx
test ebx, ebx
jle 0x41a760
mov eax, dword [eax + 0x18]
add eax, 0x20
cmp dword [eax - 8], 0
jne 0x41a758
cmp dword [eax], 0
je 0x41a74b
cmp dword [eax - 0x10], 0
je 0x41a758
mov esi, dword [esp + 0x14]
mov ebp, edx
inc esi
mov dword [esp + 0x14], esi
mov esi, ecx
inc ecx
add eax, 0x24
cmp ecx, ebx
jl 0x41a73a
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x28]
inc edx
add ecx, 4
cmp edx, eax
mov dword [esp + 0x10], ecx
jl 0x41a71f
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x41a787
mov ecx, edi
call fcn.0041e8a0
jmp 0x41a95e
cmp eax, 1
jne 0x41a82c
mov ecx, dword [0x6cd768]
mov dword [esp + 0x10], ecx
mov byte [esp + 0xdc], al
mov eax, dword [edi + 0x24]
lea esi, [esi + esi*8]
mov eax, dword [eax + ebp*4]
shl esi, 2
mov edx, dword [eax + 0x18]
mov ecx, dword [edx + esi + 4]
mov edx, dword [eax + 4]
mov eax, dword [0x6d2d7c]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.005fc86b
mov edx, dword [0x6d2dc8]
mov eax, dword [esp + 0x20]
add esp, 0x10
push 0x24
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x41a80f
mov ecx, dword [edi + 0x24]
push 0
push 1
mov eax, dword [ecx + ebp*4]
mov ecx, edi
mov edx, dword [eax + 8]
mov eax, dword [eax + 0x18]
add eax, esi
push edx
push eax
call fcn.0041a180
mov ecx, dword [edi + 0x24]
mov edx, dword [ecx + ebp*4]
mov dword [edx + 0x10], 1
mov ecx, edi
call fcn.0041e8a0
lea ecx, [esp + 0x10]
mov byte [esp + 0xdc], 0
call fcn.00603a3c
jmp 0x41a95e
push 0
push edi
lea ecx, [esp + 0x38]
call fcn.00436460
lea ecx, [esp + 0x30]
mov byte [esp + 0xdc], 2
call fcn.005ffa36
cmp eax, 1
jne 0x41a932
mov eax, dword [esp + 0xcc]
test eax, eax
jle 0x41a874
mov eax, dword [0x6d2dc8]
mov ecx, dword [0x6d2d78]
push 0x40
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [edi + 0x28]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x41a910
xor esi, esi
mov eax, dword [edi + 0x24]
mov ecx, dword [esi + eax]
cmp dword [ecx + 8], 1
jle 0x41a8f9
mov edx, dword [ecx + 0x1c]
xor ebx, ebx
test edx, edx
jle 0x41a8f9
xor ebp, ebp
mov edx, dword [esi + eax]
mov ecx, dword [edx + 0x18]
mov edx, dword [ecx + ebp + 0x18]
test edx, edx
jne 0x41a8ea
mov eax, dword [esi + eax]
mov edx, dword [eax + 0x18]
lea ecx, [edx + ebp]
mov edx, dword [edx + ebp + 0x20]
test edx, edx
je 0x41a8c6
mov edx, dword [ecx + 0x10]
test edx, edx
je 0x41a8ea
mov edx, dword [ecx + 0x1c]
test edx, edx
je 0x41a8ea
mov eax, dword [eax + 8]
push 0
push 0
push eax
push ecx
mov ecx, edi
call fcn.0041a180
mov ecx, dword [edi + 0x24]
mov edx, dword [esi + ecx]
mov dword [edx + 0x10], 1
mov eax, dword [edi + 0x24]
inc ebx
add ebp, 0x24
mov ecx, dword [esi + eax]
cmp ebx, dword [ecx + 0x1c]
jl 0x41a8a0
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x28]
inc eax
add esi, 4
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x41a889
mov eax, dword [esp + 0xd0]
test eax, eax
jle 0x41a932
mov edx, dword [0x6d2dc8]
mov eax, dword [0x6d2d74]
push 0x40
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, edi
call fcn.0041e8a0
lea ecx, [esp + 0x8c]
mov byte [esp + 0xdc], 3
call fcn.005fdad1
lea ecx, [esp + 0x30]
mov byte [esp + 0xdc], 0
call fcn.005ff677
lea ecx, [esp + 0x20]
mov dword [esp + 0xdc], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd0
ret 4