Function at 0x402839
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.004080e0
add esp, 0xc
lea eax, [ebp - 0x210]
mov esi, 0x104
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402ae7
cmp eax, esi
jae 0x402ae7
lea eax, [ebp - 0x210]
mov dword [ebp - 0x220], ebx
push eax
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x21c], ebx
call fcn.004041b9
test eax, eax
je 0x402adc
lea ecx, [ebp - 0x214]
cmp dword [ebp - 0x220], ebx
jne 0x4028d3
push 0x420060
call fcn.00403034
mov esi, dword [ebp - 0x214]
jmp 0x402a7a
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], ebx
call fcn.00403093
lea ecx, [ebp - 0x218]
call fcn.00403093
push 0x421184
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push str.StringFileInfo_08lx_s
push eax
call fcn.00405675
add esp, 0x10
lea ecx, [ebp - 0x218]
push ebx
call fcn.004030e6
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x228]
push ecx
push eax
push dword [ebp - 0x220]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x402a1a
cmp dword [ebp - 0x224], ebx
je 0x402a1a
mov ebx, dword [ebp - 0x228]
test ebx, ebx
je 0x402a18
push ebx
call fcn.0040fbe8
mov edi, eax
pop ecx
test edi, edi
jne 0x402974
lea ecx, [ebp - 0x214]
call fcn.00403122
jmp 0x402a18
mov eax, dword [ebp - 0x214]
mov ecx, ebx
sub ecx, eax
sar ecx, 1
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x214]
mov esi, dword [eax - 0xc]
push edi
call fcn.004030e6
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
cmp edx, esi
ja 0x4029f8
mov ecx, dword [ebp - 0x214]
lea edx, [eax + edx*2]
mov esi, dword [ecx - 8]
lea ecx, [edi + edi]
test ecx, ecx
je 0x402a0c
test eax, eax
jne 0x4029ce
call fcn.0040deab
mov dword [eax], 0x16
call fcn.0040ddee
jmp 0x402a0c
test edx, edx
je 0x4029bc
lea eax, [esi + esi]
cmp eax, ecx
jae 0x4029e6
call fcn.0040deab
mov dword [eax], 0x22
jmp 0x4029c7
push ecx
push edx
push dword [ebp - 0x234]
call fcn.0040a150
add esp, 0xc
jmp 0x402a0c
mov edx, dword [ebp - 0x214]
mov ecx, eax
push edi
push ebx
mov edx, dword [edx - 8]
call fcn.0040351f
pop ecx
pop ecx
push edi
lea ecx, [ebp - 0x214]
call fcn.0040329e
xor ebx, ebx
mov eax, dword [ebp - 0x218]
push dword [eax - 8]
push eax
call fcn.0040fd10
mov edx, eax
pop ecx
pop ecx
test edx, edx
js 0x402af6
mov ecx, dword [ebp - 0x218]
cmp edx, dword [ecx - 8]
jg 0x402af6
mov edi, dword [ebp - 0x214]
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x218]
mov word [eax + edx*2], cx
lea ecx, [edi - 0x10]
call fcn.0040340b
mov ecx, dword [ebp - 0x218]
lea esi, [eax + 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401252
lea ecx, [edi - 0x10]
call fcn.00401252
cmp dword [esi - 0xc], 0
je 0x402ad4
cmp dword [esi - 0xc], 7
jl 0x402ad4
push ebx
lea eax, [ebp - 0x22c]
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push 0x421274
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402ad4
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push ebx
push str.WindowsUpdateVersion
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.00401252
lea ecx, [ebp - 0x220]
call fcn.004041a5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407bd7
leave
ret
push 0x80070057
call fcn.00401067
int3