Function at 0x14004f020
Capabilities:
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa8
mov rax, qword [0x1400c24b8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r13, r9
mov rdi, r8
mov qword [rsp + 0x58], r8
mov r14d, edx
mov rsi, rcx
mov ecx, dword [0x1400c51e8]
mov rax, qword gs:[0x58]
mov edx, 0xa04
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x1400c49e8], eax
jg 0x14004f332
mov r8b, 1
lea rdx, [0x1400c49d8]
lea rcx, [rsp + 0x68]
call fcn.1400520f0
xor r15d, r15d
mov dword [rsp + 0x50], r15d
mov ecx, r14d
sub ecx, 1
je 0x14004f0c4
sub ecx, 1
je 0x14004f0bd
sub ecx, 1
je 0x14004f0b6
cmp ecx, 1
jne 0x14004f0ce
lea eax, [rcx + 0x43]
jmp 0x14004f0c9
mov eax, 0x49
jmp 0x14004f0c9
mov eax, 0x57
jmp 0x14004f0c9
mov eax, 0x45
mov word [rsp + 0x50], ax
mov edx, 9
lea rcx, [rsp + 0x78]
call fcn.14007aa70
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, str._s_pid__4i__tid__4i___s__s:
mov ebp, 0x2000
mov r8, 0xffffffffffffffff
mov edx, ebp
mov rcx, rsi
call fcn.14004f690
movsxd rcx, eax
lea rdi, [rsi + rcx*2]
mov r12d, ebp
sub r12d, ecx
movsxd rbx, r12d
call fcn.1400048e0
mov rcx, qword [rax]
lea rax, [rsp + 0x120]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x20], rax
mov r9, 0xffffffffffffffff
mov r8, rbx
mov rdx, rdi
call fcn.14006f750
mov ecx, eax
test eax, eax
mov rbx, 0xffffffffffffffff
cmovs ecx, ebx
movsxd rax, ecx
lea r10, [rdi + rax*2]
sub r12d, ecx
mov edi, dword [rsp + 0x110]
test r12d, r12d
jle 0x14004f1cb
movsxd rdx, r12d
mov r8, rbx
mov rcx, r10
cmp byte [rsi + 0x4007], r15b
je 0x14004f1bf
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r13
lea r9, str.___s__i__n
call fcn.14004f690
jmp 0x14004f1cb
lea r9, [0x1400aea64]
call fcn.14004f690
cmp byte [rsi + 0x4005], r15b
je 0x14004f1f2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, 2
call fcn.140073ddc
mov rcx, rax
mov rdx, rsi
call fcn.14004f700
cmp byte [rsi + 0x4004], r15b
je 0x14004f222
mov rcx, qword [rsi + 0x4030]
test rcx, rcx
je 0x14004f222
mov r8, rsi
lea rdx, [0x1400944f0]
call fcn.14004f750
mov rcx, qword [rsi + 0x4030]
call fcn.140073250
cmp r14d, dword [rsi + 0x4000]
jg 0x14004f304
inc dword [rsi + 0x400c]
mov eax, dword [rsi + 0x400c]
cmp eax, dword [rsi + 0x4008]
jge 0x14004f2d8
cmp byte [rsi + 0x4007], r15b
je 0x14004f272
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, str._s:
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14004f690
mov r15d, eax
movsxd rcx, r15d
lea rbx, [rsi + rcx*2]
sub ebp, r15d
lea rax, [rsp + 0x120]
movsxd rdx, ebp
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x118]
mov r15, 0xffffffffffffffff
mov r8, r15
mov rcx, rbx
call fcn.1400048f0
sub ebp, eax
test ebp, ebp
jle 0x14004f2ef
cmp byte [rsi + 0x4007], 0
je 0x14004f2ef
movsxd rdx, ebp
cdqe
lea rcx, [rbx + rax*2]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r13
lea r9, str.___s__i__n
mov r8, r15
call fcn.14004f690
jmp 0x14004f2ef
jne 0x14004f304
lea r9, str.too_many_errors._stop_logging.
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14004f690
mov qword [rsp + 0x58], rsi
lea r8, [rsp + 0x58]
mov edx, r14d
mov rcx, rsi
call fcn.14004f5e0
lea rcx, [rsp + 0x68]
call fcn.1400521b0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140064920
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rcx, [0x1400c49e8]
call fcn.140065294
cmp dword [0x1400c49e8], 0xffffffff
jne 0x14004f07e
lea rcx, [0x1400c49d8]
call fcn.14004e700
lea rcx, [0x140092240]
call fcn.140064c0c
nop
lea rcx, [0x1400c49e8]
call fcn.140065234
jmp 0x14004f07e