Function at 0x411660
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549ce0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
mov edx, dword [0x5ba8bc]
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x20]
xor edi, edi
push eax
push ecx
push edi
push edi
push str.mzcc_ext_vers
push edx
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4116b9
cmp dword [ebp - 0x20], 0x32
jae 0x4118cc
mov ecx, dword [0x5ba8bc]
lea eax, [ebp - 0x20]
push 4
push eax
push 4
push edi
push str.mzcc_ext_vers
push ecx
mov dword [ebp - 0x20], 0x32
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4118cc
mov al, byte [esi + 0x64]
test al, al
jne 0x4118cc
mov ecx, esi
call fcn.0040eb00
mov edx, dword [0x5b5ecc]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040e5e0
cmp eax, edi
je 0x411850
mov eax, dword [ebp - 0x18]
xor ebx, ebx
cmp ebx, dword [esi + 0x28]
jge 0x411850
mov edx, dword [esi + 0x24]
mov ecx, dword [edx + ebx*4]
cmp eax, dword [ecx + 8]
jne 0x4118a9
mov dword [ebp - 0x24], edi
mov edx, dword [esi + 0x24]
mov eax, dword [edx + ebx*4]
cmp edi, dword [eax + 0x1c]
jge 0x411850
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 0x14]
lea edi, [edi + edi*8]
push ecx
shl edi, 2
mov eax, dword [eax + edi]
push eax
call fcn.00524fd0
add esp, 8
test eax, eax
jne 0x41189b
mov edx, dword [esi + 0x24]
mov eax, dword [edx + ebx*4]
mov ecx, dword [eax + 0x18]
mov dword [ecx + edi + 0x18], 1
mov ecx, dword [ebp - 0x18]
cmp ecx, 1
jle 0x411850
mov edx, dword [esi + 0x24]
mov eax, dword [edx + ebx*4]
mov edx, dword [eax + 0x18]
lea eax, [edx + edi]
mov edx, dword [edx + edi + 8]
test edx, edx
je 0x411850
mov edx, dword [eax + 0x10]
test edx, edx
je 0x411850
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 2
push edx
push ecx
mov ecx, esi
call fcn.0040e0c0
test eax, eax
jne 0x4117d5
push str.your
lea ecx, [ebp - 0x1c]
call fcn.00537c8d
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0x24], eax
mov ecx, dword [esi + 0x24]
mov byte [ebp - 4], 3
mov edx, dword [ecx + ebx*4]
mov eax, dword [edx + 0x18]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax + edi + 4]
mov eax, dword [0x5baca4]
push ecx
push edx
lea ecx, [ebp - 0x24]
push eax
push ecx
call fcn.0053091a
mov edx, dword [0x5badb0]
mov eax, dword [ebp - 0x24]
add esp, 0x10
push 0x24
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x411838
mov edx, dword [esi + 0x24]
mov ecx, dword [ebp - 0x18]
push 1
push ecx
mov eax, dword [edx + ebx*4]
mov ecx, dword [eax + 0x18]
add ecx, edi
push ecx
mov ecx, esi
call fcn.004114f0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00537b04
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00537b04
xor edi, edi
mov dword [ebp - 0x24], edi
cmp edi, dword [esi + 0x28]
jge 0x4118b2
mov edx, dword [esi + 0x24]
mov edx, dword [edx + edi*4]
cmp dword [edx + 8], 1
jle 0x4118af
xor eax, eax
cmp eax, dword [edx + 0x1c]
jge 0x4118af
mov ebx, dword [edx + 0x18]
lea ecx, [eax + eax*8]
lea ecx, [ebx + ecx*4]
mov ebx, dword [ecx + 0x18]
test ebx, ebx
jne 0x411898
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x411898
mov ebx, dword [ecx + 0x10]
test ebx, ebx
je 0x411898
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edi
inc ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], ecx
inc eax
jmp 0x411868
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
mov edi, eax
jmp 0x41173c
inc ebx
jmp 0x411721
inc edi
jmp 0x411855
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4118dd
mov ecx, esi
call fcn.004104f0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x41196e
mov edx, dword [0x5b5ecc]
mov dword [ebp - 0x1c], edx
mov eax, dword [esi + 0x24]
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov byte [ebp - 4], 4
mov eax, dword [eax + ebx*4]
lea edi, [edi + edi*8]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 4]
shl edi, 2
mov edx, dword [ecx + edi + 4]
mov ecx, dword [0x5baca4]
push edx
push eax
lea edx, [ebp - 0x1c]
push ecx
push edx
call fcn.0053091a
mov eax, dword [0x5badb0]
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
push 0x24
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x411956
mov edx, dword [esi + 0x24]
push 1
mov eax, dword [edx + ebx*4]
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 8]
add edx, edi
push ecx
push edx
mov ecx, esi
call fcn.004114f0
mov ecx, esi
call fcn.004104f0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00537b04
jmp 0x4118c0
mov eax, dword [0x5badb0]
mov ecx, dword [0x5baca0]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x24
push eax
push ecx
push 0
call edi
cmp eax, 6
jne 0x4118b9
mov edx, dword [0x5badb0]
mov eax, dword [0x5bad60]
push 0x40
push edx
push eax
push 0
call edi
xor ebx, ebx
cmp ebx, dword [esi + 0x28]
jge 0x4118b9
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx + ebx*4]
cmp dword [edx + 8], 1
jle 0x4119f6
xor edi, edi
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + ebx*4]
cmp edi, dword [ecx + 0x1c]
jge 0x4119f6
mov eax, dword [ecx + 0x18]
lea edx, [edi + edi*8]
lea eax, [eax + edx*4]
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x4119f3
mov edx, dword [eax + 8]
test edx, edx
je 0x4119f3
mov edx, dword [eax + 0x10]
test edx, edx
je 0x4119f3
mov ecx, dword [ecx + 8]
push 0
push ecx
push eax
mov ecx, esi
call fcn.004114f0
inc edi
jmp 0x4119bc
inc ebx
jmp 0x4119a5