Function at 0x1400493e0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov r12, rcx
mov rax, qword [0x140134028]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea rax, [0x14011afa0]
mov qword [rcx], rax
lea rsi, [rcx + 0x10]
lea r14, [rcx + 0x18]
lea rdi, [rsp + 0x90]
mov rcx, r14
mov rdx, rdi
call fcn.14003a7b0
movzx eax, byte [rdi + 0x17]
mov r13d, eax
and r13d, 0x7f
test al, al
jns 0x140049444
mov r13, qword [rsp + 0x98]
jns 0x140049453
mov rcx, qword [rsp + 0x90]
call fcn.1400871a0
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
lea r15, [rsp + 0x90]
mov rdx, r15
call fcn.140069430
lea rdx, [0x140145228]
mov rcx, r15
call fcn.1400696c0
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, rdi
call qword [0x140158008]
mov ebx, eax
mov rcx, r15
call fcn.140069540
mov rcx, rsi
mov edx, ebx
call fcn.14003a510
mov rcx, rsi
call fcn.1400398c0
movabs rbp, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x10], rbp
movaps xmm0, xmmword [0x14011b1d0]
movaps xmmword [rbx], xmm0
mov rcx, r14
mov rdx, rbx
call fcn.14003a7b0
test byte [0x1401364d0], 0x19
jne 0x140049644
cmp dword [r12 + 8], 3
je 0x140049664
mov rax, qword [0x140146028]
test rax, rax
je 0x140049526
mov r9, qword [r12 + 0x118]
mov r8d, dword [r12 + 0x128]
mov rdx, qword [r12 + 0x120]
mov ecx, dword [r12 + 8]
mov qword [rsp + 0x20], rbx
call qword [0x140158008]
test al, al
jne 0x140049561
mov eax, dword [0x140135f58]
test al, 2
jne 0x140049707
test al, 4
jne 0x1400495f3
cmp dword [r12 + 8], 2
jl 0x14004954d
cmp eax, 1
jbe 0x1400495f3
test al, 1
jne 0x140049727
cmp dword [r12 + 8], 3
je 0x140049779
cmp byte [rsp + 0x77], 0
jns 0x140049572
mov rcx, qword [rsp + 0x60]
call fcn.1400871a0
lea rcx, [r12 + 0x12c]
call fcn.140074f80
mov rax, qword [r12 + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x14011ae98]
mov qword [r12 + rax + 0x10], rcx
lea rax, [0x14011aea0]
mov qword [r12 + 0x18], rax
cmp byte [r12 + 0x6f], 0
jns 0x1400495b2
mov rcx, qword [r12 + 0x58]
call fcn.1400871a0
sub r12, 0xffffffffffffff80
mov rcx, r14
call fcn.140065d40
mov rcx, r14
call fcn.140066290
mov rcx, r12
call fcn.140065d30
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1400884b0
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdi, [rsp + 0x60]
movzx ecx, byte [rdi + 0x17]
mov ebx, ecx
and ebx, 0x7f
test cl, cl
cmovs rbx, qword [rdi + 8]
cmovs rdi, qword [rdi]
test rbx, rbx
je 0x14004954d
xor esi, esi
mov r8d, ebx
sub r8d, esi
lea rdx, [rdi + rsi]
mov ecx, 2
call fcn.14009f5a4
test eax, eax
js 0x140049639
mov eax, eax
add rsi, rax
cmp rbx, rsi
ja 0x140049617
mov eax, dword [0x140135f58]
jmp 0x14004954d
lea rdx, [rsp + 0x90]
mov qword [rdx], r12
mov qword [rdx + 8], rbx
lea rcx, str.LogMessage
call fcn.1400d8400
jmp 0x1400494e2
cmp byte [0x140146074], 0
jne 0x1400494ee
mov byte [0x140146074], 1
mov eax, dword [0x140146080]
mov ecx, dword [0x1401434ec]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400498cd
mov rcx, r12
mov rdx, r15
call fcn.1400d85e0
movzx eax, byte [rsp + 0xa7]
mov ecx, eax
and ecx, 0x7f
test al, al
cmovs r15, qword [rsp + 0x90]
cmovs rcx, qword [rsp + 0x98]
lea rdx, [rsp + 0x80]
mov qword [rdx], r15
mov qword [rdx + 8], rcx
mov rcx, qword [0x140146078]
call fcn.140075380
cmp byte [rsp + 0xa7], 0
jns 0x1400496fb
mov rcx, qword [rsp + 0x90]
call fcn.1400871a0
mov byte [0x140146074], 0
jmp 0x1400494ee
cmp byte [rsp + 0x77], 0
jns 0x140049713
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140135f58]
jmp 0x140049534
call fcn.1400d8110
test al, al
je 0x140049555
lea r9, [rsp + 0x90]
mov dword [r9], 0xaaaaaaaa
lea rdx, [rsp + 0x60]
movzx eax, byte [rdx + 0x17]
mov r8d, eax
and r8d, 0x7f
test al, al
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x140146040]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140049555
mov rcx, qword [0x140146690]
test rcx, rcx
je 0x1400497b2
lea rax, [rsp + 0x60]
movzx edx, byte [rax + 0x17]
mov ebx, edx
and ebx, 0x7f
test dl, dl
mov rdi, qword [rax]
cmovns rdi, rax
lea rdx, [rsp + 0x50]
mov qword [rdx], rdi
cmovs rbx, qword [rax + 8]
mov qword [rdx + 8], rbx
call fcn.1400deef0
lea rdi, [rsp + 0x90]
mov r8d, 0x400
mov rcx, rdi
mov dl, 0xaa
call fcn.14008a5d0
cmp byte [rsp + 0x77], 0
jns 0x1400497d8
mov rdx, qword [rsp + 0x60]
jmp 0x1400497dd
lea rdx, [rsp + 0x60]
mov r8d, 0x400
mov rcx, rdi
call fcn.14006f950
mov rcx, rdi
call fcn.140066290
call fcn.1400d8390
mov rcx, qword [rax + 0x10]
cmp rcx, qword [rax + 0x18]
je 0x14004990f
mov qword [rsp + 0x80], rbp
call fcn.1400d8390
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0x18]
test rdx, rdx
cmove rdx, rcx
dec rdx
cmp rcx, rdx
jb 0x140049912
shl rdx, 3
add rdx, qword [rax]
lea rsi, [rsp + 0x80]
mov rcx, rsi
call fcn.14006af50
mov rdi, qword [rsi]
test rdi, rdi
je 0x1400498bb
cmp byte [rsp + 0x77], 0
jns 0x14004985b
mov rsi, qword [rsp + 0x60]
jmp 0x140049860
lea rsi, [rsp + 0x60]
mov rcx, rsi
add rcx, r13
mov qword [rsp + 0x40], rcx
je 0x140049915
call fcn.1400a9680
lea rcx, [rsp + 0x40]
mov qword [rcx + 8], rax
mov rax, qword [r12 + 0x118]
sub r13, rax
add rsi, rax
lea r9, [rsp + 0x30]
mov qword [r9], rsi
mov qword [r9 + 8], r13
mov r8d, dword [r12 + 0x128]
mov rdx, qword [r12 + 0x120]
mov rax, qword [rdi + 8]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call qword [0x140158008]
lea rcx, [rsp + 0x80]
call fcn.14006af30
jmp 0x140049561
lea rcx, [0x140146080]
call fcn.1400872c0
cmp dword [0x140146080], 0xffffffff
jne 0x14004969d
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.140051bb0
mov qword [0x140146078], rax
lea rcx, [0x140146080]
call fcn.140087358
jmp 0x14004969d
int3
int3
int3