Function at 0x410a20
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469d18
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea ecx, [ebp - 0x21a]
xor eax, eax
push ebx
mov dword [ebp - 4], 1
push ecx
mov byte [ebp - 0x295], bl
mov word [ebp - 0x21c], ax
call fcn.004534e0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x21c]
push edx
mov dword [ebp - 0x2a4], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
setne al
mov byte [ebp - 0x296], al
cmp al, bl
je 0x410aac
mov dword [ebp - 0x2a4], 0x200
mov edx, dword [ebp + 0x10]
mov esi, dword [edx - 0xc]
cmp esi, ebx
jge 0x410ac0
push 0x80070057
call fcn.00401670
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x410ade
mov eax, esi
lea ecx, [ebp + 0x10]
call fcn.00401430
mov edx, dword [ebp + 0x10]
lea eax, [esi + 1]
push eax
push edx
call fcn.00450387
mov eax, dword [ebp + 0x10]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x410ab6
mov dword [eax - 0xc], esi
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + esi*2], cx
mov esi, str.SOFTWAREMicrosoftInternet_ExplorerLow_RightsElevationPolicy_
shr esi, 0x10
mov dword [ebp - 0x2ac], esi
jmp 0x410b18
mov esi, dword [ebp - 0x2ac]
xor ebx, ebx
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], cx
mov ecx, SysReAllocStringLen
xor edx, edx
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x250], ebx
mov word [ebp - 0x260], dx
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x274], eax
xor eax, eax
mov dword [ebp - 0x294], ecx
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x278], ebx
mov word [ebp - 0x288], ax
mov byte [ebp - 4], 4
mov edx, dword [0x484034]
mov eax, dword [edx + 0xc]
mov ecx, 0x484034
call eax
add eax, 0x10
mov dword [ebp - 0x2a0], eax
mov byte [ebp - 4], 5
cmp esi, ebx
jne 0x410be2
mov ecx, str.SOFTWAREMicrosoftInternet_ExplorerLow_RightsElevationPolicy_
movzx edi, cx
call fcn.004014c0
cmp eax, ebx
je 0x410bf8
push eax
mov eax, edi
lea edi, [ebp - 0x2a0]
call fcn.00401280
jmp 0x410bf8
push str.SOFTWAREMicrosoftInternet_ExplorerLow_RightsElevationPolicy_
lea edx, [ebp - 0x2a0]
push edx
mov ebx, 0x40
call fcn.00401320
mov byte [ebp - 4], 6
mov eax, dword [0x48791c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x2a0]
call fcn.00424980
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [eax + 0x144], edi
lea esi, [ebp - 0x244]
lea eax, [ebp - 0x294]
jne 0x410c30
lea eax, [ebp - 0x26c]
call fcn.00404590
mov esi, dword [ebp - 0x2a4]
mov eax, dword [ebp - 0x240]
or esi, 0xf003f
cmp dword [ebp - 0x244], eax
je 0x410c5a
cmp eax, edi
je 0x410c5a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x2a0]
mov edx, dword [ebp - 0x244]
push edi
lea ecx, [ebp - 0x240]
push ecx
push edi
push esi
push edi
push 0x4776ac
push edi
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x29c], eax
mov eax, ebx
mov dword [ebp - 0x23c], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x410c90
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [ebp - 0x238]
call fcn.00430450
cmp dword [ebp - 0x29c], edi
jne 0x410e96
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
add eax, 0x10
mov dword [ebp - 0x29c], eax
mov byte [ebp - 4], 7
mov edx, dword [ebp + 0x10]
mov ebx, 1
mov eax, edx
mov dword [ebp - 0x2d4], ebx
lea esi, [eax + 2]
jmp 0x410cf0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x410cf0
mov ecx, dword [ebp - 0x29c]
sub eax, esi
sar eax, 1
push ecx
lea eax, [edx + eax*2 + 2]
push eax
lea ecx, [ebp - 0x2d0]
push ecx
mov dword [ebp - 0x2d0], edi
mov dword [ebp - 0x2cc], edi
mov dword [ebp - 0x2c8], edi
call fcn.0042b6b0
mov byte [ebp - 4], 8
mov edx, dword [ebp + 0xc]
mov eax, edx
mov dword [ebp - 0x2e8], ebx
lea ecx, [eax + 2]
jmp 0x410d40
mov si, word [eax]
add eax, 2
cmp si, di
jne 0x410d40
sub eax, ecx
mov ecx, dword [ebp - 0x29c]
sar eax, 1
push ecx
lea eax, [edx + eax*2 + 2]
push eax
lea ecx, [ebp - 0x2e4]
push ecx
mov dword [ebp - 0x2e4], edi
mov dword [ebp - 0x2e0], edi
mov dword [ebp - 0x2dc], edi
call fcn.0042b6b0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x29c]
push edx
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x2bc]
push ecx
lea edx, [ebp - 0x2a8]
mov dword [ebp - 0x2a8], 3
mov dword [ebp - 0x2c0], 4
mov dword [ebp - 0x2bc], edi
mov dword [ebp - 0x2b8], edi
mov dword [ebp - 0x2b4], edi
call fcn.0042b6b0
mov ebx, dword [ebp - 0x2d0]
mov eax, dword [ebp - 0x2cc]
mov edx, dword [ebp - 0x2d4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, ebx
push eax
mov eax, dword [ebp - 0x240]
push ebx
push edx
push edi
push str.AppName
push eax
call esi
mov edi, dword [ebp - 0x2e4]
mov eax, dword [ebp - 0x2e0]
mov ecx, dword [ebp - 0x2e8]
mov edx, dword [ebp - 0x240]
sub eax, edi
push eax
push edi
push ecx
push 0
push str.AppPath
push edx
call esi
mov esi, dword [ebp - 0x2bc]
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 0x240]
sub eax, esi
push eax
mov eax, dword [ebp - 0x2c0]
push esi
push eax
push 0
push str.Policy
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x410e4e
push esi
call fcn.0044ee8c
add esp, 4
test edi, edi
je 0x410e5b
push edi
call fcn.0044ee8c
add esp, 4
test ebx, ebx
je 0x410e68
push ebx
call fcn.0044ee8c
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x29c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410e8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x2a0]
xor edi, edi
cmp byte [ebp - 0x296], 0
je 0x410ebb
cmp byte [ebp - 0x295], 0
jne 0x410ebb
mov byte [ebp - 0x295], 1
mov dword [ebp - 0x2a4], pe_nt_image_headers32
jmp 0x410ec2
mov byte [ebp - 0x295], 0
add ebx, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410ee2
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [ebp - 0x290]
cmp eax, edi
je 0x410eff
cmp dword [ebp - 0x294], eax
je 0x410eff
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
jmp 0x410f05
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x274], 8
jb 0x410f1d
mov eax, dword [ebp - 0x288]
push eax
call fcn.0044ee8c
add esp, 4
mov eax, dword [ebp - 0x268]
xor ecx, ecx
mov ebx, 7
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x278], edi
mov word [ebp - 0x288], cx
cmp eax, edi
je 0x410f4c
cmp dword [ebp - 0x26c], eax
je 0x410f4c
push eax
call esi
cmp dword [ebp - 0x24c], 8
jb 0x410f64
mov edx, dword [ebp - 0x260]
push edx
call fcn.0044ee8c
add esp, 4
xor eax, eax
mov word [ebp - 0x260], ax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x250], edi
cmp eax, edi
je 0x410f8e
cmp dword [ebp - 0x244], eax
je 0x410f8e
push eax
call esi
cmp dword [ebp - 0x224], 8
jb 0x410fa6
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0044ee8c
add esp, 4
xor edx, edx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], edi
mov word [ebp - 0x238], dx
cmp byte [ebp - 0x295], dl
jne 0x410b10
mov byte [ebp - 4], dl
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410fe9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41100f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044ee97
mov esp, ebp
pop ebp
ret 0xc