Function at 0x4074b0
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431686
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x448034]
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
mov dword [ebp - 0x834], edx
mov ebx, ecx
push str.Kernel32.dll
mov dword [ebp - 0x830], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, eax
test esi, esi
je 0x407523
push str.Wow64DisableWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407520
lea ecx, [ebp - 0x830]
push ecx
call eax
push esi
call edi
xor eax, eax
push 0x7fe
mov dword [ebp - 4], 0
push eax
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x814]
push 0x400
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x814]
push eax
call esi
test eax, eax
jne 0x4076ca
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], eax
mov word [ebp - 0x82c], ax
cmp word [ebp - 0x814], ax
jne 0x407596
xor ecx, ecx
jmp 0x4075af
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4075a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x82c]
call fcn.00402fc0
push 0x13
push 0
push str.Program_Files__x86_
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 1
call fcn.00406a50
lea ecx, [ebp - 0x82c]
cmp eax, 0xffffffff
je 0x4075f6
push 0xd
push str.Program_Files
push 0x13
push eax
call fcn.00403920
jmp 0x40761c
push 8
push 0
push str.SysWOW64
call fcn.00406a50
cmp eax, 0xffffffff
je 0x40761c
push str.System32
push 8
push eax
lea ecx, [ebp - 0x82c]
call fcn.00408bf0
cmp dword [ebp - 0x818], 8
lea eax, [ebp - 0x82c]
cmovae eax, dword [ebp - 0x82c]
push eax
call esi
test eax, eax
je 0x407695
cmp dword [ebp - 0x818], 8
push ecx
lea eax, [ebp - 0x82c]
cmovae eax, dword [ebp - 0x82c]
push eax
push ecx
mov ecx, dword [ebp - 0x834]
mov edx, 0x400
call fcn.00407420
cmp dword [ebp - 0x818], 8
jb 0x407676
push dword [ebp - 0x82c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], 0
mov word [ebp - 0x82c], ax
jmp 0x4076e3
cmp dword [ebp - 0x818], 8
jb 0x4076ad
push dword [ebp - 0x82c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], 0
mov word [ebp - 0x82c], ax
push ecx
lea eax, [ebp - 0x814]
push eax
push ecx
mov ecx, dword [ebp - 0x834]
mov edx, 0x400
call fcn.00407420
push str.Kernel32.dll
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x407716
push str.Wow64RevertWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407713
push dword [ebp - 0x830]
call eax
push esi
call edi
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.0042ef5e
mov esp, ebp
pop ebp
ret