Function at 0x4096f0
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4216ad
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x44c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x44e1a4], 0
jne 0x409b0e
cmp dword [0x44e1a8], 0
jne 0x409b0e
cmp dword [0x44e1ac], 0
jne 0x409b0e
cmp dword [0x44e1b0], 0
jne 0x409b0e
mov dword [ebp - 0x2ac], 0
mov byte [ebp - 0x2a8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
movzx ecx, byte [ebp - 0x2a8]
test eax, eax
lea eax, [ebp - 0x218]
mov edx, 1
push eax
push 0
push 0
push 0x25
cmovne ecx, edx
push 0
mov byte [ebp - 0x2a8], cl
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4097b0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, 0x44cc1c
call fcn.004035e0
push str.inetsrv
mov ecx, 0x44cc1c
call fcn.00403380
cmp dword [0x44cc30], 7
mov eax, 0x44cc1c
cmova eax, dword [0x44cc1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409825
cmp dword [0x44cc30], 7
mov eax, 0x44cc1c
mov dword [0x44cc2c], 0
cmova eax, dword [0x44cc1c]
xor ecx, ecx
mov word [eax], cx
jmp 0x409ade
push 0x44e1b8
lea ecx, [ebp - 0x2a4]
call fcn.00403080
mov byte [ebp - 4], 1
sub esp, 0xc
lea eax, [ebp - 0x2a4]
lea ecx, [ebp - 0x28c]
push eax
call fcn.00404110
mov byte [ebp - 4], 2
cmp dword [ebp - 0x28c], 0
je 0x409a88
push 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x2b4], 0
push str.MajorVersion
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x2b8], 0
movups xmmword [ebp - 0x230], xmm0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
call fcn.00401860
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x28c]
test ecx, ecx
je 0x4098ee
cmp dword [ebp - 0x21c], 7
lea edx, [ebp - 0x2b0]
push edx
lea edx, [ebp - 0x2b4]
mov dword [ebp - 0x2b0], 4
push edx
lea edx, [ebp - 0x2bc]
push edx
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x409932
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409928
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409b27
push ecx
push edx
call fcn.0040ddf3
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
push 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 7
push str.MinorVersion
lea ecx, [ebp - 0x248]
mov word [ebp - 0x230], ax
movups xmmword [ebp - 0x248], xmm0
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
call fcn.00401860
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x28c]
test ecx, ecx
je 0x4099c2
cmp dword [ebp - 0x234], 7
lea edx, [ebp - 0x2b0]
push edx
lea edx, [ebp - 0x2b8]
mov dword [ebp - 0x2b0], 4
push edx
lea edx, [ebp - 0x2bc]
push edx
lea eax, [ebp - 0x248]
cmova eax, dword [ebp - 0x248]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x234]
cmp ecx, 7
jbe 0x409a06
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4099fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409b2c
push ecx
push edx
call fcn.0040ddf3
add esp, 8
mov ecx, dword [ebp - 0x2b4]
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
test ecx, ecx
js 0x409a3a
mov dword [ebp - 0x22c], ecx
mov eax, 1
jmp 0x409a40
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x2b8]
test ecx, ecx
js 0x409a57
mov dword [ebp - 0x228], ecx
mov eax, 2
jmp 0x409a61
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
movups xmm0, xmmword [ebp - 0x22c]
mov dword [0x44e1b4], eax
movups xmmword [0x44e1a4], xmm0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x268]
call fcn.00401ef0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x280]
call fcn.00401ef0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28c]
test eax, eax
je 0x409ac5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2a4]
call fcn.00401ef0
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x2a8], 0
je 0x409b0e
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
movzx ecx, byte [ebp - 0x2a8]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [ebp - 0x2a8], cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ddb0
mov esp, ebp
pop ebp
ret
call fcn.004113c7
call fcn.004113c7
int3