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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x148
movaps xmmword [rsp + 0x130], xmm6
mov eax, 0xffffffff
mov rbx, qword [rcx + 0x10]
mov rsi, qword [rcx]
mov word [rsp + 0x7a], ax
movzx eax, byte [rbx + 0x10]
mov r15, rcx
mov qword [rsp + 0x198], rdx
mov rdx, qword [rsi + 8]
lea rcx, [rax + rax*2]
lea rax, [rax + rcx*4]
lea r13, [rdx + rax*8 + 8]
mov rax, qword [r15 + 8]
movzx ecx, byte [r13 + 0x3d]
mov r11, qword [r13 + 0x20]
mov qword [rsp + 0x38], rax
test cl, 2
je 0x14005ceed
mov rbp, qword [r13 + 0x60]
movzx r14d, word [r11 + 0x3a]
test rbp, rbp
setne r12b
xor eax, eax
cmp qword [r15 + 0x18], 0
je 0x14005cf15
mov dword [rsp + 0x60], 1
test r12b, r12b
je 0x14005cb0d
mov qword [rsp + 0x68], rsi
mov rdi, r13
mov qword [rsp + 0x40], r11
nop word [rax + rax]
mov r9, qword [rbp + 0x48]
test r9, r9
je 0x14005c93a
movzx edx, byte [rdi + 0x3c]
mov ecx, dword [rdi + 0x40]
mov r8, qword [rsp + 0x38]
call fcn.14005c640
test eax, eax
je 0x14005cbe0
movzx r12d, byte [rbp + 0x64]
and r12d, 1
jne 0x14005cbe0
mov rax, qword [rbp + 0x10]
xor r8d, r8d
xor r9d, r9d
movzx r14d, word [rax]
mov rax, qword [rsp + 0x198]
mov word [rbx + 0x1c], r8w
mov dword [rbx + 0x18], 0
mov dword [rbx + 0x34], 0
mov byte [rbx + 0x11], 0
mov word [rbx + 0x12], r9w
mov qword [rbx], rax
mov word [rbx + 0x16], r14w
mov qword [rbx + 0x20], rbp
movzx eax, byte [rbp + 0x63]
mov esi, dword [rdi + 0x40]
test al, 4
jne 0x14005ca48
mov rdx, qword [r15]
mov r8, qword [rdx + 0x10]
test r8, r8
je 0x14005ca48
mov r10d, dword [r8]
lea r13, [r8 + 8]
xor edx, edx
test r10d, r10d
jle 0x14005ca48
mov word [rsp + 0x66], r14w
mov qword [rsp + 0x190], r15
mov byte [rsp + 0x48], r12b
mov r12d, edx
mov qword [rsp + 0x50], rbx
mov rbx, r8
mov qword [rsp + 0x58], rdi
mov rdi, r13
mov r13d, esi
nop dword [rax]
mov rsi, qword [rdi]
test rsi, rsi
je 0x14005ca16
mov eax, dword [rsi + 4]
test eax, 0x82000
je 0x14005cb4b
test eax, 0x80000
je 0x14005cb30
mov rax, qword [rsi + 0x20]
mov rsi, qword [rax + 8]
test rsi, rsi
jne 0x14005c9f0
add r12d, 1
add rdi, 0x18
cmp r12d, r10d
jl 0x14005c9e8
movzx r12d, byte [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
movzx r14d, word [rsp + 0x66]
mov r15, qword [rsp + 0x190]
movzx eax, byte [rbp + 0x63]
nop dword [rax]
mov edx, eax
not edx
and edx, 3
je 0x14005ccaf
xor r13d, r13d
test al, 0x20
je 0x14005cd08
mov dword [rbx + 0x30], 0x240
xor ecx, ecx
mov rax, qword [rsp + 0x40]
test byte [rax + 0x30], 0x80
jne 0x14005ca80
cmp qword [rbp + 0x48], 0
je 0x14005d0be
nop
mov byte [rbx + 0x11], r12b
movsx edx, word [rbp + 0x5c]
mov eax, edx
shl eax, 4
sub eax, edx
mov rdx, qword [rsp + 0x40]
movsx r8d, word [rdx + 0x3c]
cdq
idiv r8d
lea eax, [r14 + rax + 1]
mov word [rbx + 0x14], ax
test rcx, rcx
jne 0x14005cd42
mov rcx, qword [rsp + 0x38]
movsx r8d, r14w
mov rdx, rbx
call fcn.14001c450
test byte [rdi + 0x3c], 0x10
je 0x14005cceb
cmp qword [rbp + 0x50], 0
je 0x14005cceb
mov word [rbx + 0x16], r14w
mov byte [r15 + 0x20], 0
xor r9d, r9d
mov r8, rbp
mov rdx, rdi
mov rcx, r15
call fcn.140059990
cmp byte [r15 + 0x20], 1
jne 0x14005cb03
mov rcx, qword [rsp + 0x40]
or dword [rcx + 0x30], 0x100
test byte [rdi + 0x3d], 2
je 0x14005cbec
movaps xmm6, xmmword [rsp + 0x130]
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, qword [rsi + 0x10]
test rsi, rsi
je 0x14005ca16
mov eax, dword [rsi + 4]
test eax, 0x82000
jne 0x14005c9fe
cmp byte [rsi], 0xa7
je 0x14005cc10
mov rax, qword [rbp + 0x50]
test rax, rax
je 0x14005ca16
movzx edx, word [rbp + 0x5e]
test dx, dx
je 0x14005ca16
lea r15, [rax + 8]
xor r14d, r14d
jmp 0x14005cb90
add r14, 1
movzx eax, dx
add r15, 0x18
cmp eax, r14d
jle 0x14005cbc6
mov rax, qword [rbp + 8]
cmp word [rax + r14*2], 0xfffe
jne 0x14005cb80
mov rdx, qword [r15]
mov r8d, r13d
mov rcx, rsi
call fcn.1400590f0
test eax, eax
je 0x14005cc60
movzx edx, word [rbp + 0x5e]
add r14, 1
add r15, 0x18
movzx eax, dx
cmp eax, r14d
jg 0x14005cb90
mov r10d, dword [rbx]
add r12d, 1
add rdi, 0x18
cmp r12d, r10d
jl 0x14005c9e8
jmp 0x14005ca23
xor eax, eax
test byte [rdi + 0x3d], 2
jne 0x14005cb0d
add dword [rsp + 0x60], 1
mov rbp, qword [rbp + 0x28]
test eax, eax
jne 0x14005cb0d
test rbp, rbp
jne 0x14005c918
jmp 0x14005cb0d
cmp r13d, dword [rsi + 0x2c]
jne 0x14005cb54
movzx edx, word [rsi + 0x30]
test dx, dx
js 0x14005cc60
movzx r9d, word [rbp + 0x5e]
test r9w, r9w
je 0x14005ca16
mov rax, qword [rbp + 8]
sub r9d, 1
lea r9, [rax + r9*2 + 2]
jmp 0x14005cc55
add rax, 2
cmp rax, r9
je 0x14005ca16
cmp dx, word [rax]
jne 0x14005cc48
nop word [rax + rax]
movzx eax, byte [rbp + 0x63]
movzx r12d, byte [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov edx, eax
movzx r14d, word [rsp + 0x66]
mov r15, qword [rsp + 0x190]
not edx
and edx, 3
je 0x14005cca9
mov r13d, 1
test al, 0x20
je 0x14005cd08
mov dword [rbx + 0x30], 0x240
xor ecx, ecx
movzx r12d, byte [rsp + 0x60]
jmp 0x14005ca80
movzx r12d, byte [rsp + 0x60]
lea eax, [r14 + 0x10]
mov dword [rbx + 0x30], 0x100
mov word [rbx + 0x14], ax
mov rax, qword [rsp + 0x40]
mov byte [rbx + 0x11], r12b
cmp byte [rax + 0x3f], 2
je 0x14005ccd3
test byte [rax + 0x31], 0x40
je 0x14005ccda
mov dword [rbx + 0x30], 0x2000100
mov rcx, qword [rsp + 0x38]
movsx r8d, r14w
mov rdx, rbx
call fcn.14001c450
mov rdx, rbx
mov rcx, r15
call fcn.1400297e0
mov word [rbx + 0x16], r14w
test eax, eax
je 0x14005cada
jmp 0x14005cb0d
movabs rax, 0x8000000000000000
mov rcx, qword [rdi + 0x50]
and rcx, qword [rbp + 0x68]
cmp rcx, rax
je 0x14005ced1
cmp rcx, 1
sbb eax, eax
and eax, 0x40
add eax, 0x200
mov dword [rbx + 0x30], eax
test r13d, r13d
jne 0x14005cc9e
jmp 0x14005ca69
mov rdx, qword [rsp + 0x68]
mov r11d, dword [rdi + 0x40]
lea r12d, [r14 + 0x10]
mov ecx, dword [rdx + 0x7c]
test ecx, ecx
jle 0x14005ce5f
xor r8d, r8d
xor r9d, r9d
mov qword [rsp + 0x50], rbx
pxor xmm6, xmm6
lea r10, [rsp + 0x80]
mov qword [rsp + 0x58], rdi
lea rcx, [rsp + 0x90]
mov rdi, rdx
mov word [rsp + 0x66], r14w
mov ebx, r9d
mov r14, rbp
mov r13, r8
mov qword [rsp + 0x190], r15
mov ebp, r11d
mov r15, r10
jmp 0x14005cdc1
lea eax, [r12 - 1]
sub r12d, 0x14
test byte [rsi + 0x14], 0x82
cmove r12d, eax
add ebx, 1
add r13, 0x38
cmp dword [rdi + 0x7c], ebx
jle 0x14005ce40
mov rsi, qword [rdi + 0x88]
lea rax, [0x140008410]
add rsi, r13
mov rdx, qword [rsi]
mov qword [rcx + 0x20], 0
movaps xmmword [rcx], xmm6
movaps xmmword [rcx + 0x10], xmm6
mov dword [rsp + 0x88], ebp
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xb8], r15
test rdx, rdx
je 0x14005ce22
mov qword [rsp + 0x48], rcx
call fcn.14001d770
mov rcx, qword [rsp + 0x48]
cmp word [rsp + 0xb4], 0
jne 0x14005ce40
movzx eax, word [rsi + 0x10]
test ax, ax
jg 0x14005cda0
add r12d, eax
add ebx, 1
add r13, 0x38
cmp dword [rdi + 0x7c], ebx
jg 0x14005cdc1
nop
mov rbx, qword [rsp + 0x50]
mov rbp, r14
mov rdi, qword [rsp + 0x58]
movzx r14d, word [rsp + 0x66]
mov r15, qword [rsp + 0x190]
movzx eax, word [rbx + 0x14]
movsx edx, r12w
movsx ecx, ax
cmp r12w, ax
jg 0x14005cea1
lea r8d, [rdx + 0x31]
mov r12d, eax
cmp r8d, ecx
jl 0x14005ce97
lea eax, [rdx + 0x1f]
cmp eax, ecx
jl 0x14005d0b0
mov eax, ecx
sub eax, edx
lea rdx, str._n_n_t_t_b_b_a_a_a
cdqe
movzx eax, byte [rdx + rax]
add r12d, eax
mov word [rbx + 0x14], r12w
jmp 0x14005caaf
lea eax, [rcx + 0x31]
cmp eax, edx
jl 0x14005ce97
lea eax, [rcx + 0x1f]
cmp eax, edx
jl 0x14005d0b0
mov eax, edx
lea rdx, str._n_n_t_t_b_b_a_a_a
sub eax, ecx
cdqe
movzx eax, byte [rdx + rax]
add r12d, eax
mov word [rbx + 0x14], r12w
jmp 0x14005caaf
mov rax, qword [rsp + 0x68]
mov r8d, dword [rdi + 0x40]
mov rdx, rbp
mov rcx, qword [rax + 0x20]
call fcn.14001e270
mov ecx, eax
jmp 0x14005cd23
test byte [r11 + 0x30], 0x80
je 0x14005d140
mov rbp, qword [r11 + 0x10]
movzx r14d, word [r11 + 0x3a]
test rbp, rbp
setne r12b
xor eax, eax
cmp qword [r15 + 0x18], 0
jne 0x14005c8f4
movzx edx, word [rsi + 0x3c]
and dx, 0x1020
jne 0x14005c8f4
mov r9, qword [rsi]
mov r9, qword [r9]
test byte [r9 + 0x31], 0x80
je 0x14005c8f4
test cl, 3
jne 0x14005c8f4
test byte [r11 + 0x30], 0x80
jne 0x14005c8f4
and ecx, 0x48
jne 0x14005c8f4
test byte [r13 + 0x3c], 0x10
jne 0x14005c8f4
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 0x14]
mov rdi, qword [rax + 0x20]
lea rax, [rcx*8]
sub rax, rcx
lea r10, [rdi + rax*8]
xor eax, eax
mov word [rsp + 0x40], ax
cmp r14w, 0xa
jg 0x14005d1dc
cmp rdi, r10
jae 0x14005d1f2
add r14d, edx
mov qword [rsp + 0x48], rsi
movd xmm6, dword [0x1401c05b8]
mov rsi, r10
lea eax, [r14 - 0xa]
mov qword [rsp + 0x50], rbp
mov rbp, r11
mov word [rsp + 0x60], ax
mov eax, r14d
mov r14d, r12d
mov r12d, eax
jmp 0x14005d090
mov rdx, qword [r13 + 0x20]
mov r9d, dword [r13 + 0x40]
mov rcx, rdi
movzx r8d, byte [r13 + 0x3c]
mov qword [rsp + 0x20], 0
call fcn.140011730
mov edx, 1
test eax, eax
je 0x14005d07b
mov rax, qword [rbx + 0x40]
mov r11d, 1
movd dword [rbx + 0x34], xmm6
mov word [rbx + 0x18], r11w
mov qword [rbx + 0x20], 0
mov qword [rax], rdi
mov word [rbx + 0x12], r12w
cmp byte [rbp + 0x3f], 2
je 0x14005d026
lea eax, [r12 + 0x1c]
test byte [rbp + 0x31], 0x40
je 0x14005d02b
movzx eax, word [rsp + 0x60]
xor edx, edx
test ax, ax
mov r10d, 0x2b
movsx ecx, word [rsp + 0x40]
cmovs eax, edx
mov word [rbx + 0x16], r10w
mov edx, 0x2b
mov word [rbx + 0x12], ax
call fcn.140007f70
mov dword [rbx + 0x30], 0x4000
mov rdx, rbx
mov rcx, r15
mov word [rbx + 0x14], ax
mov rax, qword [rsp + 0x198]
or rax, qword [rdi + 0x28]
mov qword [rbx], rax
call fcn.1400297e0
test eax, eax
sete dl
add rdi, 0x38
cmp rdi, rsi
jae 0x14005d1f9
test dl, dl
je 0x14005d1f9
mov rax, qword [rdi + 0x28]
and rax, qword [rbx + 8]
je 0x14005cfc6
mov edx, 1
xor eax, eax
jmp 0x14005d07b
add r12d, 1
mov word [rbx + 0x14], r12w
jmp 0x14005caaf
test byte [rdi + 0x3d], 2
jne 0x14005ca80
test rcx, rcx
jne 0x14005cada
test byte [rbp + 0x63], 4
jne 0x14005cada
movzx eax, word [rax + 0x3c]
cmp word [rbp + 0x5c], ax
jge 0x14005cada
mov rax, qword [rsp + 0x68]
test byte [rax + 0x3c], 4
jne 0x14005cada
cmp byte [0x1401b01c7], 0
je 0x14005cada
mov rax, qword [rax]
mov rax, qword [rax]
test byte [rax + 0x60], 0x20
jne 0x14005cada
mov byte [rbx + 0x11], 0
movsx edx, word [rbp + 0x5c]
mov rcx, qword [rsp + 0x40]
mov eax, edx
shl eax, 4
movsx ecx, word [rcx + 0x3c]
sub eax, edx
cdq
idiv ecx
lea eax, [r14 + rax + 1]
mov word [rbx + 0x14], ax
jmp 0x14005caaf
lea rbp, [rsp + 0xc0]
xor eax, eax
mov ecx, 0xe
mov rdi, rbp
rep stosq qword [rdi], rax
lea rax, [rsp + 0x7a]
mov dword [rsp + 0x11e], 0x10001
movq xmm0, rax
lea rax, [rsp + 0x7c]
mov byte [rsp + 0x122], 5
movq xmm1, rax
movzx eax, word [r11 + 0x3c]
or byte [rsp + 0x123], 3
punpcklqdq xmm0, xmm1
mov qword [rsp + 0xd8], r11
mov word [rsp + 0x11c], ax
movzx r14d, word [r11 + 0x3a]
xor eax, eax
movzx ecx, byte [r13 + 0x3d]
mov word [rsp + 0x7e], ax
mov word [rsp + 0x7c], r14w
movups xmmword [rsp + 0xc8], xmm0
test cl, 1
jne 0x14005d1d1
mov rax, qword [r13 + 0x20]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0xe8], rax
mov r12d, 1
jmp 0x14005c8e7
movsx rcx, r14w
call fcn.140007300
lea edx, [rax - 0x21]
mov word [rsp + 0x40], dx
jmp 0x14005cf8b
xor eax, eax
jmp 0x14005c8f4
mov r12d, r14d
mov r11, rbp
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
and r12d, edx
jmp 0x14005c8f4