Function at 0x140003240
Capabilities:
Terminate process

Disassembly:
jmp 0x140003240
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140027c40]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r12d, r12d
mov dword [0x140028128], 1
mov r15, qword [rdx]
xor ebp, ebp
xor esi, esi
mov r14, rdx
cmp ecx, 2
jge 0x1400032a0
lea ecx, [rbp + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, r15
lea rdx, str._s:_no_input_file_given_nTry__s___help_for_more_information_n
mov rcx, rax
mov r8, r15
call fcn.1400015b4
lea ecx, [rbp + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add r14, 8
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xb0], rdi
lea rdx, [0x140000000]
mov qword [rsp + 0xb8], r13
mov rdi, qword [r14]
test rdi, rdi
je 0x14000371c
lea r13, str.__help
cmp byte [rdi], 0x2d
jne 0x140003476
movsx eax, byte [rdi + 1]
add eax, 0xffffffd3
cmp eax, 0x42
ja case.0x140003303.52
cdqe
movzx eax, byte [rdx + rax + 0x3cd4]
mov ecx, dword [rdx + rax*4 + 0x3cb4]
add rcx, rdx
jmp rcx
lea rdx, str.__version
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14000359d
xor ecx, ecx
nop
movzx eax, byte [rdi + rcx]
inc rcx
cmp al, byte [rcx + r13 - 1]
jne case.0x140003303.50
cmp rcx, 7
jne 0x140003320
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r9, str..hint
mov r8, r15
mov rcx, rax
lea rdx, str.Usage:__s__OPTION_..._FILENAME_s_n
call fcn.1400015b4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._nConvert_a__long_ASCII_HINT_file_into_a__short_binary_HINT_file._n
call fcn.1400015b4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._nOptions:_n_t___help__t_display_this_message_n_t___version_t_display_the_HINT_version_n_t__l______t_redirect_stderr_to_a_log_file_n_t__o_FILE_t_specify_an_output_file_name_n_t__a______t_use_only_localized_names_n_t__g______t_do_not_use_localized_names_n_t__c______t_enable_compression_n
call fcn.1400015b4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._nFor_further_information_and_reporting_bugs_see_https:__hint.userweb.mwn.de__n
call fcn.1400015b4
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r12d, 1
jmp 0x140003580
mov rax, qword [r14 + 8]
add r14, 8
mov rsi, 0xffffffffffffffff
nop dword [rax]
inc rsi
cmp byte [rax + rsi], 0
jne 0x1400033d0
lea eax, [rsi + 6]
mov edx, 1
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbp, rax
test rax, rax
je 0x1400035d1
mov rdx, qword [r14]
mov r8, rax
nop dword [rax]
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
mov byte [r8], cl
lea r8, [r8 + 1]
test cl, cl
jne 0x140003400
jmp 0x140003580
mov dword [0x1400280f4], 1
mov dword [0x1400280f0], 1
jmp 0x140003580
mov dword [0x1400280f4], 1
jmp 0x140003580
mov dword [0x1400280f8], 1
jmp 0x140003580
mov rcx, qword [r14 + 8]
add r14, 8
test rcx, rcx
je 0x140003610
xor edx, edx
lea r8d, [rdx + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
mov dword [0x140028128], eax
jmp 0x140003580
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140003480
lea eax, [rbx + 6]
mov edx, 1
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [0x1400280c8], rax
test rax, rax
je 0x1400036dd
mov rdx, qword [r14]
nop dword [rax]
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x1400034b0
cmp ebx, 5
jl 0x1400034ee
mov rax, qword [0x1400280c8]
lea rdx, str..hint
add rax, 0xfffffffffffffffb
movsxd rcx, ebx
add rcx, rax
mov r8d, 5
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140003520
mov rcx, qword [0x1400280c8]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140003500
mov eax, dword [str..hint]
add ebx, 5
mov dword [rcx], eax
movzx eax, word [0x14001d830]
mov word [rcx + 4], ax
lea eax, [rbx - 5]
mov edx, 1
mov dword [0x1400280fc], eax
add eax, 6
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [0x140028100], rax
test rax, rax
je 0x14000369e
movsxd r8, dword [0x1400280fc]
mov rcx, rax
mov rdx, qword [0x1400280c8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
movsxd rcx, dword [0x1400280fc]
mov rax, qword [0x140028100]
mov byte [rcx + rax], 0
mov rbx, qword [r14 + 8]
test rbx, rbx
jne 0x14000366d
mov rdi, qword [r14 + 8]
add r14, 8
test rdi, rdi
je 0x14000371c
lea rdx, [0x140000000]
jmp 0x1400032d6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 1
mov dword [rsp + 0x20], 4
mov rcx, rax
lea rdx, str._s_version__d._d_n
mov r8, r15
call fcn.1400015b4
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [0x140028110]
lea rdx, str.HINT_ERROR:_Out_of_memory_for_file_name
call fcn.1400015b4
mov rcx, qword [0x140028110]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, qword [0x140028110]
lea rdx, [0x14001cec4]
call fcn.1400015b4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, r15
lea rdx, str._s:_option__d_expects_an_argument_nTry__s___help_for_more_information_n
mov rcx, rax
mov r8, r15
call fcn.1400015b4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rdi
mov qword [rsp + 0x20], r15
mov rcx, rax
lea rdx, str._s:_unrecognized_option__s_nTry__s___help_for_more_information_n
mov r8, r15
call fcn.1400015b4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
mov qword [rsp + 0x20], r15
mov rcx, rax
lea rdx, str._s:_extra_argument_after_input_file_name:___s_nTry__s___help_for_more_information_n
mov r8, r15
call fcn.1400015b4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [0x140028110]
lea rdx, str.HINT_ERROR:_Out_of_memory_for_stem_name
call fcn.1400015b4
mov rcx, qword [0x140028110]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, qword [0x140028110]
lea rdx, [0x14001cec4]
call fcn.1400015b4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [0x140028110]
lea rdx, str.HINT_ERROR:_Out_of_memory_for_hin_name
call fcn.1400015b4
mov rcx, qword [0x140028110]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, qword [0x140028110]
lea rdx, [0x14001cec4]
call fcn.1400015b4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp qword [0x1400280c8], 0
jne 0x140003752
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, r15
lea rdx, str._s:_missing_input_file_name_nTry__s___help_for_more_information_n
mov rcx, rax
mov r8, r15
call fcn.1400015b4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, dword [0x140028128]
shr ecx, 9
and ecx, 1
call fcn.1400015a5
test r12d, r12d
je 0x140003805
mov rcx, qword [0x140028100]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140003776
mov eax, dword [str..log]
mov dword [rcx], eax
movzx eax, byte [0x14001dcf4]
mov byte [rcx + 4], al
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, qword [0x140028100]
lea rdx, [0x14001dcf8]
mov r8, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen]
mov qword [0x140028110], rax
test rax, rax
jne 0x1400037f1
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140028100]
lea rdx, str.Unable_to_open_logfile__s
mov rcx, rax
call fcn.1400015b4
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [0x140028110], rax
movsxd rcx, dword [0x1400280fc]
mov rax, qword [0x140028100]
mov byte [rcx + rax], 0
jmp 0x140003817
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [0x140028110], rax
mov rcx, qword [0x1400280c8]
lea rdx, [0x14001d0f4]
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_fopen]
mov qword [0x140028108], rax
test rax, rax
jne 0x14000387d
mov r8, qword [0x1400280c8]
lea rdx, str.HINT_ERROR:_Unable_to_open_input_file__s
mov rcx, qword [0x140028110]
call fcn.1400015b4
mov rcx, qword [0x140028110]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, qword [0x140028110]
lea rdx, [0x14001cec4]
call fcn.1400015b4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
test rbp, rbp
je 0x1400038d1
cmp esi, 4
jle 0x1400038ac
movsxd rcx, esi
lea rdx, str..hnt
add rcx, 0xfffffffffffffffc
mov r8d, 4
add rcx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140003981
lea rcx, [rbp - 1]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400038b0
mov eax, dword [str..hnt]
mov dword [rcx], eax
movzx eax, byte [0x14001d838]
mov byte [rcx + 4], al
jmp 0x140003981
mov eax, dword [0x1400280fc]
mov edx, 1
add eax, 5
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbp, rax
test rax, rax
jne 0x14000392d
mov rcx, qword [0x140028110]
lea rdx, str.HINT_ERROR:_Out_of_memory_for_file_name
call fcn.1400015b4
mov rcx, qword [0x140028110]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, qword [0x140028110]
lea rdx, [0x14001cec4]
call fcn.1400015b4
lea ecx, [rbp + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [0x140028100]
mov rdx, rbp
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140003940
movsxd rcx, dword [0x1400280fc]
lea rdx, str..hnt
add rcx, rbp
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140003970
movzx eax, byte [rbp + 1]
lea rbx, [rbp + 1]
test al, al
je 0x140003a14
mov edi, 0x4000
cmp al, 0x2f
jne 0x140003a09
lea rdx, [rsp + 0x30]
mov byte [rbx], 0
mov rcx, rbp
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8__stat64i32]
cmp eax, 0xffffffff
jne 0x1400039ff
mov rcx, rbp
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8__mkdir]
test eax, eax
je 0x140003a06
mov rcx, qword [0x140028110]
lea rdx, str.HINT_ERROR:_Unable_to_create_directory__s
mov r8, rbp
call fcn.1400015b4
mov rcx, qword [0x140028110]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, qword [0x140028110]
lea rdx, [0x14001cec4]
call fcn.1400015b4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
test word [rsp + 0x36], di
je 0x140003a76
mov byte [rbx], 0x2f
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x140003996
lea rdx, [0x14001ddd4]
mov rcx, rbp
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_fopen]
mov qword [0x140028148], rax
test rax, rax
jne 0x140003ab8
mov rcx, qword [0x140028110]
lea rdx, str.HINT_ERROR:_Unable_to_open_output_file__s
mov r8, rbp
call fcn.1400015b4
mov rcx, qword [0x140028110]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, qword [0x140028110]
lea rdx, [0x14001cec4]
call fcn.1400015b4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [0x140028110]
lea rdx, str.HINT_ERROR:_Unable_to_create_directory__s__file_exists
mov r8, rbp
call fcn.1400015b4
mov rcx, qword [0x140028110]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, qword [0x140028110]
lea rdx, [0x14001cec4]
call fcn.1400015b4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [0x140028108]
lea rbx, [0x140000000]
mov rax, qword [0x140028110]
mov qword [0x140028280], rcx
mov qword [0x140028288], rax
mov dword [0x1400280c0], 0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetc]
cmp eax, 0xffffffff
je 0x140003b1c
movsxd rdx, dword [0x1400280c0]
mov byte [rdx + rbx + 0x294e0], al
inc edx
mov dword [0x1400280c0], edx
cmp eax, 0xa
je 0x140003b22
cmp edx, 0x100
jge 0x140003b22
mov rcx, qword [0x140028108]
jmp 0x140003ae5
mov edx, dword [0x1400280c0]
movsxd rax, edx
cmp rax, 0x101
jae 0x140003cab
lea rcx, str.HINT
mov byte [rax + rbx + 0x294e0], 0
call fcn.1400012d5
test eax, eax
jne 0x140003b88
mov rcx, qword [0x140028110]
lea rdx, str.HINT_ERROR:_Invalid_banner
call fcn.1400015b4
mov rcx, qword [0x140028110]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, qword [0x140028110]
lea rdx, [0x14001cec4]
call fcn.1400015b4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
inc dword [0x140025a10]
call fcn.1400016b8
call fcn.1400012bc
movzx ecx, word [0x1400294c0]
mov esi, 3
cmp si, cx
ja 0x140003c08
mov rdx, qword [0x140028190]
mov ebx, 0x18
lea edi, [rbx + 0x78]
cmp qword [rdx + rbx], 0
je 0x140003bf7
mov rcx, qword [0x140028130]
mov rcx, qword [rcx + rdi + 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [0x140028190]
mov rax, qword [0x140028130]
mov rcx, qword [rdx + rbx]
mov qword [rax + rdi + 0x18], rcx
mov qword [rdx + rbx], 0
movzx ecx, word [0x1400294c0]
inc esi
movzx eax, cx
add rdi, 0x30
add rbx, 8
cmp esi, eax
jle 0x140003bb8
lea rcx, str.created_by_shrink
call fcn.140001230
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x140028148]
test rcx, rcx
je 0x140003c2f
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [0x1400280c8]
test rcx, rcx
je 0x140003c41
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x140028108]
test rcx, rcx
je 0x140003c53
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [0x140028110]
test rcx, rcx
je 0x140003c65
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [0x140028100]
test rcx, rcx
je 0x140003c77
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rsp + 0xb0]
xor eax, eax
mov rbx, qword [rsp + 0xa0]
mov r13, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140001334
add rsp, 0x70
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
call fcn.1400014b0
int3