Function at 0x409680
Capabilities:
Check os version
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x417080
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41e8b8]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
call dword [0x418074]
movzx eax, al
cmp eax, 5
jbe 0x4099ac
lea esi, [esp + 0x24]
call fcn.00409470
xor ebp, ebp
push 0x418eb0
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], ebp
call fcn.00405890
push str.76F1F61C_B1BE_43F6_8698_87A13DE1F1B6
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 1
call fcn.00405890
push str.SoftwareMicrosoftInternet_Explorer_
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 2
call fcn.00405890
mov ebx, 3
push str.Low_RightsElevationPolicy_
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], bl
call fcn.00405890
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 4
call fcn.004040f0
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x18]
push 0x2001f
push eax
push 0x80000001
lea ecx, [esp + 0x38]
mov byte [esp + 0x48], 5
call fcn.00401490
cmp eax, ebp
je 0x40976b
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x4099cd
push eax
call dword [0x418008]
jmp 0x4099cd
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00409320
mov eax, dword [eax]
add esp, 0xc
push 0x2001f
push eax
push 0x80000001
lea ecx, [esp + 0x38]
call fcn.00401490
mov esi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4097ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebp
je 0x409819
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
push ebp
push ebp
push 0x2001f
push ebp
push ebp
push ecx
push edx
lea ecx, [esp + 0x48]
call fcn.00401410
test eax, eax
je 0x409819
lea ecx, [esp + 0x2c]
call fcn.00401ec0
lea ecx, [esp + 0x14]
call fcn.00402300
lea ecx, [esp + 0x18]
call fcn.00402300
lea ecx, [esp + 0x1c]
call fcn.00402300
lea ecx, [esp + 0x20]
call fcn.00402300
lea ecx, [esp + 0x24]
call fcn.00402300
jmp 0x409a84
mov eax, dword [esp + 0x2c]
mov edi, dword [0x418008]
cmp eax, ebp
je 0x40982e
push eax
call edi
mov dword [esp + 0x2c], ebp
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x3c], ebp
call fcn.00409320
mov eax, dword [eax]
add esp, 0xc
push 0x2001f
push eax
push 0x80000001
lea ecx, [esp + 0x38]
call fcn.00401490
mov esi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409881
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebp
jne 0x4099c2
push 0x418844
lea ecx, [esp + 0x28]
call fcn.00409270
mov eax, dword [eax]
push 1
push eax
push str.AppPath
lea ecx, [esp + 0x38]
call fcn.00401510
mov ecx, dword [esp + 0x20]
push 1
push ecx
push str.AppName
lea ecx, [esp + 0x38]
call fcn.00401510
mov eax, dword [esp + 0x2c]
push 4
lea edx, [esp + 0x2c]
push edx
push 4
push ebp
push str.Policy
push eax
mov dword [esp + 0x40], ebx
call dword [0x418014]
lea ecx, [esp + 0x2c]
call fcn.004013e0
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x4098f1
push eax
call edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x3c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409915
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x3c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40993a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x3c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40995f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409984
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4099ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x4099cd
push eax
call edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x3c], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4099f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x3c], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x3c], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x3c], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x3c], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret