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

Disassembly:
push ebp
sub esp, 0x38c
lea ebp, [esp - 4]
mov eax, dword [0x767e58]
xor eax, ebp
mov dword [ebp + 0x38c], eax
push 4
mov eax, 0x6702b3
call fcn.00629b56
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 0x448837
mov esi, 0x70ed3c
lea ecx, [ebp + 0x150]
push esi
call fcn.0040a58f
push str.windirMissing
lea ecx, [ebp + 0xec]
mov dword [ebp - 4], edi
call fcn.0040a58f
xor ebx, ebx
lea ecx, [ebp + 0x104]
inc ebx
push 0x6987b0
mov byte [ebp - 4], bl
call fcn.0040a58f
push str.compat
lea ecx, [ebp + 0x11c]
mov byte [ebp - 4], 2
call fcn.0040a58f
push esi
lea ecx, [ebp + 0x134]
mov byte [ebp - 4], 3
call fcn.0040a58f
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.004549c1
push edi
push ebx
lea ecx, [ebp + 0x134]
call fcn.0040abbf
push edi
push ebx
lea ecx, [ebp + 0x11c]
call fcn.0040abbf
push edi
push ebx
lea ecx, [ebp + 0x104]
call fcn.0040abbf
push edi
push ebx
lea ecx, [ebp + 0xec]
call fcn.0040abbf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x150]
push edi
push ebx
call fcn.0040abbf
push edi
push str.failExpandEnvironmentStrings
lea ecx, [ebp + 0x84]
call fcn.00452a76
push 0x719344
lea eax, [ebp + 0x84]
push eax
call fcn.0062bb74
lea eax, [ebp + 0x184]
push eax
lea ecx, [ebp]
call fcn.00442ea9
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 0x44887b
lea eax, [ebp + 0x16c]
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
je 0x4488d1
lea eax, [ebp + 0x168]
mov ecx, esi
push eax
call fcn.00442dc5
lea ecx, [ebp + 0x168]
call fcn.00442f2e
lea ecx, [ebp]
call fcn.00442f2e
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.00629b0e
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 0x4488f3
add eax, 4
jmp 0x4488f5
xor eax, eax
push eax
lea ecx, [ebp + 0x16c]
call fcn.0042332c
lea ecx, [ebp + 0x14c]
mov byte [ebp - 4], 6
call fcn.00442f2e
cmp dword [ebp + 0x180], 8
mov eax, dword [ebp + 0x16c]
jae 0x448925
lea eax, [ebp + 0x16c]
push eax
call edi
cmp eax, 0xffffffff
jne 0x448889
mov esi, 0x70ed3c
lea ecx, [ebp + 0x134]
push esi
call fcn.0040a58f
push str.mshtaMissing
lea ecx, [ebp + 0x11c]
mov byte [ebp - 4], 8
call fcn.0040a58f
push 0x6987b0
lea ecx, [ebp + 0x104]
mov byte [ebp - 4], 9
call fcn.0040a58f
push str.compat
lea ecx, [ebp + 0xec]
mov byte [ebp - 4], 0xa
call fcn.0040a58f
push esi
lea ecx, [ebp + 0x150]
mov byte [ebp - 4], 0xb
call fcn.0040a58f
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.004549c1
xor ebx, ebx
lea ecx, [ebp + 0x150]
push esi
inc ebx
push ebx
call fcn.0040abbf
push esi
push ebx
lea ecx, [ebp + 0xec]
call fcn.0040abbf
push esi
push ebx
lea ecx, [ebp + 0x104]
call fcn.0040abbf
push esi
push ebx
lea ecx, [ebp + 0x11c]
call fcn.0040abbf
push esi
push ebx
lea ecx, [ebp + 0x134]
mov byte [ebp - 4], 6
call fcn.0040abbf
push esi
push str.mshtaNotFound
lea ecx, [ebp + 0x1c]
call fcn.00452a76
push 0x719344
lea eax, [ebp + 0x1c]
jmp 0x448831