Function at 0x42acd0
Capabilities:
Accept command line arguments
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb58
mov al, byte [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov byte [ebx + 0x632], al
test edi, edi
jne 0x42ae49
push 0x106
lea eax, [ebp - 0x144]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, 0x104
ja 0x42ae72
lea eax, [ebp - 0x144]
push 0x5c
push eax
call fcn.004b4423
mov esi, eax
add esp, 8
test esi, esi
je 0x42ae72
push 0x2e
push esi
call fcn.004b4423
add esp, 8
test eax, eax
je 0x42ae72
cmp dword [0x4e79bc], 0
lea edi, [ebp - 0x144]
mov ecx, dword [str..ahk]
mov dword [eax], ecx
mov cl, byte [0x4d75a0]
mov byte [eax + 4], cl
mov dword [ebp + 0xc], edi
jne 0x42ae83
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42ae49
lea eax, [ebp - 0xa4c]
push 0x4d0335
push eax
mov dword [ebp + 0xc], eax
call fcn.0045b800
mov edx, esi
mov edi, eax
add esp, 8
lea eax, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x42ad98
sub edx, eax
lea eax, [edi + 1]
add eax, edx
cmp eax, 0x105
ja 0x42ae72
sub edi, esi
lea edx, [ebp - 0xa4c]
mov ecx, esi
add edx, edi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x42adc0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0xa4c]
push eax
call edi
cmp eax, 0xffffffff
jne 0x42ae46
movups xmm0, xmmword [0x4d75a4]
lea eax, [ebp - 0x144]
push eax
movups xmmword [esi], xmm0
call edi
cmp eax, 0xffffffff
je 0x42ae46
lea eax, [ebp - 0x144]
push eax
push str._ms_its:_s::_docs_Welcome.htm_
lea eax, [ebp - 0x944]
push 0x800
push eax
call fcn.004271c0
add esp, 0x10
lea eax, [ebp - 0x144]
mov ecx, ebx
push 0
push 0
push 0
push 0
push 0x4d75d4
push 0
push eax
lea eax, [ebp - 0x944]
push eax
push str.hh.exe
call fcn.00447f20
test eax, eax
jne 0x42ae72
mov edi, dword [ebp + 0xc]
cmp dword [0x4e79bc], 0
jne 0x42ae83
push 0
lea eax, [ebp - 0x944]
push eax
push 0x800
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x42b121
xor eax, eax
lea esp, [ebp - 0xb64]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x944]
push 0x800
push eax
push 0
call esi
test eax, eax
jne 0x42aead
push 0x800
lea eax, [ebp - 0x944]
push eax
push 0
call esi
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 [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x14]
push ecx
push 0x18
lea ecx, [ebp - 0x2c]
push ecx
push 0
push esi
call eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x10]
movzx eax, word [eax + 0x40]
test ax, ax
je 0x42b117
lea ecx, [eax + 8]
mov dword [ebp - 0x10], 0
cmp eax, ecx
sbb eax, eax
and eax, ecx
je 0x42af48
cmp eax, 0x400
ja 0x42af2e
call fcn.004c78d0
mov edi, esp
test edi, edi
je 0x42af4a
mov dword [edi], 0xcccc
add edi, 8
jmp 0x42af4a
push eax
call fcn.004b2c3e
mov edi, eax
add esp, 4
test edi, edi
je 0x42af4a
mov dword [edi], 0xdddd
add edi, 8
jmp 0x42af4a
xor edi, edi
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x10]
push dword [eax + 0x44]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [ebp - 0x10]
mov dword [ebp + 0x10], eax
cmp edx, 1
jle 0x42b0f7
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + 0x10]
cmp word [ecx + 0x40], 0
je 0x42b0f7
mov ebx, 1
cmp edx, ebx
jle 0x42b0f4
nop word [eax + eax]
mov edx, dword [eax + ebx*4]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42afa0
sub ecx, esi
sar ecx, 1
lea eax, [ecx + 1]
lea ecx, [eax + 8]
cmp eax, ecx
sbb eax, eax
test ecx, eax
je 0x42b039
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42afc2
sub ecx, esi
sar ecx, 1
lea eax, [ecx + 1]
lea ecx, [eax + 8]
cmp eax, ecx
sbb esi, esi
and esi, ecx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42afe0
sub edx, ecx
sar edx, 1
lea eax, [edx + 1]
lea ecx, [eax + 8]
cmp esi, 0x400
ja 0x42b019
cmp eax, ecx
sbb eax, eax
and eax, ecx
call fcn.004c78d0
mov esi, esp
test esi, esi
je 0x42b03b
mov dword [esi], 0xcccc
add esi, 8
jmp 0x42b03b
cmp eax, ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.004b2c3e
mov esi, eax
add esp, 4
test esi, esi
je 0x42b03b
mov dword [esi], 0xdddd
add esi, 8
jmp 0x42b03b
xor esi, esi
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx + ebx*4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b044
push 0
sub ecx, edx
sar ecx, 1
push 0
lea eax, [ecx + 1]
push eax
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 1
push 0x4d75e0
push esi
call fcn.004b9b6d
add esp, 0xc
test eax, eax
je 0x42b091
push 1
push 0x4d75e4
push esi
call fcn.004b9b6d
add esp, 0xc
test eax, eax
jne 0x42b09f
mov eax, dword [ebp + 0x10]
inc ebx
cmp ebx, dword [ebp - 0x10]
jge 0x42b0f1
jmp 0x42af90
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea eax, [ebp - 0x944]
jne 0x42b0d7
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x800
push eax
push 0
call esi
test eax, eax
jne 0x42b0ee
push 0x800
lea eax, [ebp - 0x944]
push eax
push 0
call esi
jmp 0x42b0ee
push 0
push eax
push 0x800
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x42ae72
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x42b117
cmp dword [edi - 8], 0xdddd
lea eax, [edi - 8]
jne 0x42b117
push eax
call fcn.004b2343
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 0xc]
cmp byte [edi], 0x2a
jne 0x42b149
cmp byte [edi + 1], 0
jne 0x42b149
mov byte [0x4e8293], 1
mov dword [0x4e7974], 4
mov dword [0x4e5b88], 1
jmp 0x42b195
cmp dword [0x4e79bc], 0
mov byte [0x4e8293], 0
jne 0x42b195
lea eax, [ebp + 0x10]
push eax
push 0x104
lea edx, [ebp - 0xb54]
lea ecx, [ebp - 0x944]
call fcn.0049b330
add esp, 8
test eax, eax
je 0x42b195
mov eax, dword [ebp + 0x10]
inc eax
push eax
lea eax, [ebp - 0xb54]
push eax
lea eax, [ebp - 0x944]
push eax
call fcn.004b19e0
add esp, 0xc
cmp byte [ebp - 0x944], 0
je 0x42b1f1
lea esi, [ebp - 0x944]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x42b1a7
sub esi, ecx
lea ecx, [esi + 1]
call fcn.00497860
mov edi, eax
test edi, edi
jne 0x42b1d6
lea eax, [ebp - 0x944]
mov ecx, 0x4e9a70
push eax
push str.Out_of_memory.
call fcn.004470d0
jmp 0x42b1f6
test esi, esi
je 0x42b1eb
push esi
lea eax, [ebp - 0x944]
push eax
push edi
call fcn.004b19e0
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x42b1f6
mov edi, 0x4d0335
mov dword [ebx + 0x618], edi
test edi, edi
je 0x42ae72
lea eax, [ebp - 0x944]
push 0x5c
push eax
call fcn.004b4423
mov edi, eax
add esp, 8
test edi, edi
je 0x42b31f
mov byte [edi], 0
cmp byte [ebp - 0x944], 0
je 0x42b27e
lea esi, [ebp - 0x944]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x42b234
sub esi, ecx
lea ecx, [esi + 1]
call fcn.00497860
mov ebx, eax
test ebx, ebx
jne 0x42b263
lea eax, [ebp - 0x944]
mov ecx, 0x4e9a70
push eax
push str.Out_of_memory.
call fcn.004470d0
jmp 0x42b283
test esi, esi
je 0x42b278
push esi
lea eax, [ebp - 0x944]
push eax
push ebx
call fcn.004b19e0
add esp, 0xc
mov byte [ebx + esi], 0
jmp 0x42b283
mov ebx, 0x4d0335
mov eax, dword [ebp - 8]
mov dword [eax + 0x61c], ebx
test ebx, ebx
je 0x42ae72
add edi, 1
jne 0x42b325
mov ebx, 0x4d0335
mov eax, dword [ebp - 8]
mov dword [eax + 0x620], ebx
test ebx, ebx
je 0x42ae72
push str.AutoHotkey_v1.1.33.10
push ebx
mov ebx, eax
lea eax, [ebp - 0x944]
push dword [ebx + 0x61c]
push str._s_s____s
push 0x800
push eax
call fcn.0049a540
add esp, 0x18
cmp byte [ebp - 0x944], 0
je 0x42b392
lea esi, [ebp - 0x944]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x42b2f0
sub esi, ecx
lea ecx, [esi + 1]
call fcn.00497860
mov edi, eax
test edi, edi
jne 0x42b377
lea eax, [ebp - 0x944]
mov ecx, 0x4e9a70
push eax
push str.Out_of_memory.
call fcn.004470d0
jmp 0x42b397
lea edi, [ebp - 0x944]
cmp byte [edi], 0
je 0x42b29d
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x42b333
sub esi, ecx
lea ecx, [esi + 1]
call fcn.00497860
mov ebx, eax
test ebx, ebx
jne 0x42b35f
push edi
push str.Out_of_memory.
mov ecx, 0x4e9a70
call fcn.004470d0
jmp 0x42b2a2
test esi, esi
je 0x42b36e
push esi
push edi
push ebx
call fcn.004b19e0
add esp, 0xc
mov byte [ebx + esi], 0
jmp 0x42b2a2
test esi, esi
je 0x42b38c
push esi
lea eax, [ebp - 0x944]
push eax
push edi
call fcn.004b19e0
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x42b397
mov edi, 0x4d0335
mov dword [ebx + 0x62c], edi
test edi, edi
je 0x42ae72
push 0x7fe
lea eax, [ebp - 0x943]
mov byte [ebp - 0x944], 0x22
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x42b490
lea ecx, [ebp - 0x944]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42b3d1
sub ecx, edx
mov word [ebp + ecx - 0x944], 0x22
cmp byte [ebp - 0x944], al
je 0x42b43f
lea esi, [ebp - 0x944]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x42b3f5
sub esi, ecx
lea ecx, [esi + 1]
call fcn.00497860
mov edi, eax
test edi, edi
jne 0x42b424
lea eax, [ebp - 0x944]
mov ecx, 0x4e9a70
push eax
push str.Out_of_memory.
call fcn.004470d0
jmp 0x42b444
test esi, esi
je 0x42b439
push esi
lea eax, [ebp - 0x944]
push eax
push edi
call fcn.004b19e0
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x42b444
mov edi, 0x4d0335
mov dword [ebx + 0x624], edi
test edi, edi
je 0x42ae72
lea eax, [ebp - 0x944]
push 0x5c
push eax
call fcn.004b4423
add esp, 8
test eax, eax
jne 0x42b471
mov dword [ebx + 0x628], 0x4d0335
or edx, 0xffffffff
mov byte [eax], 0
lea ecx, [ebp - 0x943]
call fcn.004977f0
mov dword [ebx + 0x628], eax
test eax, eax
je 0x42ae72
mov eax, 1
lea esp, [ebp - 0xb64]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14