Function at 0x454f3e
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 [0x7990a8]
xor eax, ebp
mov dword [ebp + 0x480], eax
push 0x14
mov eax, 0x696b3c
call fcn.00637bf1
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 0x48c]
mov esi, dword [esi]
cmp esi, dword [esi]
jne 0x454f96
push 0
push str.htaLogEmpty
lea ecx, [ebp + 0x154]
call fcn.00455b8b
push 0x74575c
lea eax, [ebp + 0x154]
push eax
call fcn.0064fa34
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push str._HTA_DONE_
push esi
push dword [esi]
push eax
call fcn.004495e2
cmp dword [ebp - 0x1c], esi
sete al
test al, al
je 0x4552f1
mov eax, dword [esi + 4]
lea ecx, [ebp + 0x260]
add eax, 8
push eax
call fcn.0040da7b
and dword [ebp - 4], 0
cmp dword [ebx + 0x5c], 0
je 0x4550a8
lea eax, [ebp + 0x230]
lea edi, [ebx + 0x48]
push eax
mov ecx, edi
call fcn.00446a92
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.00446a92
push 0
push eax
lea ecx, [ebp + 0x260]
call fcn.004515cd
mov esi, eax
lea ecx, [ebp + 0x248]
push 0
cmp esi, 0xffffffff
push 1
setne bl
call fcn.0040daff
test bl, bl
je 0x455092
mov byte [ebp - 0x11], 0x23
cmp dword [ebp + 0x274], 0x10
mov eax, dword [ebp + 0x260]
jae 0x455046
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.0044953f
lea eax, [ebp + 0x248]
mov ecx, edi
push eax
call fcn.00446a92
push esi
push eax
lea ecx, [ebp + 0x260]
call fcn.004515cd
mov esi, eax
lea ecx, [ebp + 0x248]
push 0
cmp esi, 0xffffffff
push 1
setne bl
call fcn.0040daff
test bl, bl
jne 0x455031
push 0
push 1
lea ecx, [ebp + 0x230]
mov byte [ebp - 4], 0
call fcn.0040daff
mov ebx, dword [ebp - 0x18]
lea eax, [ebp + 0x22c]
mov ecx, ebx
push eax
xor edi, edi
call fcn.0044b7ba
lea ecx, [ebp + 0x22c]
mov esi, dword [eax + 0x14]
call fcn.004460a6
test esi, esi
je 0x455174
lea eax, [ebp + 0x22c]
mov ecx, ebx
push eax
call fcn.0044b7ba
lea ecx, [ebp + 0x248]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.00446a92
xor ebx, ebx
lea ecx, [ebp + 0x22c]
mov byte [ebp - 4], bl
call fcn.004460a6
mov ecx, dword [ebp + 0x258]
mov esi, ecx
cmp dword [ebp + 0x25c], 0x10
mov eax, dword [ebp + 0x248]
jae 0x45511b
lea eax, [ebp + 0x248]
push ecx
push edi
push eax
lea ecx, [ebp + 0x260]
call fcn.00437d52
mov edi, eax
cmp edi, 0xffffffff
je 0x455164
cmp dword [ebp + 0x274], 0x10
mov eax, dword [ebp + 0x260]
mov byte [ebp - 0x11], 0x23
jae 0x455149
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.0044953f
mov ecx, dword [ebp + 0x258]
jmp 0x455106
push ebx
push 1
lea ecx, [ebp + 0x248]
call fcn.0040daff
jmp 0x455176
xor ebx, ebx
lea ecx, [ebp + 0x1bc]
call fcn.00446045
lea ecx, [ebp + 0x1d8]
mov byte [ebp - 4], 3
call fcn.00446045
lea eax, [ebp + 0x210]
mov byte [ebp - 4], 5
push eax
call fcn.00447f20
mov esi, eax
push esi
lea ecx, [ebp + 0x1bc]
mov byte [ebp - 4], 6
call fcn.0043fec1
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp + 0x1d8]
call fcn.0043fec1
lea ecx, [ebp + 0x22c]
call fcn.004460a6
lea ecx, [ebp + 0x210]
call fcn.004460a6
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 0x455228
push ebx
push str.htaNotDone.FailGetModulePath
lea ecx, [ebp + 0xec]
call fcn.00455b8b
push 0x74575c
lea eax, [ebp + 0xec]
jmp 0x454f90
lea eax, [ebp + 0x278]
push eax
lea ecx, [ebp]
call fcn.00446021
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 0x6bf124
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.004460a6
cmp dword [ebp + 0x20c], 8
mov eax, dword [ebp + 0x1f8]
jae 0x45528d
lea eax, [ebp + 0x1f8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4552ba
push ebx
push str.htaNotDone.ModuleDoesnotExist
lea ecx, [ebp + 0x84]
call fcn.00455b8b
push 0x74575c
lea eax, [ebp + 0x84]
jmp 0x454f90
lea ecx, [ebp + 0x1f4]
call fcn.004460a6
lea ecx, [ebp]
call fcn.004460a6
lea ecx, [ebp + 0x1d8]
call fcn.004460a6
lea ecx, [ebp + 0x1bc]
call fcn.004460a6
push ebx
push 1
lea ecx, [ebp + 0x260]
call fcn.0040daff
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.00637b3e
lea esp, [ebp + 0x484]
pop ebp
ret 4