Function at 0x456adc
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 [0x7a6168]
xor eax, ebp
mov dword [ebp + 0x480], eax
push 0x14
mov eax, 0x69f9b6
call fcn.00640871
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 0x48c]
mov esi, dword [esi]
cmp esi, dword [esi]
jne 0x456b34
push 0
push str.htaLogEmpty
lea ecx, [ebp + 0x154]
call fcn.004577b2
push 0x7509e4
lea eax, [ebp + 0x154]
push eax
call fcn.006586e4
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push str._HTA_DONE_
push esi
push dword [esi]
push eax
call fcn.0044b100
cmp dword [ebp - 0x1c], esi
sete al
test al, al
je 0x456e8f
mov eax, dword [esi + 4]
lea ecx, [ebp + 0x260]
add eax, 8
push eax
call fcn.0040f4ab
and dword [ebp - 4], 0
cmp dword [ebx + 0x5c], 0
je 0x456c46
lea eax, [ebp + 0x230]
lea edi, [ebx + 0x48]
push eax
mov ecx, edi
call fcn.0044852e
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.0044852e
push 0
push eax
lea ecx, [ebp + 0x260]
call fcn.00453184
mov esi, eax
lea ecx, [ebp + 0x248]
push 0
cmp esi, 0xffffffff
push 1
setne bl
call fcn.0040f52f
test bl, bl
je 0x456c30
mov byte [ebp - 0x11], 0x23
cmp dword [ebp + 0x274], 0x10
mov eax, dword [ebp + 0x260]
jae 0x456be4
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.0044b05d
lea eax, [ebp + 0x248]
mov ecx, edi
push eax
call fcn.0044852e
push esi
push eax
lea ecx, [ebp + 0x260]
call fcn.00453184
mov esi, eax
lea ecx, [ebp + 0x248]
push 0
cmp esi, 0xffffffff
push 1
setne bl
call fcn.0040f52f
test bl, bl
jne 0x456bcf
push 0
push 1
lea ecx, [ebp + 0x230]
mov byte [ebp - 4], 0
call fcn.0040f52f
mov ebx, dword [ebp - 0x18]
lea eax, [ebp + 0x22c]
mov ecx, ebx
push eax
xor edi, edi
call fcn.0044d2ba
lea ecx, [ebp + 0x22c]
mov esi, dword [eax + 0x14]
call fcn.00447b2e
test esi, esi
je 0x456d12
lea eax, [ebp + 0x22c]
mov ecx, ebx
push eax
call fcn.0044d2ba
lea ecx, [ebp + 0x248]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.0044852e
xor ebx, ebx
lea ecx, [ebp + 0x22c]
mov byte [ebp - 4], bl
call fcn.00447b2e
mov ecx, dword [ebp + 0x258]
mov esi, ecx
cmp dword [ebp + 0x25c], 0x10
mov eax, dword [ebp + 0x248]
jae 0x456cb9
lea eax, [ebp + 0x248]
push ecx
push edi
push eax
lea ecx, [ebp + 0x260]
call fcn.004397ae
mov edi, eax
cmp edi, 0xffffffff
je 0x456d02
cmp dword [ebp + 0x274], 0x10
mov eax, dword [ebp + 0x260]
mov byte [ebp - 0x11], 0x23
jae 0x456ce7
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.0044b05d
mov ecx, dword [ebp + 0x258]
jmp 0x456ca4
push ebx
push 1
lea ecx, [ebp + 0x248]
call fcn.0040f52f
jmp 0x456d14
xor ebx, ebx
lea ecx, [ebp + 0x1bc]
call fcn.00447acd
lea ecx, [ebp + 0x1d8]
mov byte [ebp - 4], 3
call fcn.00447acd
lea eax, [ebp + 0x210]
mov byte [ebp - 4], 5
push eax
call fcn.004499e7
mov esi, eax
push esi
lea ecx, [ebp + 0x1bc]
mov byte [ebp - 4], 6
call fcn.004418cd
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp + 0x1d8]
call fcn.004418cd
lea ecx, [ebp + 0x22c]
call fcn.00447b2e
lea ecx, [ebp + 0x210]
call fcn.00447b2e
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 0x456dc6
push ebx
push str.htaNotDone.FailGetModulePath
lea ecx, [ebp + 0xec]
call fcn.004577b2
push 0x7509e4
lea eax, [ebp + 0xec]
jmp 0x456b2e
lea eax, [ebp + 0x278]
push eax
lea ecx, [ebp]
call fcn.00447aa9
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 0x6c9544
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.00447b2e
cmp dword [ebp + 0x20c], 8
mov eax, dword [ebp + 0x1f8]
jae 0x456e2b
lea eax, [ebp + 0x1f8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x456e58
push ebx
push str.htaNotDone.ModuleDoesnotExist
lea ecx, [ebp + 0x84]
call fcn.004577b2
push 0x7509e4
lea eax, [ebp + 0x84]
jmp 0x456b2e
lea ecx, [ebp + 0x1f4]
call fcn.00447b2e
lea ecx, [ebp]
call fcn.00447b2e
lea ecx, [ebp + 0x1d8]
call fcn.00447b2e
lea ecx, [ebp + 0x1bc]
call fcn.00447b2e
push ebx
push 1
lea ecx, [ebp + 0x260]
call fcn.0040f52f
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.006407be
lea esp, [ebp + 0x484]
pop ebp
ret 4