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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42209d
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x44d040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x44f1a4], 0
jne 0x40a450
cmp dword [0x44f1a8], 0
jne 0x40a450
cmp dword [0x44f1ac], 0
jne 0x40a450
cmp dword [0x44f1b0], 0
jne 0x40a450
mov dword [ebp - 0x2ac], 0
mov byte [ebp - 0x2a8], 0
mov dword [ebp - 4], 0
call fcn.00408a60
cmp byte [eax + 0x115], 0
je 0x40a0d9
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
movzx ecx, byte [ebp - 0x2a8]
test eax, eax
mov edx, 1
cmovne ecx, edx
mov byte [ebp - 0x2a8], cl
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a0f7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, 0x44dc1c
call fcn.004035c0
push str.inetsrv
mov ecx, 0x44dc1c
call fcn.00403360
cmp dword [0x44dc30], 7
mov eax, 0x44dc1c
cmova eax, dword [0x44dc1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40a167
cmp dword [0x44dc30], 7
mov dword [0x44dc2c], eax
mov eax, 0x44dc1c
cmova eax, dword [0x44dc1c]
xor ecx, ecx
mov word [eax], cx
jmp 0x40a420
push 0x44f1b8
lea ecx, [ebp - 0x2a4]
call fcn.00403060
mov byte [ebp - 4], 1
sub esp, 0xc
lea eax, [ebp - 0x2a4]
lea ecx, [ebp - 0x28c]
push eax
call fcn.004042b0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x28c], 0
je 0x40a3ca
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 0x40a230
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 0x40a274
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a26a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a469
push ecx
push edx
call fcn.0040e733
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 0x40a304
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 0x40a348
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a33e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a46e
push ecx
push edx
call fcn.0040e733
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 0x40a37c
mov dword [ebp - 0x22c], ecx
mov eax, 1
jmp 0x40a382
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x2b8]
test ecx, ecx
js 0x40a399
mov dword [ebp - 0x228], ecx
mov eax, 2
jmp 0x40a3a3
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
movups xmm0, xmmword [ebp - 0x22c]
mov dword [0x44f1b4], eax
movups xmmword [0x44f1a4], 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 0x40a407
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 0x40a450
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.0040e6ef
mov esp, ebp
pop ebp
ret
call fcn.00411d07
call fcn.00411d07
int3