Function at 0x45f6c0
Capabilities:
Accept command line arguments
Check if file exists
Get file attributes
Set current directory

Disassembly:
mov eax, 0x1043c
call fcn.004ebaf0
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x10438], eax
mov eax, dword [esp + 0x1044c]
push ebx
push ebp
mov ebp, dword [esp + 0x1044c]
push esi
push edi
mov dword [esp + 0x20], eax
mov edi, ecx
mov eax, dword [esp + 0x10460]
mov dword [esp + 0x24], eax
mov al, byte [esp + 0x10458]
mov byte [edi + 0x6d6], al
lea eax, [esp + 0x448]
push 0x8000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [0x62271c]
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x45f7d3
cmp ecx, 0x8000
je 0x45fb19
mov edx, dword fs:[0x2c]
mov eax, dword [edx + ebx*4]
cmp byte [eax + 0x2198], 0
jne 0x45f760
call fcn.004ebad3
mov ecx, dword [esp + 0x1c]
mov edx, dword fs:[0x2c]
mov eax, dword [edx + ebx*4]
push ecx
lea ecx, [esp + 0x44c]
push ecx
mov ecx, dword [eax + 0x260]
call fcn.004df790
mov dword [edi + 0x6c4], eax
lea eax, [esp + 0x448]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_wcsrchr
mov esi, eax
add esp, 8
test esi, esi
je 0x45f7d3
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ebx*4]
cmp byte [ecx + 0x2198], 0
jne 0x45f7b2
call fcn.004ebad3
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ebx*4]
lea ecx, [esp + 0x448]
sub esi, ecx
sar esi, 1
push esi
push ecx
mov ecx, dword [eax + 0x260]
call fcn.004df790
mov dword [edi + 0x6c8], eax
cmp dword [0x527690], 0
je 0x45f80d
mov dword [edi + 0x6d0], 1
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ebx*4]
cmp byte [eax + 0x2198], 0
jne 0x45f7fd
call fcn.004ebad3
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ebx*4]
mov byte [eax + 0x139], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test ebp, ebp
jne 0x45f938
lea eax, [esp + 0x448]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x45fb19
push 0x2e
push eax
call sub.VCRUNTIME140.dll_wcsrchr
mov edx, eax
add esp, 8
test edx, edx
je 0x45fb19
mov ecx, edx
lea eax, [esp + 0x448]
sub ecx, eax
sar ecx, 1
add ecx, 5
cmp ecx, 0x8000
jae 0x45fb19
movq xmm0, qword [str..ahk]
lea ebp, [esp + 0x448]
movq qword [edx], xmm0
mov ax, word [0x4fee64]
mov word [edx + 8], ax
cmp dword [0x527690], 0
jne 0x45f945
mov eax, ebp
push eax
call esi
cmp eax, 0xffffffff
jne 0x45f938
call fcn.004e3d40
push dword [esp + 0x18]
mov esi, eax
lea eax, [esp + 0x48]
push esi
push str._ws_s
push 0x201
push eax
call fcn.0044e940
add esp, 0x14
mov ebp, eax
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test ebp, ebp
js 0x45fb19
cmp ebp, 0x201
jae 0x45fb19
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ebp, [esp + 0x44]
mov eax, ebp
push eax
call esi
cmp eax, 0xffffffff
jne 0x45f938
push dword [edi + 0x6c8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push str.AutoHotkey.chm
call esi
cmp eax, 0xffffffff
je 0x45f938
push 0
push 0
push 0
push 0
push 0x4fbb50
push 0
push 0
push str._ms_its:AutoHotkey.chm::_docs_Welcome.htm_
push str.hh.exe
mov ecx, edi
call fcn.00451060
test eax, eax
jne 0x45fb19
cmp dword [0x527690], 0
je 0x45fb20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push str.NtQueryInformationProcess
mov esi, eax
push str.ntdll.dll
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x28]
push ecx
push 0x18
lea ecx, [esp + 0x34]
push ecx
push 0
push esi
call eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x10]
cmp word [eax + 0x40], 0
je 0x45fa0c
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push ecx
push dword [eax + 0x44]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
cmp edx, 1
jle 0x45fa05
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x10]
cmp word [ecx + 0x40], 0
je 0x45fa05
mov esi, 1
cmp edx, esi
jle 0x45fa01
nop
mov ebx, dword [eax + esi*4]
push 1
push 0x4fef00
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x45fab5
mov eax, dword [esp + 0x10]
inc esi
cmp esi, dword [esp + 0x18]
jl 0x45f9d0
mov eax, dword [esp + 0x10]
mov ebx, dword [0x62271c]
mov esi, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x10464], 0
je 0x45fc0e
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ebx*4]
cmp byte [eax + 0x2198], 0
jne 0x45fa38
call fcn.004ebad3
mov eax, dword fs:[0x2c]
push 0xffffffffffffffff
push ebp
mov ecx, dword [eax + ebx*4]
mov ecx, dword [ecx + 0x260]
call fcn.004df790
mov dword [edi + 0x6b4], eax
lea eax, [esp + 0x448]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_wcsrchr
mov esi, eax
add esp, 8
test esi, esi
je 0x45fc31
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ebx*4]
cmp byte [ecx + 0x2198], 0
jne 0x45fa8e
call fcn.004ebad3
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ebx*4]
lea edx, [esp + 0x448]
mov ecx, dword [eax + 0x260]
mov eax, esi
sub eax, edx
add esi, 2
sar eax, 1
push eax
mov eax, edx
push eax
call fcn.004df790
jmp 0x45fc60
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea eax, [esp + 0x448]
jne 0x45faf8
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x8000
push eax
push dword [esp + 0x28]
call esi
test eax, eax
jne 0x45f9f7
push 0x8000
lea eax, [esp + 0x44c]
push eax
push 0
call esi
jmp 0x45f9f7
push 0
push eax
push 0x8000
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x45f9f7
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x45fd8a
cmp byte [esp + 0x10464], 0
jne 0x45fa21
cmp word [ebp], 0x2a
jne 0x45fbb0
cmp word [ebp + 2], 0
jne 0x45fb7d
mov dword [edi + 0x6d0], 2
mov eax, dword fs:[0x2c]
mov dword [esp + 0x448], 0x2a
mov eax, dword [eax + ebx*4]
cmp byte [eax + 0x2198], 0
jne 0x45fb68
call fcn.004ebad3
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ebx*4]
mov dword [eax + 0x1dc], 0
jmp 0x45fbeb
mov dword [edi + 0x6d0], 1
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ebx*4]
cmp byte [eax + 0x2198], 0
jne 0x45fb9e
call fcn.004ebad3
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ebx*4]
mov byte [eax + 0x139], 0
jmp 0x45fbeb
lea eax, [esp + 0x448]
mov dword [edi + 0x6d0], 0
cmp ebp, eax
je 0x45fbeb
push 0
push eax
push 0x8000
push ebp
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x45fb19
cmp eax, 0x8000
jae 0x45fb19
cmp dword [edi + 0x6d0], 2
je 0x45fc0e
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x44c]
push 0x8000
push eax
call fcn.004e2d80
add esp, 0xc
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ebx*4]
cmp byte [eax + 0x2198], 0
jne 0x45fc25
call fcn.004ebad3
lea ebp, [esp + 0x448]
jmp 0x45fa38
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebx*4]
cmp byte [eax + 0x2198], 0
jne 0x45fc50
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebx*4]
lea esi, [esp + 0x448]
mov eax, dword [eax + 0x168]
mov dword [edi + 0x6b8], eax
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebx*4]
cmp byte [eax + 0x2198], 0
jne 0x45fc85
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebx*4]
push 0xffffffffffffffff
push esi
mov ecx, dword [eax + 0x260]
call fcn.004df790
mov dword [edi + 0x6bc], eax
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebx*4]
cmp byte [eax + 0x2198], 0
jne 0x45fcbb
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + ebx*4]
mov eax, dword [sym.AutoHotkey.exe_g_FirstThreadID]
cmp eax, dword [ecx + 0x250]
jne 0x45fcec
push 0x4fef04
push str.____s
lea eax, [esp + 0x450]
push 0x8000
push eax
call fcn.004e6490
add esp, 0x10
jmp 0x45fd48
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov dword [edi + 0x6c0], eax
add esp, 4
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebx*4]
cmp byte [eax + 0x2198], 0
jne 0x45fd1f
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebx*4]
push dword [eax + 0x250]
lea eax, [esp + 0x44c]
push 0x4fef04
push esi
push str._s__s____d
push 0x8000
push eax
call fcn.004e6440
add esp, 0x18
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebx*4]
cmp byte [eax + 0x2198], 0
jne 0x45fd67
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebx*4]
lea ecx, [esp + 0x448]
push 0xffffffffffffffff
push ecx
mov ecx, dword [eax + 0x260]
call fcn.004df790
mov dword [edi + 0x6cc], eax
mov eax, 1
mov ecx, dword [esp + 0x10448]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebadf
add esp, 0x1043c
ret 0x18