Function at 0x451dfa
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 [0x767e58]
xor eax, ebp
mov dword [ebp + 0x480], eax
push 0x14
mov eax, 0x67151f
call fcn.00629bc1
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 0x48c]
mov esi, dword [esi]
cmp esi, dword [esi]
jne 0x451e52
push 0
push str.htaLogEmpty
lea ecx, [ebp + 0x154]
call fcn.00452a76
push 0x719344
lea eax, [ebp + 0x154]
push eax
call fcn.0062bb74
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push str._HTA_DONE_
push esi
push dword [esi]
push eax
call fcn.004464ed
cmp dword [ebp - 0x1c], esi
sete al
test al, al
je 0x4521ad
mov eax, dword [esi + 4]
lea ecx, [ebp + 0x260]
add eax, 8
push eax
call fcn.0040ab3b
and dword [ebp - 4], 0
cmp dword [ebx + 0x5c], 0
je 0x451f64
lea eax, [ebp + 0x230]
lea edi, [ebx + 0x48]
push eax
mov ecx, edi
call fcn.0044392e
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.0044392e
push 0
push eax
lea ecx, [ebp + 0x260]
call fcn.0044e489
mov esi, eax
lea ecx, [ebp + 0x248]
push 0
cmp esi, 0xffffffff
push 1
setne bl
call fcn.0040abbf
test bl, bl
je 0x451f4e
mov byte [ebp - 0x11], 0x23
cmp dword [ebp + 0x274], 0x10
mov eax, dword [ebp + 0x260]
jae 0x451f02
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.0044644a
lea eax, [ebp + 0x248]
mov ecx, edi
push eax
call fcn.0044392e
push esi
push eax
lea ecx, [ebp + 0x260]
call fcn.0044e489
mov esi, eax
lea ecx, [ebp + 0x248]
push 0
cmp esi, 0xffffffff
push 1
setne bl
call fcn.0040abbf
test bl, bl
jne 0x451eed
push 0
push 1
lea ecx, [ebp + 0x230]
mov byte [ebp - 4], 0
call fcn.0040abbf
mov ebx, dword [ebp - 0x18]
lea eax, [ebp + 0x22c]
mov ecx, ebx
push eax
xor edi, edi
call fcn.0044862b
lea ecx, [ebp + 0x22c]
mov esi, dword [eax + 0x14]
call fcn.00442f2e
test esi, esi
je 0x452030
lea eax, [ebp + 0x22c]
mov ecx, ebx
push eax
call fcn.0044862b
lea ecx, [ebp + 0x248]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.0044392e
xor ebx, ebx
lea ecx, [ebp + 0x22c]
mov byte [ebp - 4], bl
call fcn.00442f2e
mov ecx, dword [ebp + 0x258]
mov esi, ecx
cmp dword [ebp + 0x25c], 0x10
mov eax, dword [ebp + 0x248]
jae 0x451fd7
lea eax, [ebp + 0x248]
push ecx
push edi
push eax
lea ecx, [ebp + 0x260]
call fcn.00434e4d
mov edi, eax
cmp edi, 0xffffffff
je 0x452020
cmp dword [ebp + 0x274], 0x10
mov eax, dword [ebp + 0x260]
mov byte [ebp - 0x11], 0x23
jae 0x452005
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.0044644a
mov ecx, dword [ebp + 0x258]
jmp 0x451fc2
push ebx
push 1
lea ecx, [ebp + 0x248]
call fcn.0040abbf
jmp 0x452032
xor ebx, ebx
lea ecx, [ebp + 0x1bc]
call fcn.00442ecd
lea ecx, [ebp + 0x1d8]
mov byte [ebp - 4], 3
call fcn.00442ecd
lea eax, [ebp + 0x210]
mov byte [ebp - 4], 5
push eax
call fcn.00444df9
mov esi, eax
push esi
lea ecx, [ebp + 0x1bc]
mov byte [ebp - 4], 6
call fcn.0043cef2
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp + 0x1d8]
call fcn.0043cef2
lea ecx, [ebp + 0x22c]
call fcn.00442f2e
lea ecx, [ebp + 0x210]
call fcn.00442f2e
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 0x4520e4
push ebx
push str.htaNotDone.FailGetModulePath
lea ecx, [ebp + 0xec]
call fcn.00452a76
push 0x719344
lea eax, [ebp + 0xec]
jmp 0x451e4c
lea eax, [ebp + 0x278]
push eax
lea ecx, [ebp]
call fcn.00442ea9
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 0x696d88
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.00442f2e
cmp dword [ebp + 0x20c], 8
mov eax, dword [ebp + 0x1f8]
jae 0x452149
lea eax, [ebp + 0x1f8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x452176
push ebx
push str.htaNotDone.ModuleDoesnotExist
lea ecx, [ebp + 0x84]
call fcn.00452a76
push 0x719344
lea eax, [ebp + 0x84]
jmp 0x451e4c
lea ecx, [ebp + 0x1f4]
call fcn.00442f2e
lea ecx, [ebp]
call fcn.00442f2e
lea ecx, [ebp + 0x1d8]
call fcn.00442f2e
lea ecx, [ebp + 0x1bc]
call fcn.00442f2e
push ebx
push 1
lea ecx, [ebp + 0x260]
call fcn.0040abbf
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.00629b0e
lea esp, [ebp + 0x484]
pop ebp
ret 4