Function at 0x44d863
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
sub esp, 0x38c
lea ebp, [esp - 4]
mov eax, dword [0x7aa378]
xor eax, ebp
mov dword [ebp + 0x38c], eax
push 4
mov eax, 0x6a092d
call fcn.00642ca6
mov esi, dword [ebp + 0x398]
lea eax, [ebp + 0x184]
push 0x104
push eax
xor edi, edi
push str._windir_
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
test eax, eax
jne 0x44d9a4
mov esi, 0x7479ec
lea ecx, [ebp + 0x150]
push esi
call fcn.0040f32f
push str.windirMissing
lea ecx, [ebp + 0xec]
mov dword [ebp - 4], edi
call fcn.0040f32f
xor ebx, ebx
lea ecx, [ebp + 0x104]
inc ebx
push 0x6ce018
mov byte [ebp - 4], bl
call fcn.0040f32f
push str.compat
lea ecx, [ebp + 0x11c]
mov byte [ebp - 4], 2
call fcn.0040f32f
push esi
lea ecx, [ebp + 0x134]
mov byte [ebp - 4], 3
call fcn.0040f32f
push edi
lea eax, [ebp + 0x150]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp + 0xec]
push eax
push edi
lea eax, [ebp + 0x104]
push eax
lea eax, [ebp + 0x11c]
push eax
lea eax, [ebp + 0x134]
push eax
call fcn.00459ba9
push edi
push ebx
lea ecx, [ebp + 0x134]
call fcn.0040f95f
push edi
push ebx
lea ecx, [ebp + 0x11c]
call fcn.0040f95f
push edi
push ebx
lea ecx, [ebp + 0x104]
call fcn.0040f95f
push edi
push ebx
lea ecx, [ebp + 0xec]
call fcn.0040f95f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x150]
push edi
push ebx
call fcn.0040f95f
push edi
push str.failExpandEnvironmentStrings
lea ecx, [ebp + 0x84]
call fcn.00457c55
push 0x753cbc
lea eax, [ebp + 0x84]
push eax
call fcn.0065ab74
lea eax, [ebp + 0x184]
push eax
lea ecx, [ebp]
call fcn.00447fb7
push str.System32mshta.exe
lea eax, [ebp + 0x168]
mov dword [ebp - 4], 5
push eax
mov eax, dword [ebp]
lea ecx, [ebp]
call dword [eax + 0x34]
cmp dword [ebp + 0x180], 8
mov eax, dword [ebp + 0x16c]
mov byte [ebp - 4], 6
jae 0x44d9e8
lea eax, [ebp + 0x16c]
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
je 0x44da3e
lea eax, [ebp + 0x168]
mov ecx, esi
push eax
call fcn.00447ed3
lea ecx, [ebp + 0x168]
call fcn.0044803c
lea ecx, [ebp]
call fcn.0044803c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
call fcn.00642c5e
lea esp, [ebp + 0x390]
pop ebp
ret 4
push str.SysWOW64mshta.exe
lea eax, [ebp + 0x14c]
push eax
mov eax, dword [ebp]
lea ecx, [ebp]
call dword [eax + 0x34]
mov byte [ebp - 4], 7
test eax, eax
je 0x44da60
add eax, 4
jmp 0x44da62
xor eax, eax
push eax
lea ecx, [ebp + 0x16c]
call fcn.004280b7
lea ecx, [ebp + 0x14c]
mov byte [ebp - 4], 6
call fcn.0044803c
cmp dword [ebp + 0x180], 8
mov eax, dword [ebp + 0x16c]
jae 0x44da92
lea eax, [ebp + 0x16c]
push eax
call edi
cmp eax, 0xffffffff
jne 0x44d9f6
mov esi, 0x7479ec
lea ecx, [ebp + 0x134]
push esi
call fcn.0040f32f
push str.mshtaMissing
lea ecx, [ebp + 0x11c]
mov byte [ebp - 4], 8
call fcn.0040f32f
push 0x6ce018
lea ecx, [ebp + 0x104]
mov byte [ebp - 4], 9
call fcn.0040f32f
push str.compat
lea ecx, [ebp + 0xec]
mov byte [ebp - 4], 0xa
call fcn.0040f32f
push esi
lea ecx, [ebp + 0x150]
mov byte [ebp - 4], 0xb
call fcn.0040f32f
xor esi, esi
mov byte [ebp - 4], 0xc
push esi
lea eax, [ebp + 0x134]
push eax
lea eax, [ebp + 0x11c]
push eax
push esi
lea eax, [ebp + 0x104]
push eax
lea eax, [ebp + 0xec]
push eax
lea eax, [ebp + 0x150]
push eax
call fcn.00459ba9
xor ebx, ebx
lea ecx, [ebp + 0x150]
push esi
inc ebx
push ebx
call fcn.0040f95f
push esi
push ebx
lea ecx, [ebp + 0xec]
call fcn.0040f95f
push esi
push ebx
lea ecx, [ebp + 0x104]
call fcn.0040f95f
push esi
push ebx
lea ecx, [ebp + 0x11c]
call fcn.0040f95f
push esi
push ebx
lea ecx, [ebp + 0x134]
mov byte [ebp - 4], 6
call fcn.0040f95f
push esi
push str.mshtaNotFound
lea ecx, [ebp + 0x1c]
call fcn.00457c55
push 0x753cbc
lea eax, [ebp + 0x1c]
jmp 0x44d99e