Function at 0x40dd60
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov eax, dword [0x42a90c]
sub esp, 0x17c
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x40dd81
cmp dword [0x42a468], ebx
je 0x40dd81
call fcn.0040daf0
jmp 0x40dd86
call fcn.0040daa0
mov eax, dword [0x425040]
cmp eax, 0xffffffff
je 0x40dd99
push eax
call fcn.00401320
add esp, 4
call fcn.0040f6c0
cmp dword [0x42a90c], ebx
jne 0x40e266
mov eax, dword [0x42a448]
push ebp
push edi
cmp byte [eax], 0
je 0x40e0c5
push esi
push 2
push eax
call fcn.004010a0
mov ebp, eax
push ebx
push ebp
call fcn.00401200
push ebp
call fcn.004011a0
mov esi, eax
mov eax, dword [0x42a8f8]
push eax
mov word [esp + 0x34], 0x1235
mov word [esp + 0x36], bx
mov dword [esp + 0x38], ebx
call fcn.00402070
lea ecx, [esp + 0x2c]
push 4
push ecx
push ebp
mov dword [esp + 0x38], ebx
call fcn.00401160
mov eax, dword [0x42a4dc]
mov edi, dword [0x42a4d8]
add esp, 0x24
cmp eax, ebx
mov dword [esp + 0x18], ebx
jbe 0x40decd
push edi
call fcn.0040e290
mov edx, dword [0x42a450]
add esp, 4
cmp byte [edx], 0
je 0x40deac
mov ecx, dword [edi + 0x1a]
test ch, 2
je 0x40de39
push ebx
jmp 0x40de9a
mov ax, word [edi + 2]
cmp ax, 0x17
je 0x40de55
cmp ax, 0x19
je 0x40de55
cmp ax, 0x1f4
je 0x40de55
cmp ax, 0x1f5
jne 0x40deac
test cl, cl
js 0x40deac
mov eax, dword [edi + 0x22]
mov byte [esp + 0x10], 0
cmp eax, ebx
je 0x40de6f
test ch, 4
je 0x40de6f
mov byte [esp + 0x10], 1
test cl, 1
je 0x40de79
or byte [esp + 0x10], 8
cmp eax, 3
jne 0x40de83
or byte [esp + 0x10], 2
test ch, 0x10
je 0x40de95
mov eax, dword [edi + 0x1e]
test ah, 0x60
jne 0x40de95
or byte [esp + 0x10], 4
mov eax, dword [esp + 0x10]
push eax
push ebp
call fcn.0040b920
mov eax, dword [esp + 0x1c]
add esp, 8
inc eax
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x18]
push edi
inc edx
mov dword [esp + 0x1c], edx
call fcn.00403a40
mov edi, eax
mov eax, dword [0x42a4dc]
add esp, 4
cmp edx, eax
jb 0x40de1a
push ebp
call fcn.004011a0
sub eax, esi
add esi, 0xfffffff8
push esi
push ebp
mov dword [esp + 0x2c], eax
call fcn.004011c0
lea ecx, [esp + 0x28]
push 8
push ecx
push ebp
call fcn.00401160
lea edx, [esp + 0x2c]
push 4
push edx
push ebp
call fcn.00401160
mov eax, dword [esp + 0x44]
add eax, 0xfffffffc
push eax
push ebp
call fcn.004011e0
push ebp
call fcn.0040bff0
mov eax, dword [0x42a7e8]
add esp, 0x30
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x40e06b
cmp byte [ebx], 0
je 0x40e06b
test byte [eax], 0x20
je 0x40e06b
xor eax, eax
mov cl, byte [eax + str.SoftwareMicrosoftWindowsCurrentVersionUninstall_]
mov byte [esp + eax + 0x24], cl
inc eax
test cl, cl
jne 0x40df38
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x42a894]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test eax, eax
mov esi, 0x80000002
je 0x40dfdd
mov eax, dword [0x42a7e8]
test byte [eax + 1], 0x10
jne 0x40dfdd
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push 0xf003f
push 0
push edx
push 0x80000002
mov esi, 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40dfdd
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.DisplayName
push eax
call edi
mov ecx, dword [esp + 0x10]
push str.UninstallString
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
lea ecx, [esp + 0x3c]
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40e01a
lea edx, [esp + 0x10]
lea eax, [esp + 0x24]
push edx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40e06b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push 1
push eax
push str.DisplayName
push ecx
call esi
mov edx, dword [0x42a448]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [esp + 0x18]
push 1
push eax
push str.UninstallString
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x42a8f4]
pop esi
mov eax, dword [ecx*4 + 0x42a528]
test eax, eax
je 0x40e08f
mov ecx, dword [ecx*4 + 0x42a4e8]
push ecx
push eax
push ebp
call fcn.00401160
add esp, 0xc
push ebp
call fcn.004011a0
lea edx, [esp + 0x1c]
push 8
push edx
push ebp
mov word [esp + 0x28], 0x7f7f
mov word [esp + 0x2a], 2
mov dword [esp + 0x2c], 0
call fcn.00401160
push ebp
call fcn.00401320
add esp, 0x14
xor ebx, ebx
jmp 0x40e0cf
push 0xffffffffffffffff
call fcn.0040bff0
add esp, 4
cmp dword [0x42a900], ebx
jne 0x40e254
mov eax, dword [0x42a8f8]
push eax
call fcn.004020b0
mov edx, dword [0x42a7e8]
add esp, 4
test byte [edx], 4
je 0x40e1fb
cmp dword [edx + 0x2c], ebx
je 0x40e1fb
mov edi, dword [0x42a8f8]
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [0x425048]
repne scasb al, byte es:[edi]
mov eax, dword [edx + 0x28]
not ecx
dec ecx
mov ebp, ecx
inc ebp
cmp eax, 0x14
jae 0x40e129
mov ebx, dword [eax*4 + 0x425044]
xor edi, edi
cmp eax, 4
jne 0x40e14d
mov ecx, dword [edx + 0x30]
push 0x5c
push ecx
call fcn.00419c40
mov edi, eax
add esp, 8
test edi, edi
je 0x40e147
mov byte [edi], 0
mov edx, dword [0x42a7e8]
mov ecx, dword [edx + 0x2c]
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40e196
mov edx, dword [0x42a8f8]
push ebp
push edx
mov edx, dword [esp + 0x18]
push 1
push eax
mov eax, dword [0x42a7e8]
mov ecx, dword [eax + 0x30]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
push eax
jmp 0x40e1e0
mov edx, dword [0x42a7e8]
cmp dword [edx + 0x28], 4
jne 0x40e1ec
mov ebx, dword [edx + 0x30]
test edi, edi
je 0x40e1ac
lea ebx, [edi + 1]
mov edx, dword [edx + 0x2c]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40e1e6
mov eax, dword [0x42a8f8]
mov ecx, dword [esp + 0x10]
push ebp
push eax
push 1
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x42a7e8]
xor ebx, ebx
test edi, edi
je 0x40e1fb
mov byte [edi], 0x5c
mov edx, dword [0x42a7e8]
test byte [edx], 8
je 0x40e236
mov ecx, dword [edx + 0x38]
cmp ecx, ebx
je 0x40e236
mov eax, dword [edx + 0x3c]
cmp eax, ebx
je 0x40e236
mov edx, dword [edx + 0x40]
cmp edx, ebx
je 0x40e236
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ecx
mov ecx, dword [0x42a8f8]
push ecx
push edx
push eax
call edi
mov edx, dword [0x42a7e8]
mov eax, dword [edx + 0x38]
push eax
push ebx
push ebx
push ebx
call edi
call fcn.0040ce20
call fcn.0040d070
call fcn.0040d3a0
mov ecx, dword [0x42a8f8]
push ecx
call fcn.00402070
add esp, 4
push 1
push ebx
push 0x1000000
call fcn.00403a50
add esp, 0xc
pop edi
pop ebp
cmp word [0x425030], 0xffff
jne 0x40e27b
push 6
call fcn.00409e60
add esp, 4
mov dword [0x42a468], ebx
pop ebx
add esp, 0x17c
ret