Function at 0x456f73
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
sub esp, 0x480
lea ebp, [esp - 4]
mov eax, dword [0x7aa378]
xor eax, ebp
mov dword [ebp + 0x480], eax
push 0x14
mov eax, 0x6a1b8f
call fcn.00642d11
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 0x48c]
mov esi, dword [esi]
cmp esi, dword [esi]
jne 0x456fcb
push 0
push str.htaLogEmpty
lea ecx, [ebp + 0x154]
call fcn.00457c55
push 0x753cbc
lea eax, [ebp + 0x154]
push eax
call fcn.0065ab74
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push str._HTA_DONE_
push esi
push dword [esi]
push eax
call fcn.0044b611
cmp dword [ebp - 0x1c], esi
sete al
test al, al
je 0x457326
mov eax, dword [esi + 4]
lea ecx, [ebp + 0x260]
add eax, 8
push eax
call fcn.0040f8db
and dword [ebp - 4], 0
cmp dword [ebx + 0x5c], 0
je 0x4570dd
lea eax, [ebp + 0x230]
lea edi, [ebx + 0x48]
push eax
mov ecx, edi
call fcn.00448a32
mov eax, dword [ebp + 0x240]
mov ecx, edi
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0x248]
push eax
mov byte [ebp - 4], 1
call fcn.00448a32
push 0
push eax
lea ecx, [ebp + 0x260]
call fcn.00453602
mov esi, eax
lea ecx, [ebp + 0x248]
push 0
cmp esi, 0xffffffff
push 1
setne bl
call fcn.0040f95f
test bl, bl
je 0x4570c7
mov byte [ebp - 0x11], 0x23
cmp dword [ebp + 0x274], 0x10
mov eax, dword [ebp + 0x260]
jae 0x45707b
lea eax, [ebp + 0x260]
mov byte [ebp - 0x1c], 0
lea ecx, [ebp - 0x11]
push dword [ebp - 0x1c]
add eax, esi
push ecx
push dword [ebp - 0x20]
push eax
call fcn.0044b56e
lea eax, [ebp + 0x248]
mov ecx, edi
push eax
call fcn.00448a32
push esi
push eax
lea ecx, [ebp + 0x260]
call fcn.00453602
mov esi, eax
lea ecx, [ebp + 0x248]
push 0
cmp esi, 0xffffffff
push 1
setne bl
call fcn.0040f95f
test bl, bl
jne 0x457066
push 0
push 1
lea ecx, [ebp + 0x230]
mov byte [ebp - 4], 0
call fcn.0040f95f
mov ebx, dword [ebp - 0x18]
lea eax, [ebp + 0x22c]
mov ecx, ebx
push eax
xor edi, edi
call fcn.0044d798
lea ecx, [ebp + 0x22c]
mov esi, dword [eax + 0x14]
call fcn.0044803c
test esi, esi
je 0x4571a9
lea eax, [ebp + 0x22c]
mov ecx, ebx
push eax
call fcn.0044d798
lea ecx, [ebp + 0x248]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.00448a32
xor ebx, ebx
lea ecx, [ebp + 0x22c]
mov byte [ebp - 4], bl
call fcn.0044803c
mov ecx, dword [ebp + 0x258]
mov esi, ecx
cmp dword [ebp + 0x25c], 0x10
mov eax, dword [ebp + 0x248]
jae 0x457150
lea eax, [ebp + 0x248]
push ecx
push edi
push eax
lea ecx, [ebp + 0x260]
call fcn.00439be8
mov edi, eax
cmp edi, 0xffffffff
je 0x457199
cmp dword [ebp + 0x274], 0x10
mov eax, dword [ebp + 0x260]
mov byte [ebp - 0x11], 0x23
jae 0x45717e
lea eax, [ebp + 0x260]
mov byte [ebp - 0x18], bl
lea ecx, [ebp - 0x11]
push dword [ebp - 0x18]
add eax, edi
push ecx
push esi
push eax
call fcn.0044b56e
mov ecx, dword [ebp + 0x258]
jmp 0x45713b
push ebx
push 1
lea ecx, [ebp + 0x248]
call fcn.0040f95f
jmp 0x4571ab
xor ebx, ebx
lea ecx, [ebp + 0x1bc]
call fcn.00447fdb
lea ecx, [ebp + 0x1d8]
mov byte [ebp - 4], 3
call fcn.00447fdb
lea eax, [ebp + 0x210]
mov byte [ebp - 4], 5
push eax
call fcn.00449ef1
mov esi, eax
push esi
lea ecx, [ebp + 0x1bc]
mov byte [ebp - 4], 6
call fcn.00441cf4
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp + 0x1d8]
call fcn.00441cf4
lea ecx, [ebp + 0x22c]
call fcn.0044803c
lea ecx, [ebp + 0x210]
call fcn.0044803c
push 0x104
lea eax, [ebp + 0x278]
mov dword [ebp - 4], 4
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 1
push 0x1a
lea eax, [ebp + 0x278]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x45725d
push ebx
push str.htaNotDone.FailGetModulePath
lea ecx, [ebp + 0xec]
call fcn.00457c55
push 0x753cbc
lea eax, [ebp + 0xec]
jmp 0x456fc5
lea eax, [ebp + 0x278]
push eax
lea ecx, [ebp]
call fcn.00447fb7
lea eax, [ebp + 0x1bc]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp + 0x22c]
push eax
mov eax, dword [ebp]
lea ecx, [ebp]
call dword [eax + 0x3c]
mov edx, dword [eax]
lea ecx, [ebp + 0x1f4]
push 0x6cc5f4
push ecx
mov ecx, eax
mov byte [ebp - 4], 9
call dword [edx + 0x34]
lea ecx, [ebp + 0x22c]
mov byte [ebp - 4], 0xb
call fcn.0044803c
cmp dword [ebp + 0x20c], 8
mov eax, dword [ebp + 0x1f8]
jae 0x4572c2
lea eax, [ebp + 0x1f8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4572ef
push ebx
push str.htaNotDone.ModuleDoesnotExist
lea ecx, [ebp + 0x84]
call fcn.00457c55
push 0x753cbc
lea eax, [ebp + 0x84]
jmp 0x456fc5
lea ecx, [ebp + 0x1f4]
call fcn.0044803c
lea ecx, [ebp]
call fcn.0044803c
lea ecx, [ebp + 0x1d8]
call fcn.0044803c
lea ecx, [ebp + 0x1bc]
call fcn.0044803c
push ebx
push 1
lea ecx, [ebp + 0x260]
call fcn.0040f95f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x480]
xor ecx, ebp
call fcn.00642c5e
lea esp, [ebp + 0x484]
pop ebp
ret 4