Function at 0x405310
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x413690
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41981c]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
call dword [0x414028]
movzx eax, al
cmp eax, 5
jbe 0x405639
lea esi, [esp + 0x24]
call fcn.004051a0
xor ebx, ebx
push 0x414920
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], ebx
call fcn.004050f0
push str.68F33BAF_8D3B_42C1_A36A_32CC190AFFA9
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 1
call fcn.004050f0
push str.SoftwareMicrosoftInternet_Explorer_
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 2
call fcn.004050f0
push 0x414844
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 3
call fcn.004050f0
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.00404ce0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
push 0x2001f
push ebx
push ecx
push 0x80000001
mov byte [esp + 0x50], 5
mov dword [esp + 0x3c], ebx
call dword [0x414008]
cmp eax, ebx
jne 0x4054a6
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], edx
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x3c], ebx
call fcn.00404f00
mov eax, dword [eax]
add esp, 0xc
push 0x2001f
push eax
push 0x80000001
lea ecx, [esp + 0x38]
call fcn.00401720
mov esi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or ebp, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405447
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x4054ae
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push ecx
push edx
lea ecx, [esp + 0x48]
call fcn.004016a0
test eax, eax
je 0x4054ae
lea ecx, [esp + 0x2c]
call fcn.004020b0
lea ecx, [esp + 0x14]
call fcn.004029a0
lea ecx, [esp + 0x18]
call fcn.004029a0
lea ecx, [esp + 0x1c]
call fcn.004029a0
lea ecx, [esp + 0x20]
call fcn.004029a0
lea ecx, [esp + 0x24]
call fcn.004029a0
jmp 0x40570a
or ebp, 0xffffffff
jmp 0x40565a
mov eax, dword [esp + 0x2c]
mov edi, dword [0x414010]
cmp eax, ebx
je 0x4054c3
push eax
call edi
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x3c], ebx
call fcn.00404f00
mov eax, dword [eax]
add esp, 0xc
push 0x2001f
push eax
push 0x80000001
lea ecx, [esp + 0x38]
call fcn.00401720
mov esi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405515
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
jne 0x40564f
push 0x414840
lea ecx, [esp + 0x28]
call fcn.00404930
mov eax, dword [eax]
push 1
push eax
push str.AppPath
lea ecx, [esp + 0x38]
call fcn.004017a0
mov ecx, dword [esp + 0x20]
push 1
push ecx
push str.AppName
lea ecx, [esp + 0x38]
call fcn.004017a0
mov eax, dword [esp + 0x2c]
push 4
lea edx, [esp + 0x2c]
push edx
push 4
push ebx
push str.Policy
push eax
mov dword [esp + 0x40], 3
call dword [0x414004]
lea ecx, [esp + 0x2c]
call fcn.00401670
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x405589
push eax
call edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x3c], 3
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4055ad
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]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4055d1
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]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4055f5
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], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405618
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], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x405639
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, ebx
je 0x40565a
push eax
call edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov edx, ebp
lea ecx, [eax + 0xc]
mov byte [esp + 0x3c], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40567e
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 edx, ebp
lea ecx, [eax + 0xc]
mov byte [esp + 0x3c], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056a2
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 edx, ebp
lea ecx, [eax + 0xc]
mov byte [esp + 0x3c], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056c6
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 edx, ebp
lea ecx, [eax + 0xc]
mov byte [esp + 0x3c], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056e9
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
lea ecx, [eax + 0xc]
mov dword [esp + 0x3c], ebp
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40570a
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