Function at 0x140001190
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x90
xor eax, eax
mov ecx, 0xd
lea rdx, [rsp + 0x20]
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdi, qword [0x140004470]
mov r9d, dword [rdi]
test r9d, r9d
jne 0x140001460
mov rax, qword gs:[0x30]
mov rbx, qword [0x1400043b0]
xor ebp, ebp
mov rsi, qword [rax + 8]
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400011f9
cmp rsi, rax
je 0x140001400
mov ecx, 0x3e8
call r12
mov rax, rbp
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011e8
mov rsi, qword [0x1400043c0]
xor ebp, ebp
mov eax, dword [rsi]
cmp eax, 1
je 0x140001417
mov eax, dword [rsi]
test eax, eax
je 0x140001490
mov dword [0x14000701c], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000142c
test ebp, ebp
je 0x14000144d
mov rax, qword [0x140004350]
mov rax, qword [rax]
test rax, rax
je 0x14000125c
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call sym._pei386_runtime_relocator
mov rcx, qword [sym._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400043a0]
lea rcx, [sym.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov rax, qword [0x140004360]
mov qword [0x140007010], rax
call sym.__p__acmdln
xor ecx, ecx
mov rax, qword [rax]
test rax, rax
jne 0x1400012c2
jmp 0x140001300
test dl, dl
je 0x1400012f9
and ecx, 1
je 0x1400012e0
mov ecx, 1
add rax, 1
movzx edx, byte [rax]
cmp dl, 0x20
jle 0x1400012b0
mov r8d, ecx
xor r8d, 1
cmp dl, 0x22
cmove ecx, r8d
jmp 0x1400012be
test dl, dl
je 0x1400012f9
nop dword [rax]
movzx edx, byte [rax + 1]
add rax, 1
test dl, dl
je 0x1400012f9
cmp dl, 0x20
jle 0x1400012e8
mov qword [0x140007008], rax
mov r8d, dword [rdi]
test r8d, r8d
je 0x14000131e
test byte [rsp + 0x5c], 1
mov eax, 0xa
jne 0x1400013f0
mov dword [section..data], eax
mov ebx, dword [0x140007038]
lea r12d, [rbx + 1]
movsxd r12, r12d
shl r12, 3
mov rcx, r12
call sym.malloc
test ebx, ebx
mov rdi, qword [0x140007030]
mov rbp, rax
jle 0x1400014ae
sub r12, 8
xor ebx, ebx
nop
mov rcx, qword [rdi + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [rdi + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rbx, r12
jne 0x140001350
add rbx, rbp
mov qword [rbx], 0
mov qword [0x140007030], rbp
call sym.__main
mov rax, qword [0x140004370]
mov r8, qword [0x140007028]
mov ecx, dword [0x140007038]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140007030]
call sym.main
mov ecx, dword [0x140007020]
mov dword [0x140007024], eax
test ecx, ecx
je 0x1400014b6
mov edx, dword [0x14000701c]
test edx, edx
je 0x140001470
add rsp, 0x90
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
movzx eax, word [rsp + 0x60]
jmp 0x140001318
mov rsi, qword [0x1400043c0]
mov ebp, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x14000121a
mov ecx, 0x1f
call sym._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001239
mov rdx, qword [0x1400043e0]
mov rcx, qword [0x1400043d0]
call sym._initterm
test ebp, ebp
mov dword [rsi], 2
jne 0x140001241
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001241
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
jmp 0x1400011c2
call sym._cexit
mov eax, dword [0x140007024]
add rsp, 0x90
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140004400]
mov dword [rsi], 1
mov rcx, qword [0x1400043f0]
call sym._initterm
jmp 0x14000122e
mov rbx, rax
jmp 0x140001385
mov ecx, eax
call sym.exit
nop
nop