Function at 0x40d3b0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [0x429770]
sub esp, 0x17c
push esi
xor esi, esi
cmp eax, esi
jne 0x40d3d1
cmp dword [0x4292d4], esi
je 0x40d3d1
call fcn.0040d140
jmp 0x40d3d6
call fcn.0040d0f0
mov eax, dword [0x424040]
cmp eax, 0xffffffff
je 0x40d3e9
push eax
call fcn.00401320
add esp, 4
call fcn.0040ebf0
cmp dword [0x429770], esi
jne 0x40d791
mov eax, dword [0x4292b4]
push edi
cmp byte [eax], 0
je 0x40d685
push ebx
push ebp
push 2
push eax
call fcn.004010a0
mov ebp, eax
push esi
push ebp
call fcn.00401200
push ebp
call fcn.004011a0
mov ebx, eax
mov eax, dword [0x42975c]
push eax
mov word [esp + 0x34], 0x1235
mov word [esp + 0x36], si
mov dword [esp + 0x38], esi
call fcn.00402070
lea ecx, [esp + 0x30]
push 4
push ecx
push ebp
mov dword [esp + 0x3c], esi
call fcn.00401160
mov eax, dword [0x429348]
mov edi, dword [0x429344]
add esp, 0x24
cmp eax, esi
mov dword [esp + 0x14], esi
jbe 0x40d51d
push edi
call fcn.0040d7c0
mov edx, dword [0x4292bc]
add esp, 4
cmp byte [edx], 0
je 0x40d4fc
mov ecx, dword [edi + 0x1a]
test ch, 2
je 0x40d489
push esi
jmp 0x40d4ea
mov ax, word [edi + 2]
cmp ax, 0x17
je 0x40d4a5
cmp ax, 0x19
je 0x40d4a5
cmp ax, 0x1f4
je 0x40d4a5
cmp ax, 0x1f5
jne 0x40d4fc
test cl, cl
js 0x40d4fc
mov eax, dword [edi + 0x22]
mov byte [esp + 0x10], 0
cmp eax, esi
je 0x40d4bf
test ch, 4
je 0x40d4bf
mov byte [esp + 0x10], 1
test cl, 1
je 0x40d4c9
or byte [esp + 0x10], 8
cmp eax, 3
jne 0x40d4d3
or byte [esp + 0x10], 2
test ch, 0x10
je 0x40d4e5
mov eax, dword [edi + 0x1e]
test ah, 0x60
jne 0x40d4e5
or byte [esp + 0x10], 4
mov eax, dword [esp + 0x10]
push eax
push ebp
call fcn.0040b500
mov eax, dword [esp + 0x20]
add esp, 8
inc eax
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x14]
push edi
inc edx
mov dword [esp + 0x18], edx
call fcn.00403810
mov edi, eax
mov eax, dword [0x429348]
add esp, 4
cmp edx, eax
jb 0x40d46a
push ebp
call fcn.004011a0
sub eax, ebx
add ebx, 0xfffffff8
push ebx
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 + 0x30]
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.0040b970
mov eax, dword [0x429650]
add esp, 0x30
mov ebx, dword [eax + 0xc]
cmp ebx, esi
je 0x40d630
cmp byte [ebx], 0
je 0x40d630
test byte [eax], 0x20
je 0x40d630
xor eax, eax
mov cl, byte [eax + str.SoftwareMicrosoftWindowsCurrentVersionUninstall_]
mov byte [esp + eax + 0x24], cl
inc eax
test cl, cl
jne 0x40d588
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 ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40d62e
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
not ecx
dec ecx
push ecx
push ebx
push 1
push eax
push str.DisplayName
push edx
call esi
mov edx, dword [0x4292b4]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push str.UninstallString
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov ecx, dword [0x429758]
mov eax, dword [ecx*4 + 0x429390]
cmp eax, esi
je 0x40d653
mov edx, dword [ecx*4 + 0x429350]
push edx
push eax
push ebp
call fcn.00401160
add esp, 0xc
push ebp
call fcn.004011a0
lea eax, [esp + 0x20]
push 8
push eax
push ebp
mov word [esp + 0x2c], 0x7f7f
mov word [esp + 0x2e], 2
mov dword [esp + 0x30], esi
call fcn.00401160
push ebp
call fcn.00401320
add esp, 0x14
pop ebp
pop ebx
jmp 0x40d68f
push 0xffffffffffffffff
call fcn.0040b970
add esp, 4
cmp dword [0x429764], esi
jne 0x40d780
mov ecx, dword [0x42975c]
push ecx
call fcn.004020b0
mov edx, dword [0x429650]
add esp, 4
test byte [edx], 4
je 0x40d727
cmp dword [edx + 0x2c], esi
je 0x40d727
mov edi, dword [0x42975c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [edx + 0x28]
not ecx
dec ecx
mov edi, ecx
inc edi
cmp eax, 0x10
jb 0x40d6dc
mov eax, dword [0x424048]
jmp 0x40d6e3
mov eax, dword [eax*4 + 0x424044]
mov edx, dword [edx + 0x2c]
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40d721
mov eax, dword [0x42975c]
mov ecx, dword [0x429650]
push edi
push eax
mov edx, dword [ecx + 0x30]
mov eax, dword [esp + 0x14]
push 1
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x429650]
test byte [edx], 8
je 0x40d762
mov ecx, dword [edx + 0x38]
cmp ecx, esi
je 0x40d762
mov eax, dword [edx + 0x3c]
cmp eax, esi
je 0x40d762
mov edx, dword [edx + 0x40]
cmp edx, esi
je 0x40d762
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ecx
mov ecx, dword [0x42975c]
push ecx
push edx
push eax
call edi
mov edx, dword [0x429650]
mov eax, dword [edx + 0x38]
push eax
push esi
push esi
push esi
call edi
call fcn.0040c610
call fcn.0040c860
call fcn.0040cae0
mov ecx, dword [0x42975c]
push ecx
call fcn.00402070
add esp, 4
push 1
push esi
push 0x1000000
call fcn.00403820
add esp, 0xc
pop edi
cmp word [0x424030], 0xffff
jne 0x40d7a6
push 6
call fcn.00409aa0
add esp, 4
mov dword [0x4292d4], esi
pop esi
add esp, 0x17c
ret