Function at 0x42c460
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
mov esi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
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
mov dword [ebp - 0x18], esi
test edi, edi
jne 0x42c5e3
push 0x106
lea ecx, [ebp - 0x14c]
push ecx
push 0
call eax
cmp eax, 0x104
ja 0x42ceec
lea eax, [ebp - 0x14c]
push 0x5c
push eax
call esi
mov esi, eax
add esp, 8
test esi, esi
je 0x42ceec
push 0x2e
push esi
call dword [ebp - 0x18]
add esp, 8
test eax, eax
je 0x42ceec
cmp dword [0x4d99e4], 0
lea edi, [ebp - 0x14c]
mov ecx, dword [str..ahk]
mov dword [eax], ecx
mov cl, byte [0x4cae80]
mov byte [eax + 4], cl
mov dword [ebp + 0xc], edi
jne 0x42c61b
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42c5e3
lea eax, [ebp - 0xa54]
push 0x4c3c29
push eax
mov dword [ebp + 0xc], eax
call fcn.00465ef0
mov edx, esi
mov edi, eax
add esp, 8
lea eax, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x42c531
sub edx, eax
lea eax, [edi + 1]
add eax, edx
cmp eax, 0x105
ja 0x42ceec
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 0x42c556
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0xa54]
push eax
call edi
cmp eax, 0xffffffff
jne 0x42c5e0
movups xmm0, xmmword [0x4cae84]
lea eax, [ebp - 0x14c]
push eax
movups xmmword [esi], xmm0
call edi
cmp eax, 0xffffffff
je 0x42c5e0
lea eax, [ebp - 0x14c]
push eax
push str._ms_its:_s::_docs_Welcome.htm_
lea eax, [ebp - 0x94c]
push 0x800
push eax
call fcn.00428cb0
add esp, 0x10
lea eax, [ebp - 0x14c]
mov ecx, ebx
push 0
push 0
push 0
push 0
push 0x4caeb4
push 0
push eax
lea eax, [ebp - 0x94c]
push eax
push str.hh.exe
call fcn.0044e810
test eax, eax
jne 0x42ceec
mov edi, dword [ebp + 0xc]
cmp dword [0x4d99e4], 0
jne 0x42c61b
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 0x42c86a
lea esp, [ebp - 0xb6c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x94c]
push 0x800
push eax
push 0
call ebx
test eax, eax
jne 0x42c642
push 0x800
lea eax, [ebp - 0x94c]
push eax
push 0
call ebx
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 - 0x1c]
push ecx
push 0x18
lea ecx, [ebp - 0x34]
push ecx
push 0
push ebx
call eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x10]
movzx eax, word [eax + 0x40]
test ax, ax
je 0x42c860
lea ecx, [eax + 8]
mov dword [ebp - 0x10], 0
cmp eax, ecx
sbb eax, eax
and eax, ecx
je 0x42c6de
cmp eax, 0x400
ja 0x42c6c3
call fcn.004c1c90
mov edi, esp
test edi, edi
je 0x42c6e0
mov dword [edi], 0xcccc
add edi, 8
jmp 0x42c6e0
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x42c6e0
mov dword [edi], 0xdddd
add edi, 8
jmp 0x42c6e0
xor edi, edi
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x10]
push dword [eax + 0x44]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [ebp - 0x10]
mov esi, eax
mov dword [ebp + 0x10], esi
cmp edx, 1
jle 0x42c83f
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx + 0x10]
cmp word [ecx + 0x40], 0
je 0x42c83f
mov ebx, 1
cmp edx, ebx
jle 0x42c83c
mov ecx, dword [esi + ebx*4]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c730
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
add ecx, 9
cmp eax, ecx
sbb eax, eax
and eax, ecx
je 0x42c785
cmp eax, 0x400
ja 0x42c76a
call fcn.004c1c90
mov esi, esp
test esi, esi
je 0x42c787
mov dword [esi], 0xcccc
add esi, 8
jmp 0x42c787
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x42c787
mov dword [esi], 0xdddd
add esi, 8
jmp 0x42c787
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 0x42c790
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 0x4caec0
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcmp]
add esp, 0xc
test eax, eax
je 0x42c7df
push 1
push 0x4caec4
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcmp]
add esp, 0xc
test eax, eax
jne 0x42c7ed
mov esi, dword [ebp + 0x10]
inc ebx
cmp ebx, dword [ebp - 0x10]
jge 0x42c83c
jmp 0x42c722
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea eax, [ebp - 0x94c]
jne 0x42c822
mov ebx, dword [ebp - 0x14]
push 0x800
push eax
push 0
call ebx
test eax, eax
jne 0x42c839
push 0x800
lea eax, [ebp - 0x94c]
push eax
push 0
call ebx
jmp 0x42c839
push 0
push eax
push 0x800
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x42ceec
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x42c860
cmp dword [edi - 8], 0xdddd
lea eax, [edi - 8]
jne 0x42c860
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 0xc]
cmp byte [edi], 0x2a
jne 0x42c892
cmp byte [edi + 1], 0
jne 0x42c892
mov byte [0x4da2bb], 1
mov dword [0x4d999c], 4
mov dword [0x4d82f0], 1
jmp 0x42c8de
cmp dword [0x4d99e4], 0
mov byte [0x4da2bb], 0
jne 0x42c8de
lea eax, [ebp + 0x10]
push eax
push 0x104
lea edx, [ebp - 0xb5c]
lea ecx, [ebp - 0x94c]
call fcn.004acc20
add esp, 8
test eax, eax
je 0x42c8de
mov eax, dword [ebp + 0x10]
inc eax
push eax
lea eax, [ebp - 0xb5c]
push eax
lea eax, [ebp - 0x94c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp byte [ebp - 0x94c], 0
je 0x42c9ad
lea esi, [ebp - 0x94c]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x42c8f4
sub esi, ecx
lea edi, [esi + 1]
cmp esi, 0x7fff
ja 0x42c979
cmp dword [0x4db1dc], 0
jne 0x42c91f
call fcn.004a8e80
mov dword [0x4db1dc], eax
test eax, eax
je 0x42c979
mov ecx, dword [0x4db1d8]
cmp edi, dword [ecx + 8]
jbe 0x42c93c
call fcn.004a8e80
mov ecx, dword [0x4db1d8]
mov dword [ecx + 0xc], eax
test eax, eax
je 0x42c979
mov ebx, dword [ecx + 4]
mov eax, edi
mov dword [0x4db1d4], ebx
and eax, 3
je 0x42c951
sub edi, eax
add edi, 4
sub dword [ecx + 8], edi
lea eax, [edi + ebx]
mov dword [ecx + 4], eax
test ebx, ebx
je 0x42c979
test esi, esi
je 0x42c973
push esi
lea eax, [ebp - 0x94c]
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [ebx + esi], 0
jmp 0x42c9b2
lea eax, [ebp - 0x94c]
mov ecx, 0x4dba98
push eax
push str.Out_of_memory.
call fcn.0044da60
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, 0x4c3c29
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x94c]
push 0x5c
push eax
mov dword [esi + 0x618], ebx
call dword [ebp - 0x18]
add esp, 8
mov dword [ebp + 0x10], eax
test eax, eax
je 0x42cbbb
mov byte [eax], 0
cmp byte [ebp - 0x94c], 0
je 0x42cab9
lea esi, [ebp - 0x94c]
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x42c9f0
sub esi, ecx
lea ebx, [esi + 1]
cmp esi, 0x7fff
ja 0x42ca85
cmp dword [0x4db1dc], 0
jne 0x42ca1f
call fcn.004a8e80
mov dword [0x4db1dc], eax
test eax, eax
je 0x42ca85
mov edi, dword [0x4db1d8]
cmp ebx, dword [edi + 8]
jbe 0x42ca3c
call fcn.004a8e80
mov edi, dword [0x4db1d8]
mov dword [edi + 0xc], eax
test eax, eax
je 0x42ca85
mov ecx, dword [edi + 4]
mov eax, ebx
mov dword [ebp + 0xc], ecx
mov dword [0x4db1d4], ecx
and eax, 3
je 0x42ca54
sub ebx, eax
add ebx, 4
sub dword [edi + 8], ebx
lea eax, [ebx + ecx]
mov dword [edi + 4], eax
test ecx, ecx
je 0x42ca85
test esi, esi
je 0x42ca79
push esi
lea eax, [ebp - 0x94c]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov byte [ecx + esi], 0
mov esi, dword [ebp - 8]
jmp 0x42cac4
lea eax, [ebp - 0x94c]
mov ecx, 0x4dba98
push eax
push str.Out_of_memory.
call fcn.0044da60
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 [0x4db1d8]
mov ecx, 0x4c3c29
add eax, 1
mov dword [esi + 0x61c], ecx
mov dword [ebp + 0x10], eax
jne 0x42cbca
mov ebx, 0x4c3c29
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.004abdd0
add esp, 0x18
cmp byte [ebp - 0x94c], 0
je 0x42ccc9
lea esi, [ebp - 0x94c]
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x42cb20
sub esi, ecx
lea edi, [esi + 1]
cmp esi, 0x7fff
ja 0x42cc95
cmp dword [0x4db1dc], 0
jne 0x42cb53
call fcn.004a8e80
mov dword [0x4db1dc], eax
test eax, eax
je 0x42cc95
mov ecx, dword [0x4db1d8]
cmp edi, dword [ecx + 8]
jbe 0x42cb74
call fcn.004a8e80
mov ecx, dword [0x4db1d8]
mov dword [ecx + 0xc], eax
test eax, eax
je 0x42cc95
mov ebx, dword [ecx + 4]
mov eax, edi
mov dword [0x4db1d4], ebx
and eax, 3
je 0x42cb89
sub edi, eax
add edi, 4
sub dword [ecx + 8], edi
lea eax, [edi + ebx]
mov dword [ecx + 4], eax
test ebx, ebx
je 0x42cc95
test esi, esi
je 0x42cbaf
push esi
lea eax, [ebp - 0x94c]
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [ebx + esi], 0
mov esi, dword [ebp - 8]
jmp 0x42ccce
mov edi, dword [0x4db1d8]
lea eax, [ebp - 0x94c]
mov dword [ebp + 0x10], eax
cmp byte [eax], 0
je 0x42cad6
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x42cbd8
sub esi, ecx
lea ecx, [esi + 1]
cmp esi, 0x7fff
ja 0x42cc65
cmp dword [0x4db1dc], 0
jne 0x42cc0c
call fcn.004a8e80
mov dword [0x4db1dc], eax
test eax, eax
je 0x42cc65
mov edi, dword [0x4db1d8]
lea ecx, [esi + 1]
cmp ecx, dword [edi + 8]
jbe 0x42cc26
call fcn.004a8e80
mov edi, dword [0x4db1d8]
mov dword [edi + 0xc], eax
test eax, eax
je 0x42cc65
lea ecx, [esi + 1]
mov ebx, dword [edi + 4]
mov eax, ecx
mov dword [0x4db1d4], ebx
and eax, 3
je 0x42cc3b
sub ecx, eax
add ecx, 4
sub dword [edi + 8], ecx
lea eax, [ecx + ebx]
mov dword [edi + 4], eax
test ebx, ebx
je 0x42cc65
test esi, esi
je 0x42cc59
push esi
push dword [ebp + 0x10]
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [ebx + esi], 0
mov esi, dword [ebp - 8]
jmp 0x42cadb
push dword [ebp + 0x10]
mov ecx, 0x4dba98
push str.Out_of_memory.
call fcn.0044da60
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, 0x4dba98
push eax
push str.Out_of_memory.
call fcn.0044da60
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, 0x4c3c29
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 0x42cf07
lea ecx, [ebp - 0x94c]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42cd00
sub ecx, edx
mov word [ebp + ecx - 0x94c], 0x22
cmp byte [ebp - 0x94c], al
je 0x42cde4
lea esi, [ebp - 0x94c]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x42cd28
sub esi, ecx
lea edi, [esi + 1]
cmp esi, 0x7fff
ja 0x42cdb0
cmp dword [0x4db1dc], 0
jne 0x42cd53
call fcn.004a8e80
mov dword [0x4db1dc], eax
test eax, eax
je 0x42cdb0
mov ecx, dword [0x4db1d8]
cmp edi, dword [ecx + 8]
jbe 0x42cd70
call fcn.004a8e80
mov ecx, dword [0x4db1d8]
mov dword [ecx + 0xc], eax
test eax, eax
je 0x42cdb0
mov ebx, dword [ecx + 4]
mov eax, edi
mov dword [0x4db1d4], ebx
and eax, 3
je 0x42cd85
sub edi, eax
add edi, 4
sub dword [ecx + 8], edi
lea eax, [edi + ebx]
mov dword [ecx + 4], eax
test ebx, ebx
je 0x42cdb0
test esi, esi
je 0x42cda7
push esi
lea eax, [ebp - 0x94c]
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [ebx + esi], 0
mov esi, dword [ebp - 8]
jmp 0x42cde9
lea eax, [ebp - 0x94c]
mov ecx, 0x4dba98
push eax
push str.Out_of_memory.
call fcn.0044da60
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, 0x4c3c29
lea eax, [ebp - 0x94c]
mov dword [esi + 0x624], ebx
push 0x5c
push eax
call dword [ebp - 0x18]
add esp, 8
test eax, eax
jne 0x42ce0c
mov dword [esi + 0x628], 0x4c3c29
mov byte [eax], 0
cmp byte [ebp - 0x94b], 0
je 0x42cefd
lea esi, [ebp - 0x94b]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x42ce25
sub esi, ecx
lea edi, [esi + 1]
cmp esi, 0x7fff
ja 0x42cec9
cmp dword [0x4db1dc], 0
jne 0x42ce54
call fcn.004a8e80
mov dword [0x4db1dc], eax
test eax, eax
je 0x42cec9
mov ecx, dword [0x4db1d8]
cmp edi, dword [ecx + 8]
jbe 0x42ce71
call fcn.004a8e80
mov ecx, dword [0x4db1d8]
mov dword [ecx + 0xc], eax
test eax, eax
je 0x42cec9
mov ebx, dword [ecx + 4]
mov eax, edi
mov dword [0x4db1d4], ebx
and eax, 3
je 0x42ce86
sub edi, eax
add edi, 4
sub dword [ecx + 8], edi
lea eax, [edi + ebx]
mov dword [ecx + 4], eax
test ebx, ebx
je 0x42cec9
test esi, esi
je 0x42cea8
push esi
lea eax, [ebp - 0x94b]
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
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, 0x4dba98
push eax
push str.Out_of_memory.
call fcn.0044da60
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], 0x4c3c29
mov eax, 1
lea esp, [ebp - 0xb6c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14