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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb60
mov al, byte [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov byte [ebx + 0x632], al
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], eax
test edi, edi
jne 0x42c572
push 0x106
lea ecx, [ebp - 0x14c]
push ecx
push 0
call eax
cmp eax, 0x104
ja 0x42ce77
lea eax, [ebp - 0x14c]
push 0x5c
push eax
call fcn.004c7059
mov esi, eax
add esp, 8
test esi, esi
je 0x42ce77
push 0x2e
push esi
call fcn.004c7059
add esp, 8
test eax, eax
je 0x42ce77
cmp dword [0x4fb9d4], 0
lea edi, [ebp - 0x14c]
mov ecx, dword [str..ahk]
mov dword [eax], ecx
mov cl, byte [0x4eb838]
mov byte [eax + 4], cl
mov dword [ebp + 0xc], edi
jne 0x42c5aa
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42c572
lea eax, [ebp - 0xa54]
push 0x4e3371
push eax
mov dword [ebp + 0xc], eax
call fcn.00466020
mov edx, esi
mov edi, eax
add esp, 8
lea eax, [edx + 1]
nop dword [eax]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x42c4c0
sub edx, eax
lea eax, [edi + 1]
add eax, edx
cmp eax, 0x105
ja 0x42ce77
sub edi, esi
lea edx, [ebp - 0xa54]
mov ecx, esi
add edx, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x42c4e5
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0xa54]
push eax
call edi
cmp eax, 0xffffffff
jne 0x42c56f
movups xmm0, xmmword [0x4eb83c]
lea eax, [ebp - 0x14c]
push eax
movups xmmword [esi], xmm0
call edi
cmp eax, 0xffffffff
je 0x42c56f
lea eax, [ebp - 0x14c]
push eax
push str._ms_its:_s::_docs_Welcome.htm_
lea eax, [ebp - 0x94c]
push 0x800
push eax
call fcn.00428b20
add esp, 0x10
lea eax, [ebp - 0x14c]
mov ecx, ebx
push 0
push 0
push 0
push 0
push 0x4eb86c
push 0
push eax
lea eax, [ebp - 0x94c]
push eax
push str.hh.exe
call fcn.0044eac0
test eax, eax
jne 0x42ce77
mov edi, dword [ebp + 0xc]
cmp dword [0x4fb9d4], 0
jne 0x42c5aa
push 0
lea eax, [ebp - 0x94c]
push eax
push 0x800
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x42c7eb
lea esp, [ebp - 0xb6c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x94c]
push 0x800
push eax
push 0
call esi
test eax, eax
jne 0x42c5d1
push 0x800
lea eax, [ebp - 0x94c]
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 ebx, eax
push str.ntdll.dll
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x18]
push ecx
push 0x18
lea ecx, [ebp - 0x30]
push ecx
push 0
push ebx
call eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x10]
movzx eax, word [eax + 0x40]
test ax, ax
je 0x42c7e1
lea ecx, [eax + 8]
mov dword [ebp - 0x10], 0
cmp eax, ecx
sbb eax, eax
and eax, ecx
je 0x42c66c
cmp eax, 0x400
ja 0x42c652
call fcn.004db840
mov edi, esp
test edi, edi
je 0x42c66e
mov dword [edi], 0xcccc
add edi, 8
jmp 0x42c66e
push eax
call fcn.004c4e35
mov edi, eax
add esp, 4
test edi, edi
je 0x42c66e
mov dword [edi], 0xdddd
add edi, 8
jmp 0x42c66e
xor edi, edi
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x2c]
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 0x42c7c2
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx + 0x10]
cmp word [ecx + 0x40], 0
je 0x42c7c2
mov ebx, 1
cmp edx, ebx
jle 0x42c7bf
nop
mov ecx, dword [eax + ebx*4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c6b6
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
add ecx, 9
cmp eax, ecx
sbb eax, eax
and eax, ecx
je 0x42c70a
cmp eax, 0x400
ja 0x42c6f0
call fcn.004db840
mov esi, esp
test esi, esi
je 0x42c70c
mov dword [esi], 0xcccc
add esi, 8
jmp 0x42c70c
push eax
call fcn.004c4e35
mov esi, eax
add esp, 4
test esi, esi
je 0x42c70c
mov dword [esi], 0xdddd
add esi, 8
jmp 0x42c70c
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 0x42c715
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 0x4eb878
push esi
call fcn.004cc747
add esp, 0xc
test eax, eax
je 0x42c762
push 1
push 0x4eb87c
push esi
call fcn.004cc747
add esp, 0xc
test eax, eax
jne 0x42c770
mov eax, dword [ebp + 0x10]
inc ebx
cmp ebx, dword [ebp - 0x10]
jge 0x42c7bf
jmp 0x42c6b0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea eax, [ebp - 0x94c]
jne 0x42c7a5
mov esi, dword [ebp - 0x14]
push 0x800
push eax
push 0
call esi
test eax, eax
jne 0x42c7bc
push 0x800
lea eax, [ebp - 0x94c]
push eax
push 0
call esi
jmp 0x42c7bc
push 0
push eax
push 0x800
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x42ce77
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x42c7e1
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x42c7e1
push edi
call fcn.004c4247
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 0xc]
cmp byte [edi], 0x2a
jne 0x42c813
cmp byte [edi + 1], 0
jne 0x42c813
mov byte [0x4fc2ab], 1
mov dword [0x4fb98c], 4
mov dword [0x4f9b88], 1
jmp 0x42c85f
cmp dword [0x4fb9d4], 0
mov byte [0x4fc2ab], 0
jne 0x42c85f
lea eax, [ebp + 0x10]
push eax
push 0x104
lea edx, [ebp - 0xb5c]
lea ecx, [ebp - 0x94c]
call fcn.004ac8b0
add esp, 8
test eax, eax
je 0x42c85f
mov eax, dword [ebp + 0x10]
inc eax
push eax
lea eax, [ebp - 0xb5c]
push eax
lea eax, [ebp - 0x94c]
push eax
call fcn.004c2440
add esp, 0xc
cmp byte [ebp - 0x94c], 0
je 0x42c92e
lea esi, [ebp - 0x94c]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x42c875
sub esi, ecx
lea edi, [esi + 1]
cmp esi, 0x7fff
ja 0x42c8fa
cmp dword [0x4fd1cc], 0
jne 0x42c8a0
call fcn.004a8b90
mov dword [0x4fd1cc], eax
test eax, eax
je 0x42c8fa
mov ecx, dword [0x4fd1c8]
cmp edi, dword [ecx + 8]
jbe 0x42c8bd
call fcn.004a8b90
mov ecx, dword [0x4fd1c8]
mov dword [ecx + 0xc], eax
test eax, eax
je 0x42c8fa
mov ebx, dword [ecx + 4]
mov eax, edi
mov dword [0x4fd1c4], ebx
and eax, 3
je 0x42c8d2
sub edi, eax
add edi, 4
sub dword [ecx + 8], edi
lea eax, [edi + ebx]
mov dword [ecx + 4], eax
test ebx, ebx
je 0x42c8fa
test esi, esi
je 0x42c8f4
push esi
lea eax, [ebp - 0x94c]
push eax
push ebx
call fcn.004c2440
add esp, 0xc
mov byte [ebx + esi], 0
jmp 0x42c933
lea eax, [ebp - 0x94c]
mov ecx, 0x4fda88
push eax
push str.Out_of_memory.
call fcn.0044dd10
mov eax, dword [ebp - 8]
mov dword [eax + 0x618], 0
xor eax, eax
lea esp, [ebp - 0xb6c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ebx, 0x4e3371
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x94c]
push 0x5c
push eax
mov dword [esi + 0x618], ebx
call fcn.004c7059
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x42cb3c
mov byte [ebx], 0
cmp byte [ebp - 0x94c], 0
je 0x42ca3c
lea esi, [ebp - 0x94c]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x42c970
sub esi, ecx
lea ecx, [esi + 1]
cmp esi, 0x7fff
ja 0x42ca08
cmp dword [0x4fd1cc], 0
jne 0x42c9a2
call fcn.004a8b90
mov dword [0x4fd1cc], eax
test eax, eax
je 0x42ca08
lea ecx, [esi + 1]
mov edi, dword [0x4fd1c8]
cmp ecx, dword [edi + 8]
jbe 0x42c9c2
call fcn.004a8b90
mov edi, dword [0x4fd1c8]
mov dword [edi + 0xc], eax
test eax, eax
je 0x42ca08
lea ecx, [esi + 1]
mov edx, dword [edi + 4]
mov eax, ecx
mov dword [ebp + 0x10], edx
mov dword [0x4fd1c4], edx
and eax, 3
je 0x42c9da
sub ecx, eax
add ecx, 4
sub dword [edi + 8], ecx
lea eax, [ecx + edx]
mov dword [edi + 4], eax
test edx, edx
je 0x42ca08
test esi, esi
je 0x42c9ff
push esi
lea eax, [ebp - 0x94c]
push eax
push edx
call fcn.004c2440
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov byte [edx + esi], 0
mov esi, dword [ebp - 8]
jmp 0x42ca47
lea eax, [ebp - 0x94c]
mov ecx, 0x4fda88
push eax
push str.Out_of_memory.
call fcn.0044dd10
mov eax, dword [ebp - 8]
mov dword [eax + 0x61c], 0
xor eax, eax
lea esp, [ebp - 0xb6c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [0x4fd1c8]
mov edx, 0x4e3371
add ebx, 1
mov dword [esi + 0x61c], edx
mov dword [ebp + 0x10], ebx
jne 0x42cb4b
mov ebx, 0x4e3371
push str.AutoHotkey_v1.1.33.10
push ebx
mov eax, ebx
mov dword [esi + 0x620], eax
lea eax, [ebp - 0x94c]
push dword [esi + 0x61c]
push str._s_s____s
push 0x800
push eax
call fcn.004aba90
add esp, 0x18
cmp byte [ebp - 0x94c], 0
je 0x42cc52
lea esi, [ebp - 0x94c]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x42caa1
sub esi, ecx
lea edi, [esi + 1]
cmp esi, 0x7fff
ja 0x42cc1e
cmp dword [0x4fd1cc], 0
jne 0x42cad4
call fcn.004a8b90
mov dword [0x4fd1cc], eax
test eax, eax
je 0x42cc1e
mov ecx, dword [0x4fd1c8]
cmp edi, dword [ecx + 8]
jbe 0x42caf5
call fcn.004a8b90
mov ecx, dword [0x4fd1c8]
mov dword [ecx + 0xc], eax
test eax, eax
je 0x42cc1e
mov ebx, dword [ecx + 4]
mov eax, edi
mov dword [0x4fd1c4], ebx
and eax, 3
je 0x42cb0a
sub edi, eax
add edi, 4
sub dword [ecx + 8], edi
lea eax, [edi + ebx]
mov dword [ecx + 4], eax
test ebx, ebx
je 0x42cc1e
test esi, esi
je 0x42cb30
push esi
lea eax, [ebp - 0x94c]
push eax
push ebx
call fcn.004c2440
add esp, 0xc
mov byte [ebx + esi], 0
mov esi, dword [ebp - 8]
jmp 0x42cc57
mov edi, dword [0x4fd1c8]
lea ebx, [ebp - 0x94c]
mov dword [ebp + 0x10], ebx
cmp byte [ebx], 0
je 0x42ca59
mov esi, ebx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x42cb60
sub esi, ecx
lea ecx, [esi + 1]
cmp esi, 0x7fff
ja 0x42cbf0
cmp dword [0x4fd1cc], 0
jne 0x42cb94
call fcn.004a8b90
mov dword [0x4fd1cc], eax
test eax, eax
je 0x42cbf0
mov edi, dword [0x4fd1c8]
lea ecx, [esi + 1]
cmp ecx, dword [edi + 8]
jbe 0x42cbae
call fcn.004a8b90
mov edi, dword [0x4fd1c8]
mov dword [edi + 0xc], eax
test eax, eax
je 0x42cbf0
lea ecx, [esi + 1]
mov ebx, dword [edi + 4]
mov eax, ecx
mov dword [0x4fd1c4], ebx
and eax, 3
je 0x42cbc3
sub ecx, eax
add ecx, 4
sub dword [edi + 8], ecx
lea eax, [ecx + ebx]
mov dword [edi + 4], eax
test ebx, ebx
je 0x42cbed
test esi, esi
je 0x42cbe1
push esi
push dword [ebp + 0x10]
push ebx
call fcn.004c2440
add esp, 0xc
mov byte [ebx + esi], 0
mov esi, dword [ebp - 8]
jmp 0x42ca5e
mov ebx, dword [ebp + 0x10]
push ebx
push str.Out_of_memory.
mov ecx, 0x4fda88
call fcn.0044dd10
mov eax, dword [ebp - 8]
mov dword [eax + 0x620], 0
xor eax, eax
lea esp, [ebp - 0xb6c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea eax, [ebp - 0x94c]
mov ecx, 0x4fda88
push eax
push str.Out_of_memory.
call fcn.0044dd10
mov eax, dword [ebp - 8]
mov dword [eax + 0x62c], 0
xor eax, eax
lea esp, [ebp - 0xb6c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ebx, 0x4e3371
push 0x7fe
lea eax, [ebp - 0x94b]
mov dword [esi + 0x62c], ebx
push eax
push 0
mov byte [ebp - 0x94c], 0x22
call dword [ebp - 0x14]
test eax, eax
je 0x42ce92
lea ecx, [ebp - 0x94c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42cc86
sub ecx, edx
mov word [ebp + ecx - 0x94c], 0x22
cmp byte [ebp - 0x94c], al
je 0x42cd6c
lea esi, [ebp - 0x94c]
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x42ccb0
sub esi, ecx
lea edi, [esi + 1]
cmp esi, 0x7fff
ja 0x42cd38
cmp dword [0x4fd1cc], 0
jne 0x42ccdb
call fcn.004a8b90
mov dword [0x4fd1cc], eax
test eax, eax
je 0x42cd38
mov ecx, dword [0x4fd1c8]
cmp edi, dword [ecx + 8]
jbe 0x42ccf8
call fcn.004a8b90
mov ecx, dword [0x4fd1c8]
mov dword [ecx + 0xc], eax
test eax, eax
je 0x42cd38
mov ebx, dword [ecx + 4]
mov eax, edi
mov dword [0x4fd1c4], ebx
and eax, 3
je 0x42cd0d
sub edi, eax
add edi, 4
sub dword [ecx + 8], edi
lea eax, [edi + ebx]
mov dword [ecx + 4], eax
test ebx, ebx
je 0x42cd38
test esi, esi
je 0x42cd2f
push esi
lea eax, [ebp - 0x94c]
push eax
push ebx
call fcn.004c2440
add esp, 0xc
mov byte [ebx + esi], 0
mov esi, dword [ebp - 8]
jmp 0x42cd71
lea eax, [ebp - 0x94c]
mov ecx, 0x4fda88
push eax
push str.Out_of_memory.
call fcn.0044dd10
mov eax, dword [ebp - 8]
mov dword [eax + 0x624], 0
xor eax, eax
lea esp, [ebp - 0xb6c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ebx, 0x4e3371
lea eax, [ebp - 0x94c]
mov dword [esi + 0x624], ebx
push 0x5c
push eax
call fcn.004c7059
add esp, 8
test eax, eax
jne 0x42cd96
mov dword [esi + 0x628], 0x4e3371
mov byte [eax], 0
cmp byte [ebp - 0x94b], 0
je 0x42ce88
lea esi, [ebp - 0x94b]
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x42cdb0
sub esi, ecx
lea edi, [esi + 1]
cmp esi, 0x7fff
ja 0x42ce54
cmp dword [0x4fd1cc], 0
jne 0x42cddf
call fcn.004a8b90
mov dword [0x4fd1cc], eax
test eax, eax
je 0x42ce54
mov ecx, dword [0x4fd1c8]
cmp edi, dword [ecx + 8]
jbe 0x42cdfc
call fcn.004a8b90
mov ecx, dword [0x4fd1c8]
mov dword [ecx + 0xc], eax
test eax, eax
je 0x42ce54
mov ebx, dword [ecx + 4]
mov eax, edi
mov dword [0x4fd1c4], ebx
and eax, 3
je 0x42ce11
sub edi, eax
add edi, 4
sub dword [ecx + 8], edi
lea eax, [edi + ebx]
mov dword [ecx + 4], eax
test ebx, ebx
je 0x42ce54
test esi, esi
je 0x42ce33
push esi
lea eax, [ebp - 0x94b]
push eax
push ebx
call fcn.004c2440
add esp, 0xc
mov eax, dword [ebp - 8]
mov byte [ebx + esi], 0
mov dword [eax + 0x628], ebx
mov eax, 1
lea esp, [ebp - 0xb6c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea eax, [ebp - 0x94b]
mov ecx, 0x4fda88
push eax
push str.Out_of_memory.
call fcn.0044dd10
mov eax, dword [ebp - 8]
mov dword [eax + 0x628], 0
xor eax, eax
lea esp, [ebp - 0xb6c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov dword [esi + 0x628], 0x4e3371
mov eax, 1
lea esp, [ebp - 0xb6c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14