Function at 0x14004a920
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, 0x4d8
mov rsi, rcx
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
lea rax, [0x1400bb530]
mov qword [rcx], rax
lea r12, [rcx + 0x10]
mov rax, qword [rcx + 0x10]
movsxd rcx, dword [rax + 4]
test byte [rsi + rcx + 0x30], 5
jne 0x14004ab59
mov rcx, qword [r12 + rcx + 0x28]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 0x10
lea rbx, [rsp + 0xc0]
mov rdx, rbx
xor r8d, r8d
mov r9d, 1
call qword [rax + 0x18]
mov r13, qword [rbx + 8]
mov rax, qword [r12]
movsxd rcx, dword [rax + 4]
add rcx, r12
lea rdi, [rsp + 0xc0]
mov rdx, rdi
call fcn.140005fc0
lea rdx, [0x1400e2f98]
mov rcx, rdi
call fcn.140021e80
mov rbp, qword [rax]
mov rcx, rax
mov dl, 0xa
call qword [rbp + 0x38]
mov ebx, eax
mov rcx, rdi
call fcn.140008d30
mov rcx, r12
mov edx, ebx
call fcn.1400069f0
mov rcx, r12
call fcn.140005eb0
lea r14, [rsi + 0x18]
lea rbx, [rsp + 0xa0]
mov rcx, r14
mov rdx, rbx
call fcn.1400047a0
test byte [0x1400e0af0], 0x19
jne 0x14004ab74
mov rax, qword [0x1400e47a8]
test rax, rax
je 0x14004aa3c
mov r9, qword [rsi + 0x118]
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov ecx, dword [rsi + 8]
mov qword [rsp + 0x20], rbx
call rax
test al, al
jne 0x14004ad76
mov eax, dword [0x1400e0608]
test al, 2
jne 0x14004ad07
test al, 4
jne 0x14004ab0d
cmp eax, 1
ja 0x14004aa61
cmp dword [rsi + 8], 2
jge 0x14004ab0d
test al, 1
jne 0x14004ad2d
cmp dword [rsi + 8], 3
je 0x14004aca2
lea rbp, [rsp + 0xa0]
cmp byte [rbp + 0x17], 0
jns 0x14004aa8e
mov rcx, qword [rsp + 0xa0]
call fcn.140089d80
lea rcx, [rsi + 0x138]
call fcn.140056a60
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x1400b6578]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x1400b6510]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
lea rsi, [rsi + 0x80]
jns 0x14004aad0
mov rcx, qword [r12 + 0x48]
call fcn.140089d80
mov rcx, r14
call fcn.140005ab0
mov rcx, r14
call fcn.140004e20
mov rcx, rsi
call fcn.140005aa0
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.14008a0f0
nop
add rsp, 0x4d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 2
call fcn.14008e2e8
lea rcx, [rsp + 0xa0]
movzx edx, byte [rcx + 0x17]
test dl, dl
cmovs rdx, qword [rcx + 8]
cmovs rcx, qword [rcx]
mov r8d, 1
mov r9, rax
call fcn.1400a0104
mov ecx, 2
call fcn.14008e2e8
mov rcx, rax
call fcn.14009fdb0
mov eax, dword [0x1400e0608]
jmp 0x14004aa61
movaps xmm0, xmmword [0x1400b6420]
movaps xmmword [rsp + 0xc0], xmm0
mov r13, 0xffffffffffffffff
jmp 0x14004a998
movzx eax, byte [rsp + 0xb7]
test al, al
mov rcx, qword [rsp + 0xa0]
cmovns rcx, rbx
cmovs rax, qword [rsp + 0xa8]
lea rdx, [rsp + 0x80]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov r8, qword [rsi + 0x118]
lea r15, [rsp + 0x90]
mov rcx, r15
mov r9, 0xffffffffffffffff
call fcn.14003d960
mov ecx, 0x30
call fcn.140089d30
mov rdi, rax
mov r9d, dword [rsi + 0x128]
movups xmm0, xmmword [r15]
lea r15, [rsp + 0xc0]
movaps xmmword [r15], xmm0
mov rdx, qword [rsi + 0x120]
mov rcx, rax
mov r8, r15
call fcn.14005fdd0
call sub.KERNEL32.dll_GetCurrentThreadId
mov ebp, eax
lea rcx, [rsp + 0xb8]
call fcn.140047740
mov word [r15], 0x801
lea rax, str.message
mov qword [r15 + 8], rax
mov qword [r15 + 0x18], rdi
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebp
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0x8008
lea rdx, [0x1400e0af0]
lea r8, str.LogMessage
mov cl, 0x49
xor r9d, r9d
call fcn.14005b9a0
mov al, byte [r15]
test al, al
je 0x14004aa09
xor edi, edi
cmp byte [rsp + rdi + 0xc1], 8
jne 0x14004ac92
mov rcx, qword [rsp + rdi*8 + 0xd8]
test rcx, rcx
je 0x14004ac92
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov al, byte [rsp + 0xc0]
inc rdi
movzx ecx, al
cmp rdi, rcx
jb 0x14004ac6a
jmp 0x14004aa09
mov rcx, qword [0x1400e47f0]
lea rbp, [rsp + 0xa0]
test rcx, rcx
je 0x14004acda
movzx eax, byte [rbp + 0x17]
test al, al
mov rbx, qword [rbp]
cmovns rbx, rbp
lea rdx, [rsp + 0x70]
mov qword [rdx], rbx
cmovs rax, qword [rbp + 8]
mov qword [rdx + 8], rax
call fcn.14004bf30
mov dword [rsp + 0xc0], 0xbedead01
mov dword [rsp + 0x4c4], 0x5050dead
cmp byte [rbp + 0x17], 0
jns 0x14004ad89
mov rdx, qword [rsp + 0xa0]
jmp 0x14004ad91
cmp byte [rsp + 0xb7], 0
jns 0x14004ad19
mov rbx, qword [rsp + 0xa0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400e0608]
jmp 0x14004aa4a
call fcn.14004a140
test al, al
je 0x14004aa69
lea rdx, [rsp + 0xa0]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x1400e47c0]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14004aa69
cmp byte [rsp + 0xb7], 0
jns 0x14004aa8e
jmp 0x14004aa81
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xc4]
mov r8d, 0x400
call fcn.14003d130
lea rcx, [rsp + 0xc0]
call fcn.140004e20
mov eax, dword [0x1400e47e8]
mov ecx, dword [0x1400e4628]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14004ae04
lea rcx, [0x1400e47e8]
call fcn.140089ea0
cmp dword [0x1400e47e8], 0xffffffff
jne 0x14004ae04
xorps xmm0, xmm0
movups xmmword [0x1400e47d8], xmm0
movups xmmword [0x1400e47c8], xmm0
lea rcx, [0x1400e47e8]
call fcn.140089f38
mov rax, qword [0x1400e47d8]
cmp rax, qword [0x1400e47e0]
je 0x14004af2b
mov eax, dword [0x1400e47e8]
mov ecx, dword [0x1400e4628]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14004ae6b
lea rcx, [0x1400e47e8]
call fcn.140089ea0
cmp dword [0x1400e47e8], 0xffffffff
jne 0x14004ae6b
xorps xmm0, xmm0
movups xmmword [0x1400e47d8], xmm0
movups xmmword [0x1400e47c8], xmm0
lea rcx, [0x1400e47e8]
call fcn.140089f38
mov rdx, qword [0x1400e47e0]
test rdx, rdx
mov rax, qword [0x1400e47d0]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x14004af2e
shl rdx, 3
add rdx, qword [0x1400e47c8]
lea rdi, [rsp + 0x90]
mov rcx, rdi
call fcn.14003c650
mov rbx, qword [rdi]
test rbx, rbx
je 0x14004af15
cmp byte [rbp + 0x17], 0
jns 0x14004aebf
mov rdi, qword [rsp + 0xa0]
jmp 0x14004aec7
lea rdi, [rsp + 0xa0]
lea rcx, [rdi + r13]
mov qword [rsp + 0x60], rcx
test rdi, rdi
je 0x14004af27
call fcn.1400a1cb0
lea rcx, [rsp + 0x60]
mov qword [rcx + 8], rax
mov rax, qword [rsi + 0x118]
sub r13, rax
add rdi, rax
lea r9, [rsp + 0x50]
mov qword [r9], rdi
mov qword [r9 + 8], r13
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [rbx + 8]
lea rcx, [rsp + 0x90]
call fcn.14003c630
jmp 0x14004aa7b
xor eax, eax
jmp 0x14004aeda
int3
int3