Function at 0x452db3
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 [0x7bb3e8]
xor eax, ebp
mov dword [ebp + 0x480], eax
push 0x14
mov eax, 0x6ae1ab
call fcn.006523d1
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 0x48c]
mov esi, dword [esi]
cmp esi, dword [esi]
jne 0x452e0b
push 0
push str.htaLogEmpty
lea ecx, [ebp + 0x154]
call fcn.00453beb
push 0x7625d4
lea eax, [ebp + 0x154]
push eax
call fcn.0066a234
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push str._HTA_DONE_
push esi
push dword [esi]
push eax
call fcn.004465c8
cmp dword [ebp - 0x1c], esi
sete al
test al, al
je 0x453166
mov eax, dword [esi + 4]
lea ecx, [ebp + 0x260]
add eax, 8
push eax
call fcn.0040fa4b
and dword [ebp - 4], 0
cmp dword [ebx + 0x60], 0
je 0x452f1d
lea eax, [ebp + 0x230]
lea edi, [ebx + 0x4c]
push eax
mov ecx, edi
call fcn.004439a1
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.004439a1
push 0
push eax
lea ecx, [ebp + 0x260]
call fcn.0044ef78
mov esi, eax
lea ecx, [ebp + 0x248]
push 0
cmp esi, 0xffffffff
push 1
setne bl
call fcn.0040facf
test bl, bl
je 0x452f07
mov byte [ebp - 0x11], 0x23
cmp dword [ebp + 0x274], 0x10
mov eax, dword [ebp + 0x260]
jae 0x452ebb
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.00446525
lea eax, [ebp + 0x248]
mov ecx, edi
push eax
call fcn.004439a1
push esi
push eax
lea ecx, [ebp + 0x260]
call fcn.0044ef78
mov esi, eax
lea ecx, [ebp + 0x248]
push 0
cmp esi, 0xffffffff
push 1
setne bl
call fcn.0040facf
test bl, bl
jne 0x452ea6
push 0
push 1
lea ecx, [ebp + 0x230]
mov byte [ebp - 4], 0
call fcn.0040facf
mov ebx, dword [ebp - 0x18]
lea eax, [ebp + 0x22c]
mov ecx, ebx
push eax
xor edi, edi
call fcn.0044881e
lea ecx, [ebp + 0x22c]
mov esi, dword [eax + 0x14]
call fcn.00442f8c
test esi, esi
je 0x452fe9
lea eax, [ebp + 0x22c]
mov ecx, ebx
push eax
call fcn.0044881e
lea ecx, [ebp + 0x248]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.004439a1
xor ebx, ebx
lea ecx, [ebp + 0x22c]
mov byte [ebp - 4], bl
call fcn.00442f8c
mov ecx, dword [ebp + 0x258]
mov esi, ecx
cmp dword [ebp + 0x25c], 0x10
mov eax, dword [ebp + 0x248]
jae 0x452f90
lea eax, [ebp + 0x248]
push ecx
push edi
push eax
lea ecx, [ebp + 0x260]
call fcn.004427e4
mov edi, eax
cmp edi, 0xffffffff
je 0x452fd9
cmp dword [ebp + 0x274], 0x10
mov eax, dword [ebp + 0x260]
mov byte [ebp - 0x11], 0x23
jae 0x452fbe
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.00446525
mov ecx, dword [ebp + 0x258]
jmp 0x452f7b
push ebx
push 1
lea ecx, [ebp + 0x248]
call fcn.0040facf
jmp 0x452feb
xor ebx, ebx
lea ecx, [ebp + 0x1bc]
call fcn.00442f2b
lea ecx, [ebp + 0x1d8]
mov byte [ebp - 4], 3
call fcn.00442f2b
lea eax, [ebp + 0x210]
mov byte [ebp - 4], 5
push eax
call fcn.00444eab
mov esi, eax
push esi
lea ecx, [ebp + 0x1bc]
mov byte [ebp - 4], 6
call fcn.0043c97b
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp + 0x1d8]
call fcn.0043c97b
lea ecx, [ebp + 0x22c]
call fcn.00442f8c
lea ecx, [ebp + 0x210]
call fcn.00442f8c
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 0x45309d
push ebx
push str.htaNotDone.FailGetModulePath
lea ecx, [ebp + 0xec]
call fcn.00453beb
push 0x7625d4
lea eax, [ebp + 0xec]
jmp 0x452e05
lea eax, [ebp + 0x278]
push eax
lea ecx, [ebp]
call fcn.00442f07
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 0x6d92b0
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.00442f8c
cmp dword [ebp + 0x20c], 8
mov eax, dword [ebp + 0x1f8]
jae 0x453102
lea eax, [ebp + 0x1f8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45312f
push ebx
push str.htaNotDone.ModuleDoesnotExist
lea ecx, [ebp + 0x84]
call fcn.00453beb
push 0x7625d4
lea eax, [ebp + 0x84]
jmp 0x452e05
lea ecx, [ebp + 0x1f4]
call fcn.00442f8c
lea ecx, [ebp]
call fcn.00442f8c
lea ecx, [ebp + 0x1d8]
call fcn.00442f8c
lea ecx, [ebp + 0x1bc]
call fcn.00442f8c
push ebx
push 1
lea ecx, [ebp + 0x260]
call fcn.0040facf
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.0065231e
lea esp, [ebp + 0x484]
pop ebp
ret 4