Function at 0x408200
Capabilities:
Set registry value

Disassembly:
mov eax, dword [0x41e168]
sub esp, 0x17c
push esi
xor esi, esi
cmp eax, esi
jne 0x408221
cmp dword [0x41def0], esi
je 0x408221
call fcn.00407f90
jmp 0x408226
call fcn.00407f40
mov eax, dword [0x41925c]
cmp eax, 0xffffffff
je 0x408239
push eax
call fcn.00401380
add esp, 4
cmp dword [0x41e168], esi
jne 0x4085cd
mov eax, dword [0x41ded0]
push edi
cmp byte [eax], 0
je 0x4084d0
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 [0x41e154]
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 [0x41df14]
mov edi, dword [0x41df10]
add esp, 0x24
cmp eax, esi
mov dword [esp + 0x14], esi
jbe 0x408368
push edi
call fcn.00408660
mov edx, dword [0x41ded8]
add esp, 4
cmp byte [edx], 0
je 0x408347
mov ecx, dword [edi + 8]
test ch, 2
je 0x4082d4
push esi
jmp 0x408335
mov ax, word [edi + 4]
cmp ax, 0x17
je 0x4082f0
cmp ax, 0x19
je 0x4082f0
cmp ax, 0x1f4
je 0x4082f0
cmp ax, 0x1f5
jne 0x408347
test cl, cl
js 0x408347
mov eax, dword [edi + 0x10]
mov byte [esp + 0x10], 0
cmp eax, esi
je 0x40830a
test ch, 4
je 0x40830a
mov byte [esp + 0x10], 1
test cl, 1
je 0x408314
or byte [esp + 0x10], 8
cmp eax, 3
jne 0x40831e
or byte [esp + 0x10], 2
test ch, 0x10
je 0x408330
mov eax, dword [edi + 0xc]
test ah, 0x60
jne 0x408330
or byte [esp + 0x10], 4
mov eax, dword [esp + 0x10]
push eax
push ebp
call fcn.00406f80
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.00403860
mov edi, eax
mov eax, dword [0x41df14]
add esp, 4
cmp edx, eax
jb 0x4082b5
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.004073b0
mov eax, dword [0x41e060]
add esp, 0x30
mov ebx, dword [eax + 0xa]
cmp ebx, esi
je 0x40847b
cmp byte [ebx], 0
je 0x40847b
test byte [eax], 0x20
je 0x40847b
xor eax, eax
mov cl, byte [eax + str.SoftwareMicrosoftWindowsCurrentVersionUninstall_]
mov byte [esp + eax + 0x24], cl
inc eax
test cl, cl
jne 0x4083d3
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 0x408479
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 [0x41ded0]
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 [0x41e150]
mov eax, dword [ecx*4 + 0x41df60]
cmp eax, esi
je 0x40849e
mov edx, dword [ecx*4 + 0x41df20]
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 0x4084da
push 0xffffffffffffffff
call fcn.004073b0
add esp, 4
cmp dword [0x41e15c], esi
jne 0x4085bc
mov ecx, dword [0x41e154]
push ecx
call fcn.00402110
mov edx, dword [0x41e060]
add esp, 4
test byte [edx], 4
je 0x408572
cmp dword [edx + 0x16], esi
je 0x408572
mov edi, dword [0x41e154]
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 0x408527
mov eax, dword [0x419264]
jmp 0x40852e
mov eax, dword [eax*4 + 0x419260]
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 0x40856c
mov eax, dword [0x41e154]
mov ecx, dword [0x41e060]
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 [0x41e060]
test byte [edx], 8
je 0x4085ad
mov ecx, dword [edx + 0x26]
cmp ecx, esi
je 0x4085ad
mov eax, dword [edx + 0x2a]
cmp eax, esi
je 0x4085ad
mov edx, dword [edx + 0x2e]
cmp edx, esi
je 0x4085ad
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ecx
mov ecx, dword [0x41e154]
push ecx
push edx
push eax
call edi
mov edx, dword [0x41e060]
mov eax, dword [edx + 0x26]
push eax
push esi
push esi
push esi
call edi
mov ecx, dword [0x41e154]
push ecx
call fcn.004020d0
add esp, 4
push 1
push esi
push 0x1000000
call fcn.00403870
add esp, 0xc
pop edi
cmp word [0x419246], 0xffff
jne 0x4085e2
push 6
call fcn.004085f0
add esp, 4
mov dword [0x41def0], esi
pop esi
add esp, 0x17c
ret