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

Disassembly:
mov eax, 0x10470
call fcn.004cc6a0
mov al, byte [esp + 0x1047c]
push ebx
push ebp
mov ebp, dword [esp + 0x10480]
mov ebx, ecx
push esi
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov dword [esp + 0x1c], esi
mov byte [ebx + 0xafa], al
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esp + 0x18], eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test ebp, ebp
jne 0x42dbf5
push 0x106
lea ecx, [esp + 0x44]
push ecx
push 0
call eax
cmp eax, 0x104
ja 0x42e1be
lea eax, [esp + 0x40]
push 0x5c
push eax
call esi
mov esi, eax
add esp, 8
test esi, esi
je 0x42e1be
push 0x2e
push esi
call dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x42e1be
cmp dword [0x4faae4], 0
lea ebp, [esp + 0x40]
movq xmm0, qword [str..ahk]
movq qword [eax], xmm0
mov cx, word [0x4e7d64]
mov word [eax + 8], cx
mov dword [esp + 0x10488], ebp
jne 0x42dc25
mov eax, ebp
push eax
call edi
cmp eax, 0xffffffff
jne 0x42dbf5
lea ebp, [esp + 0x270]
mov eax, ebp
mov dword [esp + 0x10488], ebp
push 0x4cec30
push eax
call fcn.00465240
mov edx, esi
mov edi, eax
add esp, 8
lea eax, [edx + 2]
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x42db30
sub edx, eax
lea eax, [edi + 1]
sar edx, 1
add eax, edx
cmp eax, 0x105
ja 0x42e1be
lea eax, [edi + edi]
mov ecx, esi
sub eax, esi
lea edx, [esp + 0x270]
add edx, eax
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x42db60
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x270]
push eax
call edi
cmp eax, 0xffffffff
jne 0x42dbf5
movups xmm0, xmmword [0x4e7d68]
lea eax, [esp + 0x40]
push eax
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x4e7d78]
movups xmmword [esi + 0x10], xmm0
call edi
cmp eax, 0xffffffff
je 0x42dbf5
lea eax, [esp + 0x40]
push eax
push str._ms_its:_s::_docs_Welcome.htm_
lea eax, [esp + 0x488]
push 0x8000
push eax
call fcn.0042a4d0
add esp, 0x10
lea eax, [esp + 0x40]
mov ecx, ebx
push 0
push 0
push 0
push 0
push 0x4e7dc8
push 0
push eax
lea eax, [esp + 0x49c]
push eax
push str.hh.exe
call fcn.0044ecf0
test eax, eax
jne 0x42e1be
cmp dword [0x4faae4], 0
jne 0x42dc25
push 0
lea eax, [esp + 0x484]
push eax
push 0x8000
push ebp
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x42e1be
jmp 0x42dd8e
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x480]
push 0x8000
push eax
push 0
call esi
test eax, eax
jne 0x42dc4f
push 0x8000
lea eax, [esp + 0x484]
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 ebp, eax
push str.ntdll.dll
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x24]
push ecx
push 0x18
lea ecx, [esp + 0x30]
push ecx
push 0
push ebp
call eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x10]
cmp word [eax + 0x40], 0
je 0x42dd80
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push dword [eax + 0x44]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp edx, 1
jle 0x42dd79
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + 0x10]
cmp word [ecx + 0x40], 0
je 0x42dd79
mov esi, 1
cmp edx, esi
jle 0x42dd79
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
nop
mov edi, dword [eax + esi*4]
push 1
push 0x4e7de0
push edi
call ebp
add esp, 0xc
test eax, eax
je 0x42dd15
push 1
push 0x4e7de4
push edi
call ebp
add esp, 0xc
test eax, eax
jne 0x42dd22
mov eax, dword [esp + 0x14]
inc esi
cmp esi, dword [esp + 0x10]
jge 0x42dd75
jmp 0x42dcf0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea eax, [esp + 0x480]
jne 0x42dd5a
mov esi, dword [esp + 0x1c]
push 0x8000
push eax
push 0
call esi
test eax, eax
jne 0x42dd71
push 0x8000
lea eax, [esp + 0x484]
push eax
push 0
call esi
jmp 0x42dd71
push 0
push eax
push 0x8000
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x42e1be
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x10488]
cmp word [ebp], 0x2a
jne 0x42ddb9
cmp word [ebp + 2], 0
jne 0x42ddb9
mov byte [0x4fab26], 1
mov dword [0x4faa9c], 4
mov dword [0x4f93e4], 1
jmp 0x42dddd
cmp dword [0x4faae4], 0
mov byte [0x4fab26], 0
jne 0x42dddd
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x484]
call fcn.004b16e0
add esp, 4
cmp word [esp + 0x480], 0
je 0x42de5c
lea esi, [esp + 0x480]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42ddf2
sub esi, ecx
sar esi, 1
lea ebp, [esi + esi]
lea ecx, [ebp + 2]
call fcn.004ad230
mov edi, eax
test edi, edi
jne 0x42de3e
lea eax, [esp + 0x480]
mov ecx, 0x4fcc10
push eax
push 0x4e2be8
call fcn.0044df00
mov dword [ebx + 0xae0], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10470
ret 0x14
test esi, esi
je 0x42de54
push ebp
lea eax, [esp + 0x484]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [edi + ebp], ax
jmp 0x42de61
mov edi, 0x4cec30
lea eax, [esp + 0x480]
mov dword [ebx + 0xae0], edi
push 0x5c
push eax
call dword [esp + 0x28]
mov edi, eax
add esp, 8
test edi, edi
je 0x42dfc2
xor eax, eax
mov word [edi], ax
cmp word [esp + 0x480], ax
je 0x42df12
lea esi, [esp + 0x480]
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42dea0
sub esi, ecx
sar esi, 1
lea eax, [esi + esi]
lea ecx, [eax + 2]
mov dword [esp + 0x10], eax
call fcn.004ad230
mov ebp, eax
test ebp, ebp
jne 0x42def0
lea eax, [esp + 0x480]
mov ecx, 0x4fcc10
push eax
push 0x4e2be8
call fcn.0044df00
mov dword [ebx + 0xae4], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10470
ret 0x14
test esi, esi
mov esi, dword [esp + 0x10]
je 0x42df0a
push esi
lea eax, [esp + 0x484]
push eax
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [esi + ebp], ax
jmp 0x42df17
mov ebp, 0x4cec30
mov dword [ebx + 0xae4], ebp
add edi, 2
jne 0x42dfc9
mov ebp, 0x4cec30
push 0x4e7de8
push ebp
mov eax, ebp
mov dword [ebx + 0xae8], eax
lea eax, [esp + 0x488]
push dword [ebx + 0xae4]
push str._s_s____s
push 0x8000
push eax
call fcn.004b0610
add esp, 0x18
cmp word [esp + 0x480], 0
je 0x42e065
lea esi, [esp + 0x480]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42df72
sub esi, ecx
sar esi, 1
lea ebp, [esi + esi]
lea ecx, [ebp + 2]
call fcn.004ad230
mov edi, eax
test edi, edi
jne 0x42e047
lea eax, [esp + 0x480]
mov ecx, 0x4fcc10
push eax
push 0x4e2be8
call fcn.0044df00
mov dword [ebx + 0xaf4], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10470
ret 0x14
lea edi, [esp + 0x480]
cmp word [edi], 0
je 0x42df26
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42dfe0
sub esi, ecx
sar esi, 1
lea eax, [esi + esi]
lea ecx, [eax + 2]
mov dword [esp + 0x10], eax
call fcn.004ad230
mov ebp, eax
test ebp, ebp
jne 0x42e029
push edi
push 0x4e2be8
mov ecx, 0x4fcc10
call fcn.0044df00
mov dword [ebx + 0xae8], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10470
ret 0x14
test esi, esi
mov esi, dword [esp + 0x10]
je 0x42e03c
push esi
push edi
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [esi + ebp], ax
jmp 0x42df2b
test esi, esi
je 0x42e05d
push ebp
lea eax, [esp + 0x484]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [edi + ebp], ax
jmp 0x42e06a
mov edi, 0x4cec30
push 0x7ffe
lea eax, [esp + 0x486]
mov dword [ebx + 0xaf4], edi
push eax
mov esi, 0x22
push 0
mov word [esp + 0x48c], si
call dword [esp + 0x28]
test eax, eax
je 0x42e20b
lea ecx, [esp + 0x480]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e0a2
sub ecx, edx
sar ecx, 1
mov dword [esp + ecx*2 + 0x480], esi
cmp word [esp + 0x480], ax
je 0x42e13a
lea esi, [esp + 0x480]
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42e0d0
sub esi, ecx
sar esi, 1
lea ebp, [esi + esi]
lea ecx, [ebp + 2]
call fcn.004ad230
mov edi, eax
test edi, edi
jne 0x42e11c
lea eax, [esp + 0x480]
mov ecx, 0x4fcc10
push eax
push 0x4e2be8
call fcn.0044df00
mov dword [ebx + 0xaec], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10470
ret 0x14
test esi, esi
je 0x42e132
push ebp
lea eax, [esp + 0x484]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [edi + ebp], ax
jmp 0x42e13f
mov edi, 0x4cec30
lea eax, [esp + 0x480]
mov dword [ebx + 0xaec], edi
push 0x5c
push eax
call dword [esp + 0x28]
add esp, 8
test eax, eax
jne 0x42e164
mov dword [ebx + 0xaf0], 0x4cec30
xor ecx, ecx
mov word [eax], cx
cmp word [esp + 0x482], cx
je 0x42e201
lea esi, [esp + 0x482]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42e181
sub esi, ecx
sar esi, 1
lea ebp, [esi + esi]
lea ecx, [ebp + 2]
call fcn.004ad230
mov edi, eax
test edi, edi
jne 0x42e1cd
lea eax, [esp + 0x482]
mov ecx, 0x4fcc10
push eax
push 0x4e2be8
call fcn.0044df00
mov dword [ebx + 0xaf0], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10470
ret 0x14
test esi, esi
je 0x42e1e3
push ebp
lea eax, [esp + 0x486]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [edi + ebp], ax
mov eax, 1
mov dword [ebx + 0xaf0], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10470
ret 0x14
mov dword [ebx + 0xaf0], 0x4cec30
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10470
ret 0x14