Function at 0x140059d70
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 [0x1400ce568]
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 [0x1400d13f0]
mov rax, qword gs:[0x58]
mov edx, 0xa64
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x1400d0c50], eax
jg 0x14005a082
mov r8b, 1
lea rdx, [0x1400d0c40]
lea rcx, [rsp + 0x68]
call fcn.14005d4e0
xor r15d, r15d
mov dword [rsp + 0x50], r15d
mov ecx, r14d
sub ecx, 1
je 0x140059e14
sub ecx, 1
je 0x140059e0d
sub ecx, 1
je 0x140059e06
cmp ecx, 1
jne 0x140059e1e
lea eax, [rcx + 0x43]
jmp 0x140059e19
mov eax, 0x49
jmp 0x140059e19
mov eax, 0x57
jmp 0x140059e19
mov eax, 0x45
mov word [rsp + 0x50], ax
mov edx, 9
lea rcx, [rsp + 0x78]
call fcn.140086024
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, [0x1400a64f0]
mov ebp, 0x2000
mov r8, 0xffffffffffffffff
mov edx, ebp
mov rcx, rsi
call fcn.14005a3e0
movsxd rcx, eax
lea rdi, [rsi + rcx*2]
mov r12d, ebp
sub r12d, ecx
movsxd rbx, r12d
call fcn.1400049b0
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.14007abc0
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 0x140059f1b
movsxd rdx, r12d
mov r8, rbx
mov rcx, r10
cmp byte [rsi + 0x4007], r15b
je 0x140059f0f
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r13
lea r9, [0x1400a6530]
call fcn.14005a3e0
jmp 0x140059f1b
lea r9, [0x1400baad4]
call fcn.14005a3e0
cmp byte [rsi + 0x4005], r15b
je 0x140059f42
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, 2
call fcn.14007f24c
mov rcx, rax
mov rdx, rsi
call fcn.14005a450
cmp byte [rsi + 0x4004], r15b
je 0x140059f72
mov rcx, qword [rsi + 0x4030]
test rcx, rcx
je 0x140059f72
mov r8, rsi
lea rdx, [0x14009f600]
call fcn.14005a4a0
mov rcx, qword [rsi + 0x4030]
call fcn.14007e6c0
cmp r14d, dword [rsi + 0x4000]
jg 0x14005a054
inc dword [rsi + 0x400c]
mov eax, dword [rsi + 0x400c]
cmp eax, dword [rsi + 0x4008]
jge 0x14005a028
cmp byte [rsi + 0x4007], r15b
je 0x140059fc2
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [0x1400a6548]
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14005a3e0
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.140008260
sub ebp, eax
test ebp, ebp
jle 0x14005a03f
cmp byte [rsi + 0x4007], 0
je 0x14005a03f
movsxd rdx, ebp
cdqe
lea rcx, [rbx + rax*2]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r13
lea r9, [0x1400a6530]
mov r8, r15
call fcn.14005a3e0
jmp 0x14005a03f
jne 0x14005a054
lea r9, str.:K._f
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14005a3e0
mov qword [rsp + 0x58], rsi
lea r8, [rsp + 0x58]
mov edx, r14d
mov rcx, rsi
call fcn.14005a330
lea rcx, [rsp + 0x68]
call fcn.14005d5a0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14006fd90
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rcx, [0x1400d0c50]
call fcn.140070704
cmp dword [0x1400d0c50], 0xffffffff
jne 0x140059dce
lea rcx, [0x1400d0c40]
call fcn.14003d754
lea rcx, [0x14009d8c0]
call fcn.14007007c
nop
lea rcx, [0x1400d0c50]
call fcn.1400706a4
jmp 0x140059dce