Function at 0x406511
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push dword [ebp + 0x1c]
xor ebx, ebx
push 0x5c
push dword [ebp + 0x10]
lea esi, [ebp - 0xc]
mov dword [ebp - 4], ebx
call fcn.00403a4f
lea edi, [ebp - 8]
call fcn.00403e91
pop ecx
lea edi, [ebp + 0x10]
call fcn.00403dde
mov eax, dword [eax]
pop ecx
push ebx
push 3
push ebx
push ebx
push eax
push dword [ebp + 0xc]
xor edi, edi
lea eax, [ebp - 4]
call fcn.004069f7
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.00404c4b
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404c4b
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00404c4b
cmp dword [ebp + 0x1c], ebx
je 0x406594
cmp dword [ebp - 4], ebx
je 0x40658d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x406805
mov dword [ebp + 0x10], ebx
mov ebx, str.Partner
push ebx
lea eax, [ebp - 4]
push eax
lea esi, [ebp + 0x10]
xor edi, edi
call fcn.00404e83
test eax, eax
jne 0x406658
cmp dword [ebp + 0x10], 1
jbe 0x406658
cmp byte [ebp + 0x14], al
je 0x406672
mov eax, dword [0x40b200]
mov ecx, 0x40b200
call dword [eax + 0xc]
mov edx, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebp + 0xc], eax
push 1
lea eax, [ebp + 0xc]
lea edi, [ebp - 0x18]
call fcn.00404112
mov eax, dword [eax + 4]
push ebx
lea ecx, [ebp - 4]
push ecx
mov edi, eax
call fcn.00404e83
mov ecx, dword [ebp - 0x18]
mov esi, eax
mov eax, dword [ebp - 0x10]
call fcn.00404c8f
test esi, esi
jne 0x40662a
push 4
push dword [ebp + 0xc]
push 4
push dword [ebp + 0x18]
push 1
push 0x800
call dword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
sete al
test al, al
jne 0x40664b
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404c4b
cmp dword [ebp - 4], 0
je 0x406644
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x406805
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404c4b
jmp 0x406672
push 1
push dword [ebp + 0x18]
lea eax, [ebp - 4]
push ebx
push eax
call fcn.004069cf
test eax, eax
mov dword [ebp + 0x1c], eax
jne 0x4067ed
and dword [ebp + 0x18], 0
mov ebx, str.InstallTime
push ebx
lea eax, [ebp - 4]
push eax
lea esi, [ebp + 0x18]
xor edi, edi
call fcn.00404e83
test eax, eax
jne 0x406697
cmp dword [ebp + 0x18], eax
jne 0x40671c
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
add esi, 0x2c
push esi
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov eax, dword [0x40b200]
mov ecx, 0x40b200
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x18], eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
push eax
lea eax, [ebp + 0x18]
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.00403d74
mov edi, dword [ebp + 0x18]
add esp, 0x20
push 1
push edi
push ebx
lea eax, [ebp - 4]
push eax
call fcn.004069cf
test eax, eax
mov dword [ebp + 0x1c], eax
jne 0x40670a
add dword [esi], 0x989680
adc dword [esi + 4], eax
lea eax, [edi - 0x10]
call fcn.00404c4b
cmp dword [ebp + 0x1c], 0
jne 0x4067f1
mov eax, dword [ebp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor edi, edi
cmp eax, edi
je 0x406746
cmp byte [eax], 0
je 0x406746
push 1
push eax
push str.PartnerDesc
lea eax, [ebp - 4]
push eax
call fcn.004069cf
mov dword [ebp + 0x1c], eax
jmp 0x406750
push str.PartnerDesc
push dword [ebp - 4]
call esi
cmp dword [ebp + 0x1c], edi
jne 0x4067ed
mov eax, dword [ebp + 0x24]
cmp eax, edi
je 0x40677b
cmp byte [eax], 0
je 0x40677b
push 1
push eax
push str.PartnerMsg
lea eax, [ebp - 4]
push eax
call fcn.004069cf
mov dword [ebp + 0x1c], eax
jmp 0x406785
push str.PartnerMsg
push dword [ebp - 4]
call esi
cmp dword [ebp + 0x1c], edi
jne 0x4067ed
mov eax, dword [ebp + 0x28]
cmp eax, edi
je 0x4067ac
cmp byte [eax], 0
je 0x4067ac
push 1
push eax
push str.PartnerParam
lea eax, [ebp - 4]
push eax
call fcn.004069cf
mov dword [ebp + 0x1c], eax
jmp 0x4067b6
push str.PartnerParam
push dword [ebp - 4]
call esi
cmp dword [ebp + 0x1c], edi
jne 0x4067ed
mov eax, dword [ebp + 0x2c]
cmp eax, edi
je 0x4067e3
cmp byte [eax], 0
je 0x4067e3
cmp byte [ebp + 0x14], 0
jne 0x4067e3
push 1
push eax
push str.PartnerFile
lea eax, [ebp - 4]
push eax
call fcn.004069cf
mov dword [ebp + 0x1c], eax
jmp 0x4067ed
push str.PartnerFile
push dword [ebp - 4]
call esi
cmp dword [ebp + 0x1c], 0
sete bl
cmp dword [ebp - 4], 0
je 0x406803
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x28