Function at 0x14002d430
Capabilities:
Terminate process

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x60
mov r14, rdx
mov dword [rsp + 0x90], 1
mov ebx, ecx
lea rdx, [0x14010129c]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_setlocale]
lea r9, [0x14002b820]
mov rdx, r14
lea r8, [rsp + 0x90]
mov ecx, ebx
call fcn.1400846e0
test eax, eax
je 0x14002d679
movsxd rcx, dword [rsp + 0x90]
lea eax, [rbx - 1]
cmp ecx, eax
jl 0x14002d679
cmp dword [0x140159eec], 0
jne 0x14002d608
mov rdi, qword [r14 + rcx*8]
call fcn.1400b0e40
call fcn.14002bfb0
test rdi, rdi
je 0x14002d4b4
mov rcx, rdi
call fcn.14002ca00
cmp dword [0x14016412c], 0
jne 0x14002d56a
mov ecx, 3
call fcn.140084a50
call fcn.1400af430
mov rax, qword [0x140164110]
lea rcx, [0x14002a130]
mov r9d, 0xa
mov dword [rsp + 0x30], 0x20d
mov dword [rsp + 0x28], 0x12c
lea rdx, str.main_window_pos
mov dword [rsp + 0x20], 0x1e
mov qword [rax + 0x10], rcx
mov rcx, qword [0x140164110]
lea r8d, [r9 - 9]
call fcn.14002c750
mov rcx, qword [0x140164110]
mov r8, r14
mov edx, ebx
call fcn.1400847f0
xor edx, edx
xor ecx, ecx
call fcn.14002b670
xor edx, edx
xor ecx, ecx
call fcn.1400297d0
test rdi, rdi
jne 0x14002d56a
mov rax, qword [0x1401580d0]
cmp byte [rax + 0x7c], dil
je 0x14002d56a
cmp byte [0x14015a0f0], dil
je 0x14002d56a
lea rdx, [0x14015a0f0]
xor ecx, ecx
call fcn.14002a4d0
call fcn.140032d30
jmp 0x14002d5e7
call fcn.140032d30
test rdi, rdi
je 0x14002d5e7
xor edx, edx
mov rcx, rdi
call fcn.140028970
test eax, eax
jne 0x14002d5e7
cmp dword [0x14016412c], eax
je 0x14002d5c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea rdx, str._s_:__s_n
mov rcx, rax
mov r8, rdi
call fcn.14000a030
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov rdx, rdi
lea rcx, str.Cant_read__s:__s
mov r8, rax
call fcn.14004d0e0
call fcn.140032d20
cmp dword [0x140164120], 0
je 0x14002d611
xor edx, edx
mov rcx, rdi
call fcn.1400290a0
cmp dword [0x140164124], 0
jne 0x14002d61a
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [0x140164124], 0
je 0x14002d63e
cmp dword [0x140164128], 0
je 0x14002d62c
xor edx, edx
xor ecx, ecx
call fcn.14002ad30
xor edx, edx
xor ecx, ecx
call fcn.14002aab0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor ecx, ecx
call fcn.14002ca70
call fcn.140032bd0
lea rcx, [0x14002bb30]
call fcn.140036a60
mov rcx, qword [0x140158148]
xor edx, edx
call fcn.14001b2b0
call fcn.140044e20
call fcn.140032bd0
xor eax, eax
add rsp, 0x60
pop r14
pop rdi
pop rbx
ret
mov rax, qword [r14]
lea rcx, [0x1401129a0]
test rax, rax
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x88], rsi
mov rbx, 0xffffffffffffffff
cmovne rcx, rax
inc rbx
cmp byte [rcx + rbx], 0
jne 0x14002d6a1
mov rcx, qword [0x140151a08]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14002d6c0
mov rcx, qword [str.usage:__s__switches__name.fl_n__u_:_update_.fl_file_and_exit__may_be_combined_with__c_or__cs__n__c_:_write_.cxx_and_.h_and_exit_n__cs_:_write_.cxx_and_.h_and_strings_and_exit_n__o__name__:_.cxx_output_filename__or_extension_if__name__starts_with_._n__h__name__:_.h_output_filename__or_extension_if__name__starts_with_._n__d_:_enable_internal_debugging_n]
add ebx, eax
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14002d6e0
lea rdx, str.commandline
add ebx, eax
lea rcx, [rsp + 0x40]
call fcn.140045250
lea rcx, [rsp + 0x40]
call fcn.140046390
xor esi, esi
mov ebp, eax
mov edi, esi
test eax, eax
jle 0x14002d742
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.1400463c0
test rax, rax
je 0x14002d73c
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], sil
jne 0x14002d731
add ebx, ecx
inc edi
cmp edi, ebp
jl 0x14002d710
lea eax, [rbx + 1]
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [r14]
mov rcx, rax
mov rdx, qword [str.usage:__s__switches__name.fl_n__u_:_update_.fl_file_and_exit__may_be_combined_with__c_or__cs__n__c_:_write_.cxx_and_.h_and_exit_n__cs_:_write_.cxx_and_.h_and_strings_and_exit_n__o__name__:_.cxx_output_filename__or_extension_if__name__starts_with_._n__h__name__:_.h_output_filename__or_extension_if__name__starts_with_._n__d_:_enable_internal_debugging_n]
mov rbx, rax
call fcn.14000a080
test ebp, ebp
jle 0x14002d7b6
nop word [rax + rax]
mov edx, esi
lea rcx, [rsp + 0x40]
call fcn.1400463c0
test rax, rax
je 0x14002d7b0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
mov r8, rax
lea rcx, [rbx - 1]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14002d791
xor edx, edx
nop dword [rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14002d7a0
inc esi
cmp esi, ebp
jl 0x14002d770
mov rsi, qword [rsp + 0x88]
lea rcx, [rbx - 1]
mov rbp, qword [rsp + 0x80]
nop word [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14002d7d0
mov r8, qword [0x140151a08]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14002d7f0
mov rdx, rbx
lea rcx, [0x14010148c]
call fcn.14004d0e0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rsp + 0x40]
call fcn.140045600
mov eax, 1
add rsp, 0x60
pop r14
pop rdi
pop rbx
ret
push rbp
push r12
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
movsxd rcx, dword [rax]
lea rcx, [rcx*8 + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
xor ebp, ebp
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp dword [rax], ebp
jle 0x1400fd4b0
mov qword [rsp + 0x40], rbx
xor ebx, ebx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x20], r15
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv]
xor esi, esi
cmp qword [rax], rsi
je 0x1400fd3c1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv]
mov rcx, qword [rax]
cmp qword [rbx + rcx], rsi
je 0x1400fd38a
xor edi, edi
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv]
mov rcx, qword [rax]
mov rax, qword [rcx + rbx]
cmp word [rdi + rax], 0
je 0x1400fd38a
inc esi
add rdi, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv]
mov rcx, qword [rax]
cmp qword [rbx + rcx], 0
jne 0x1400fd360
lea edi, [rsi*4 + 1]
add edi, esi
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx + r12], rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv]
mov rcx, qword [rbx + r12]
mov r9d, esi
mov edx, edi
mov r8, qword [rax]
mov r8, qword [rbx + r8]
call fcn.140042740
mov ecx, eax
jmp 0x1400fd47b
xor edi, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov rcx, qword [rax]
cmp qword [rbx + rcx], rsi
je 0x1400fd3fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov rcx, qword [rax]
mov rax, qword [rcx + rbx]
cmp byte [rdi + rax], 0
je 0x1400fd3fa
inc esi
inc rdi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov rcx, qword [rax]
cmp qword [rbx + rcx], 0
jne 0x1400fd3d2
lea ecx, [rsi*4 + 1]
add ecx, esi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov qword [rbx + r12], rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov rcx, qword [rax]
mov r15, qword [rbx + rcx]
test r15, r15
jne 0x1400fd426
xor edi, edi
jmp 0x1400fd478
lea eax, [rsi + 1]
lea edi, [rax + rax*2]
add edi, edi
mov ecx, edi
add rcx, rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movsxd r8, esi
mov rdx, r15
mov rcx, rax
mov qword [0x14016e0f0], rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov r8, qword [0x14016e0f0]
mov edx, edi
mov r9d, eax
mov rcx, r14
call fcn.140042740
mov rcx, qword [0x14016e0f0]
movsxd rdi, eax
mov byte [rdi + r14], 0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movsxd rcx, edi
mov rax, qword [rbx + r12]
inc ebp
add rbx, 8
mov byte [rcx + rax], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp ebp, dword [rax]
jl 0x1400fd340
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
movsxd rcx, dword [rax]
mov qword [r12 + rcx*8], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov rdx, r12
mov ecx, dword [rax]
add rsp, 0x28
pop r12
pop rbp
jmp 0x14002d430