Function at 0x14005bf5c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, qword [rcx + 0x10]
mov rdi, rcx
mov rcx, rsi
mov r14, r9
mov rbp, r8
mov r12, rdx
mov eax, dword [rsi + 0x3c]
mov dword [rsp + 0x30], eax
call fcn.14002d02c
mov r13d, dword [rsp + 0xa8]
mov ebx, eax
mov dword [rsp + 0x80], eax
mov r15d, 1
test r13d, r13d
je 0x14005c093
and dword [rsp + 0x20], 0
lea edx, [r15 + 0x2d]
xor r9d, r9d
mov r8d, r13d
mov rcx, rsi
call fcn.14002cef0
mov r15, qword [rsp + 0xb0]
mov r12d, eax
test r15, r15
je 0x14005bfde
inc dword [r15]
mov eax, dword [rbp + 0xc]
lea r9d, [r13 + 1]
mov r8d, dword [rbp + 8]
mov edx, 0x2a
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.14002cef0
mov r9d, 0xfffffffa
mov r8, r15
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.14002d4a4
lea r8d, [rbx + 2]
mov edx, 0x2b
mov ebx, dword [rsp + 0x80]
mov rcx, rsi
mov r9d, ebx
mov dword [rsp + 0x20], r8d
call fcn.14002cef0
mov edx, dword [rsi + 0x3c]
cmp edx, r12d
jbe 0x14005c043
mov rax, qword [rsi + 8]
lea rcx, [r12 + r12*2]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rsi + 0x3c]
lea r9d, [r13 + 1]
mov rax, qword [rsi + 0x30]
mov r15d, 1
sub ecx, r15d
mov dword [rax + 0x64], ecx
lea edx, [r15 + 0x20]
mov eax, dword [rbp + 0xc]
mov rcx, rsi
mov r8d, dword [rbp + 8]
sub eax, r15d
mov dword [rsp + 0x20], eax
call fcn.14002cef0
and dword [rsp + 0x20], 0
lea edx, [r15 + 0x18]
mov r9d, r13d
mov r8d, r15d
mov rcx, rsi
call fcn.14002cef0
mov r12, qword [rsp + 0x88]
mov rax, qword [rdi]
xor r13d, r13d
cmp byte [rax + 0x50], r13b
je 0x14005c0a6
xor eax, eax
jmp 0x14005c303
mov edx, dword [r12 + 0x10]
mov r8d, ebx
mov rcx, rsi
call fcn.14005950c
movzx ecx, byte [r14]
sub ecx, 0xa
je 0x14005c2a6
sub ecx, 1
je 0x14005c212
sub ecx, 1
je 0x14005c15b
sub ecx, 1
je 0x14005c10d
cmp ecx, 1
je 0x14005c15b
mov r9d, dword [rbp + 0xc]
mov edx, 0x23
mov r8d, dword [rbp + 8]
mov rcx, rsi
mov dword [rsp + 0x20], r13d
call fcn.14002cef0
mov r8d, dword [rbp + 0xc]
mov rcx, rdi
mov edx, dword [rbp + 8]
call fcn.14003f34c
jmp 0x14005c2b8
mov r8d, dword [r14 + 8]
test r8d, r8d
jne 0x14005c12f
mov edx, dword [rbp + 0xc]
mov rcx, rdi
call fcn.140041668
mov r8d, eax
mov dword [r14 + 8], eax
mov eax, dword [rbp + 0xc]
mov dword [r14 + 0xc], eax
mov r9d, dword [r14 + 0xc]
mov rcx, rdi
mov edx, dword [rbp + 8]
call fcn.14003f5f0
mov r8d, dword [r14 + 4]
xor r9d, r9d
mov rcx, rsi
mov dword [rsp + 0x20], r13d
lea edx, [r9 + 0x16]
call fcn.14002cef0
jmp 0x14005c2b8
mov al, byte [rdi + 0x1f]
lea rcx, [rdi + 0x54]
test al, al
jne 0x14005c16e
mov ebx, dword [rcx]
inc ebx
mov dword [rcx], ebx
jmp 0x14005c17d
sub al, r15b
movzx edx, al
mov byte [rdi + 0x1f], dl
mov ebx, dword [rdi + rdx*4 + 0x24]
jne 0x14005c185
add dword [rcx], r15d
mov r15d, dword [rcx]
jmp 0x14005c193
sub dl, r15b
movzx eax, dl
mov byte [rdi + 0x1f], al
mov r15d, dword [rdi + rax*4 + 0x24]
mov r9d, dword [rbp + 0xc]
mov edx, 0x31
mov r8d, dword [rbp + 8]
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.14002cef0
mov r8d, dword [r14 + 4]
mov r9d, r15d
mov edx, 0x4a
mov dword [rsp + 0x20], r13d
mov rcx, rsi
call fcn.14002cef0
mov r8d, dword [r14 + 4]
mov r9d, ebx
mov edx, 0x4b
mov dword [rsp + 0x20], r15d
mov rcx, rsi
call fcn.14002cef0
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x14005c1f4
movsxd rax, dword [rsi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 8
mov edx, r15d
mov rcx, rdi
call fcn.140041630
mov edx, ebx
call fcn.140041630
mov ebx, dword [rsp + 0x80]
jmp 0x14005c2b8
mov rax, qword [r12]
lea r15, [r14 + 1]
mov dl, byte [r15]
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
call fcn.14003ca60
mov byte [r15], al
mov al, byte [rdi + 0x1f]
test al, al
jne 0x14005c23b
inc dword [rdi + 0x54]
mov ebx, dword [rdi + 0x54]
jmp 0x14005c247
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov ebx, dword [rdi + rax*4 + 0x24]
mov r8d, dword [rbp + 8]
mov r9d, 1
mov rcx, rsi
mov dword [rsp + 0x20], ebx
lea edx, [r9 + 0x30]
call fcn.14002cef0
mov r9d, 1
mov r8, r15
mov edx, eax
mov rcx, rsi
call fcn.14002d4a4
mov edx, dword [rbp + 8]
mov r8d, 1
mov rcx, rdi
call fcn.14003f34c
mov r8d, dword [r14 + 4]
mov r9d, ebx
mov edx, 0x6e
mov dword [rsp + 0x20], r13d
mov rcx, rsi
call fcn.14002cef0
mov rcx, rdi
jmp 0x14005c1ff
mov r8d, dword [r14 + 4]
mov r9d, r15d
mov edx, dword [rbp + 8]
mov rcx, rdi
call fcn.14003f5f0
mov r8d, dword [r12 + 0xc]
test r8d, r8d
je 0x14005c2dc
or dword [rsp + 0x20], 0xffffffff
mov edx, 0x8b
mov r9d, dword [rsp + 0xb8]
mov rcx, rsi
call fcn.14002cef0
mov edx, ebx
mov rcx, rsi
call fcn.14002d08c
mov r8d, dword [rsp + 0xa0]
xor r9d, r9d
mov dword [rsp + 0x20], r13d
lea edx, [r9 + 0x12]
call fcn.14002cef0
mov eax, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret