Function at 0x42af30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
cmp dword [0x4da3d0], 0
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
push edi
mov dword [esp + 0x10], esi
mov byte [eax], 0
mov byte [ecx], 0
jne 0x42afa6
mov ecx, dword [esi + 0xacc]
push str.Lib_
mov ebx, 0x4da3d0
call fcn.0042aea0
lea edx, [esp + 0x18]
push 0
push edx
call fcn.0044f460
add esp, 8
push str.AutoHotkeyLib_
lea ecx, [esp + 0x1c]
mov ebx, 0x4da3d8
call fcn.0042aea0
mov ecx, dword [esi + 0xad8]
push str.Lib_
mov ebx, 0x4da3e0
call fcn.0042aea0
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x42afc7
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42afb3
sub eax, edx
sar eax, 1
mov dword [ebp + 0xc], eax
mov edi, eax
cmp edi, 0xfd
ja 0x42b0a3
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
xor ebx, ebx
jmp 0x42aff0
mov eax, dword [ebx*8 + 0x4da3d0]
cmp word [eax], 0
je 0x42b049
mov ecx, dword [ebx*8 + 0x4da3d4]
mov edx, dword [esp + 0x14]
lea esi, [edi + edi]
push esi
lea eax, [eax + ecx*2]
push edx
push eax
call fcn.004a3100
mov ecx, str..ahk
add esp, 0xc
sub esi, ecx
lea edx, [esi + eax]
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x42b023
mov eax, dword [ebx*8 + 0x4da3d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42b049
test al, 0x10
je 0x42b0ae
inc ebx
cmp ebx, 3
jl 0x42aff0
mov esi, dword [ebp + 8]
push 0x5f
push esi
call fcn.00499cc9
add esp, 8
test eax, eax
je 0x42b0a3
sub eax, esi
sar eax, 1
mov edi, eax
cmp edi, 0xfe
jae 0x42b0a3
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x18]
lea esi, [edi + edi]
push esi
push edx
mov eax, ecx
push eax
mov dword [esp + 0x20], ecx
call fcn.004a3100
mov eax, dword [esp + 0x18]
inc eax
xor ecx, ecx
add esp, 0xc
mov word [esp + esi + 0x18], cx
mov dword [esp + 0xc], eax
cmp eax, 2
jl 0x42afe2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebx*8 + 0x4da3d4]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebx*8 + 0x4da3d0]
lea edi, [ebx*8 + 0x4da3d4]
lea ebx, [ebx*8 + 0x4da3d0]
mov byte [edx], 1
lea esi, [ecx + eax*2 - 2]
xor edx, edx
mov word [esi], dx
mov eax, dword [ebx]
call fcn.0044b500
mov eax, 0x5c
mov word [esi], ax
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0xaec]
test ecx, ecx
je 0x42b110
cmp byte [ebp + 0x18], 0
je 0x42b110
mov eax, dword [ebx]
mov edx, dword [edi]
push eax
push eax
push edx
push str.Include___0.s_nIncludeAgain__s_n
call fcn.0041d230
add esp, 0x10
mov ebx, dword [ebx]
mov eax, dword [0x4d95cc]
push 0
push 0
push ebx
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0
call fcn.0041f060
mov ebx, dword [esp + 0xc]
mov edi, eax
cmp edi, 3
jne 0x42b14c
mov edx, dword [esp + 0x10]
push edx
push ebx
push esi
call fcn.0041f450
mov edi, eax
test ebx, ebx
je 0x42b15a
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
test edi, edi
jne 0x42b16f
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push ecx
push edx
mov ecx, esi
call fcn.0042b190
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14