Function at 0x140007880
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call fcn.140014bc0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140007aab
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0xf8]
call fcn.14000b580
test eax, eax
je 0x1400078cd
jmp 0x140007893
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x24]
and eax, 0x20
test eax, eax
je 0x1400078fb
mov rcx, qword [rsp + 0x28]
call fcn.14001d9a0
mov rdx, rax
lea rcx, str.copy__s
call fcn.140005dd0
test eax, eax
jne 0x1400078fb
jmp 0x140007893
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x20], 1
jle 0x14000793f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, [0x140107d0c]
mov rcx, rax
call fcn.140005670
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call fcn.140006040
jmp 0x14000797b
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x20], 0
jle 0x14000797b
mov rcx, qword [rsp + 0x28]
call fcn.14001d9a0
mov qword [rsp + 0x30], rax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, qword [rsp + 0x30]
mov r8, rcx
lea rdx, [0x140107d10]
mov rcx, rax
call fcn.140005670
call fcn.140001000
test eax, eax
je 0x14000799b
xor r9d, r9d
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140008150
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
call fcn.140014ce0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140007a25
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x20], 0
jne 0x1400079f4
mov rcx, qword [rsp + 0x68]
call fcn.14000a7b0
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x28]
call fcn.14001d9a0
mov rcx, qword [rsp + 0x38]
mov r9, rcx
mov r8, rax
lea rdx, [0x140107d18]
xor ecx, ecx
call fcn.140009450
jmp 0x140007a25
mov rcx, qword [rsp + 0x68]
call fcn.14000a7b0
mov qword [rsp + 0x40], rax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, qword [rsp + 0x40]
mov r8, rcx
lea rdx, [0x140107d20]
mov rcx, rax
call fcn.140003170
cmp dword [rsp + 0x20], 0xffffffe2
jne 0x140007a37
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
cmp dword [rsp + 0x20], 0xffffffec
jl 0x140007a81
mov rcx, qword [rsp + 0x28]
call fcn.14001dca0
test rax, rax
jne 0x140007a59
mov rcx, qword [rsp + 0x70]
call fcn.140011270
jmp 0x140007a81
mov r9, qword [rsp + 0x28]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140007e00
test eax, eax
je 0x140007a81
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x20], 0
je 0x140007aa6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, [0x140107d28]
mov rcx, rax
call fcn.140003170
jmp 0x140007893
cmp dword [rsp + 0x20], 1
jne 0x140007abc
mov dword [rsp + 0x24], 0
jmp 0x140007ac4
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
add rsp, 0x58
ret