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

Disassembly:
push ebp
sub esp, 0x38c
lea ebp, [esp - 4]
mov eax, dword [0x7a6168]
xor eax, ebp
mov dword [ebp + 0x38c], eax
push 4
mov eax, 0x69e798
call fcn.00640806
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 0x44d4c6
mov esi, 0x74471c
lea ecx, [ebp + 0x150]
push esi
call fcn.0040eeff
push str.windirMissing
lea ecx, [ebp + 0xec]
mov dword [ebp - 4], edi
call fcn.0040eeff
xor ebx, ebx
lea ecx, [ebp + 0x104]
inc ebx
push 0x6caf68
mov byte [ebp - 4], bl
call fcn.0040eeff
push str.compat
lea ecx, [ebp + 0x11c]
mov byte [ebp - 4], 2
call fcn.0040eeff
push esi
lea ecx, [ebp + 0x134]
mov byte [ebp - 4], 3
call fcn.0040eeff
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.0045973a
push edi
push ebx
lea ecx, [ebp + 0x134]
call fcn.0040f52f
push edi
push ebx
lea ecx, [ebp + 0x11c]
call fcn.0040f52f
push edi
push ebx
lea ecx, [ebp + 0x104]
call fcn.0040f52f
push edi
push ebx
lea ecx, [ebp + 0xec]
call fcn.0040f52f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x150]
push edi
push ebx
call fcn.0040f52f
push edi
push str.failExpandEnvironmentStrings
lea ecx, [ebp + 0x84]
call fcn.004577b2
push 0x7509e4
lea eax, [ebp + 0x84]
push eax
call fcn.006586e4
lea eax, [ebp + 0x184]
push eax
lea ecx, [ebp]
call fcn.00447aa9
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 0x44d50a
lea eax, [ebp + 0x16c]
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
je 0x44d560
lea eax, [ebp + 0x168]
mov ecx, esi
push eax
call fcn.004479c5
lea ecx, [ebp + 0x168]
call fcn.00447b2e
lea ecx, [ebp]
call fcn.00447b2e
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.006407be
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 0x44d582
add eax, 4
jmp 0x44d584
xor eax, eax
push eax
lea ecx, [ebp + 0x16c]
call fcn.00427cb3
lea ecx, [ebp + 0x14c]
mov byte [ebp - 4], 6
call fcn.00447b2e
cmp dword [ebp + 0x180], 8
mov eax, dword [ebp + 0x16c]
jae 0x44d5b4
lea eax, [ebp + 0x16c]
push eax
call edi
cmp eax, 0xffffffff
jne 0x44d518
mov esi, 0x74471c
lea ecx, [ebp + 0x134]
push esi
call fcn.0040eeff
push str.mshtaMissing
lea ecx, [ebp + 0x11c]
mov byte [ebp - 4], 8
call fcn.0040eeff
push 0x6caf68
lea ecx, [ebp + 0x104]
mov byte [ebp - 4], 9
call fcn.0040eeff
push str.compat
lea ecx, [ebp + 0xec]
mov byte [ebp - 4], 0xa
call fcn.0040eeff
push esi
lea ecx, [ebp + 0x150]
mov byte [ebp - 4], 0xb
call fcn.0040eeff
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.0045973a
xor ebx, ebx
lea ecx, [ebp + 0x150]
push esi
inc ebx
push ebx
call fcn.0040f52f
push esi
push ebx
lea ecx, [ebp + 0xec]
call fcn.0040f52f
push esi
push ebx
lea ecx, [ebp + 0x104]
call fcn.0040f52f
push esi
push ebx
lea ecx, [ebp + 0x11c]
call fcn.0040f52f
push esi
push ebx
lea ecx, [ebp + 0x134]
mov byte [ebp - 4], 6
call fcn.0040f52f
push esi
push str.mshtaNotFound
lea ecx, [ebp + 0x1c]
call fcn.004577b2
push 0x7509e4
lea eax, [ebp + 0x1c]
jmp 0x44d4c0