Function at 0x42b080
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 0x42b0f6
mov ecx, dword [esi + 0xacc]
push str.Lib_
mov ebx, 0x4da3d0
call fcn.0042aff0
lea edx, [esp + 0x18]
push 0
push edx
call fcn.0044f600
add esp, 8
push str.AutoHotkeyLib_
lea ecx, [esp + 0x1c]
mov ebx, 0x4da3d8
call fcn.0042aff0
mov ecx, dword [esi + 0xad8]
push str.Lib_
mov ebx, 0x4da3e0
call fcn.0042aff0
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x42b117
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42b103
sub eax, edx
sar eax, 1
mov dword [ebp + 0xc], eax
mov edi, eax
cmp edi, 0xfd
ja 0x42b1f3
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
xor ebx, ebx
jmp 0x42b140
mov eax, dword [ebx*8 + 0x4da3d0]
cmp word [eax], 0
je 0x42b199
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.004a3390
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 0x42b173
mov eax, dword [ebx*8 + 0x4da3d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42b199
test al, 0x10
je 0x42b1fe
inc ebx
cmp ebx, 3
jl 0x42b140
mov esi, dword [ebp + 8]
push 0x5f
push esi
call fcn.00499f59
add esp, 8
test eax, eax
je 0x42b1f3
sub eax, esi
sar eax, 1
mov edi, eax
cmp edi, 0xfe
jae 0x42b1f3
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.004a3390
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 0x42b132
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.0044b5f0
mov eax, 0x5c
mov word [esi], ax
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0xaec]
test ecx, ecx
je 0x42b260
cmp byte [ebp + 0x18], 0
je 0x42b260
mov eax, dword [ebx]
mov edx, dword [edi]
push eax
push eax
push edx
push str.Include___0.s_nIncludeAgain__s_n
call fcn.0041d3b0
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.0041f1b0
mov ebx, dword [esp + 0xc]
mov edi, eax
cmp edi, 3
jne 0x42b29c
mov edx, dword [esp + 0x10]
push edx
push ebx
push esi
call fcn.0041f5a0
mov edi, eax
test ebx, ebx
je 0x42b2aa
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
test edi, edi
jne 0x42b2bf
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.0042b2e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14