Function at 0x1400d0c20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x20]
mov rsi, r8
mov rdi, rcx
xor r8d, r8d
mov rcx, rbp
call fcn.1400d0920
test rsi, rsi
mov rbx, rax
lea rax, str._NULL__message
cmove rsi, rax
test rdi, rdi
je 0x1400d0cb8
mov rdx, rbx
mov ecx, 0xa
call sub.msvcrt.dll_fputc
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_fputs
mov rdx, rbx
mov ecx, 0x2d
call sub.msvcrt.dll_fputc
mov rdx, rbx
mov rcx, rbp
call sub.msvcrt.dll_fputs
mov r9, rbx
mov r8d, 2
mov edx, 1
lea rcx, [0x14039c27a]
call sub.msvcrt.dll_fwrite
mov rdx, rbx
mov rcx, rsi
call sub.msvcrt.dll_fputs
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r9, rbx
mov r8d, 4
mov edx, 1
lea rcx, str._n
call sub.msvcrt.dll_fwrite
jmp 0x1400d0c79
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
mov ebx, edx
test dl, 1
jne 0x1400d2100
lea rax, [0x14039c3dd]
lea rdi, [0x14039c3cc]
mov qword [rsp + 0x40], r8
movq xmm1, rax
movq xmm0, rdi
lea rax, str.MESSAGE
mov qword [rsp + 0x30], 0xffffffffffffffff
mov qword [rsp + 0x38], rax
punpcklqdq xmm0, xmm1
lea rax, str.PRIORITY
mov qword [rsp + 0x50], rax
lea rax, str.37456
mov qword [rsp + 0x48], 0xffffffffffffffff
movaps xmmword [rsp + 0x20], xmm0
test dl, 4
jne 0x1400d1f95
lea rax, [0x14039c3c6]
test dl, 0x18
je 0x1400d20c0
mov qword [rsp + 0x58], rax
mov r12d, 3
mov qword [rsp + 0x60], 0xffffffffffffffff
test rcx, rcx
je 0x1400d1fce
lea rax, str.GLIB_DOMAIN
mov qword [rsp + 0x70], rcx
mov r12d, 4
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], 0xffffffffffffffff
mov rax, qword [0x1404cafa0]
mov r14d, ebx
lea r13, [0x1404cafa0]
and r14d, 0xfffffffd
mov ecx, eax
test eax, eax
jne 0x1400d1ff3
mov rcx, r13
call fcn.1401001a0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rbp, [0x1404cb000]
lea rdi, [0x1400d0ce0]
mov rsi, rax
mov rcx, rbp
call fcn.140341618
lea rax, [0x1400d7060]
mov rcx, rbp
test esi, esi
cmove rdi, rax
lea ebp, [rsi + 1]
call fcn.140341260
mov rax, qword [0x1404cafa0]
mov ecx, eax
test eax, eax
je 0x1400d2088
mov rdx, rbp
mov rbp, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, esi
call rbp
mov ecx, r14d
lea rdx, [rsp + 0x20]
xor r9d, r9d
mov r8, r12
call rdi
mov rax, qword [0x1404cafa0]
mov ecx, eax
test eax, eax
jne 0x1400d206c
mov rcx, r13
call fcn.1401001a0
mov ecx, eax
mov rdx, rsi
call rbp
test bl, 5
jne 0x1400d2098
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, r13
call fcn.1401001a0
mov ecx, eax
jmp 0x1400d2037
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400d2113
and ebx, 1
jne 0x1400d2113
int3
lea rax, [0x14039c3c8]
test dl, 0x20
jne 0x1400d1f95
lea rax, [0x14039c3ca]
test dl, 0x40
jne 0x1400d1f95
test dl, 0x80
lea rax, [0x14039c3c8]
lea rdx, [0x14039c3c4]
cmovne rax, rdx
jmp 0x1400d1f95
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp 0x1400d0c20
call fcn.1400edb70
nop
nop dword [rax]
push rbx
sub rsp, 0x20
mov rax, qword [0x1404cb018]
test rax, rax
je 0x1400d2140
mov rax, qword [0x1404cb020]
add rsp, 0x20
pop rbx
ret
lea rbx, [0x1404cb018]
mov rcx, rbx
call fcn.1400e7370
test eax, eax
je 0x1400d2131
call fcn.1402b6880
xor r8d, r8d
lea rdx, [0x1400d62f0]
lea rcx, str.gmain
mov qword [0x1404cb020], rax
call fcn.1400e5c00
mov edx, 1
mov rcx, rbx
call fcn.1400e6720
mov rax, qword [0x1404cb020]
add rsp, 0x20
pop rbx
ret