Function at 0x408210
Capabilities:
Set registry value

Disassembly:
mov eax, dword [0x41e198]
sub esp, 0x17c
push esi
xor esi, esi
cmp eax, esi
jne 0x408231
cmp dword [0x41df20], esi
je 0x408231
call fcn.00407fa0
jmp 0x408236
call fcn.00407f50
mov eax, dword [0x41928c]
cmp eax, 0xffffffff
je 0x408249
push eax
call fcn.00401380
add esp, 4
cmp dword [0x41e198], esi
jne 0x4085dd
mov eax, dword [0x41df00]
push edi
cmp byte [eax], 0
je 0x4084e0
push ebx
push ebp
push 2
push eax
call fcn.00401100
mov ebp, eax
push esi
push ebp
call fcn.00401260
push ebp
call fcn.00401200
mov ebx, eax
mov eax, dword [0x41e184]
push eax
mov word [esp + 0x34], 0x1235
mov word [esp + 0x36], si
mov dword [esp + 0x38], esi
call fcn.004020d0
lea ecx, [esp + 0x30]
push 4
push ecx
push ebp
mov dword [esp + 0x3c], esi
call fcn.004011c0
mov eax, dword [0x41df44]
mov edi, dword [0x41df40]
add esp, 0x24
cmp eax, esi
mov dword [esp + 0x14], esi
jbe 0x408378
push edi
call fcn.00408670
mov edx, dword [0x41df08]
add esp, 4
cmp byte [edx], 0
je 0x408357
mov ecx, dword [edi + 8]
test ch, 2
je 0x4082e4
push esi
jmp 0x408345
mov ax, word [edi + 4]
cmp ax, 0x17
je 0x408300
cmp ax, 0x19
je 0x408300
cmp ax, 0x1f4
je 0x408300
cmp ax, 0x1f5
jne 0x408357
test cl, cl
js 0x408357
mov eax, dword [edi + 0x10]
mov byte [esp + 0x10], 0
cmp eax, esi
je 0x40831a
test ch, 4
je 0x40831a
mov byte [esp + 0x10], 1
test cl, 1
je 0x408324
or byte [esp + 0x10], 8
cmp eax, 3
jne 0x40832e
or byte [esp + 0x10], 2
test ch, 0x10
je 0x408340
mov eax, dword [edi + 0xc]
test ah, 0x60
jne 0x408340
or byte [esp + 0x10], 4
mov eax, dword [esp + 0x10]
push eax
push ebp
call fcn.00406f90
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.00403870
mov edi, eax
mov eax, dword [0x41df44]
add esp, 4
cmp edx, eax
jb 0x4082c5
push ebp
call fcn.00401200
sub eax, ebx
add ebx, 0xfffffff8
push ebx
push ebp
mov dword [esp + 0x2c], eax
call fcn.00401220
lea ecx, [esp + 0x28]
push 8
push ecx
push ebp
call fcn.004011c0
lea edx, [esp + 0x30]
push 4
push edx
push ebp
call fcn.004011c0
mov eax, dword [esp + 0x44]
add eax, 0xfffffffc
push eax
push ebp
call fcn.00401240
push ebp
call fcn.004073c0
mov eax, dword [0x41e090]
add esp, 0x30
mov ebx, dword [eax + 0xa]
cmp ebx, esi
je 0x40848b
cmp byte [ebx], 0
je 0x40848b
test byte [eax], 0x20
je 0x40848b
xor eax, eax
mov cl, byte [eax + str.SoftwareMicrosoftWindowsCurrentVersionUninstall_]
mov byte [esp + eax + 0x24], cl
inc eax
test cl, cl
jne 0x4083e3
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 0x408489
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 [0x41df00]
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 [0x41e180]
mov eax, dword [ecx*4 + 0x41df90]
cmp eax, esi
je 0x4084ae
mov edx, dword [ecx*4 + 0x41df50]
push edx
push eax
push ebp
call fcn.004011c0
add esp, 0xc
push ebp
call fcn.00401200
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.004011c0
push ebp
call fcn.00401380
add esp, 0x14
pop ebp
pop ebx
jmp 0x4084ea
push 0xffffffffffffffff
call fcn.004073c0
add esp, 4
cmp dword [0x41e18c], esi
jne 0x4085cc
mov ecx, dword [0x41e184]
push ecx
call fcn.00402110
mov edx, dword [0x41e090]
add esp, 4
test byte [edx], 4
je 0x408582
cmp dword [edx + 0x16], esi
je 0x408582
mov edi, dword [0x41e184]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [edx + 0x12]
not ecx
dec ecx
mov edi, ecx
inc edi
cmp eax, 0x10
jb 0x408537
mov eax, dword [0x419294]
jmp 0x40853e
mov eax, dword [eax*4 + 0x419290]
mov edx, dword [edx + 0x16]
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40857c
mov eax, dword [0x41e184]
mov ecx, dword [0x41e090]
push edi
push eax
mov edx, dword [ecx + 0x1a]
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 [0x41e090]
test byte [edx], 8
je 0x4085bd
mov ecx, dword [edx + 0x26]
cmp ecx, esi
je 0x4085bd
mov eax, dword [edx + 0x2a]
cmp eax, esi
je 0x4085bd
mov edx, dword [edx + 0x2e]
cmp edx, esi
je 0x4085bd
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ecx
mov ecx, dword [0x41e184]
push ecx
push edx
push eax
call edi
mov edx, dword [0x41e090]
mov eax, dword [edx + 0x26]
push eax
push esi
push esi
push esi
call edi
mov ecx, dword [0x41e184]
push ecx
call fcn.004020d0
add esp, 4
push 1
push esi
push 0x1000000
call fcn.00403880
add esp, 0xc
pop edi
cmp word [0x419274], 0xffff
jne 0x4085f2
push 6
call fcn.00408600
add esp, 4
mov dword [0x41df20], esi
pop esi
add esp, 0x17c
ret