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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rsi, qword [rcx + 0x10]
xor ebp, ebp
mov r15d, edx
mov rdi, rcx
test rsi, rsi
jne 0x14006d1e2
call fcn.140041580
mov qword [rdi + 0x10], rax
mov rsi, rax
test rax, rax
je 0x14006d1cc
xor r9d, r9d
mov dword [rsp + 0x20], ebp
xor r8d, r8d
mov edx, 0x99
mov rcx, rax
call fcn.1400416c0
cmp qword [rdi + 0x1c0], rbp
jne 0x14006d1e2
mov rax, qword [rdi]
test byte [rax + 0x4c], 8
jne 0x14006d1e2
mov byte [rdi + 0x23], 1
mov rbx, qword [rsi + 0x30]
mov eax, dword [rdi + 0x50]
dec eax
mov dword [rsp + 0x30], eax
mov edx, dword [rbx + 0x78]
mov dword [rsp + 0x40], edx
lea eax, [rdx + 1]
mov dword [rbx + 0x78], eax
lea eax, [rdx - 1]
test edx, eax
jne 0x14006d22b
mov rcx, qword [rbx]
lea eax, [rdx*2 + 1]
mov rdx, qword [rbx + 0x80]
movsxd r8, eax
shl r8, 2
call fcn.1400223a0
mov edx, dword [rsp + 0x40]
mov qword [rbx + 0x80], rax
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x14006d241
movsxd rax, edx
mov dword [rcx + rax*4], 0xffffffff
mov r13d, edx
mov rbx, qword [rsp + 0xb0]
not r13d
mov dword [rsp + 0x38], r13d
cmp dword [rsp + 0xc8], ebp
jge 0x14006d276
movzx r8d, byte [rbx + 0x2c]
mov r9d, r13d
mov edx, 0x87
mov dword [rsp + 0x20], ebp
mov rcx, rsi
call fcn.1400416c0
mov r14d, dword [rbx + 0x28]
mov r12d, dword [rsp + 0xc0]
mov dword [rsp + 0x34], r14d
test r14d, r14d
jle 0x14006d2dc
mov rbx, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xb0]
nop dword [rax]
lea r8d, [r12 + 1]
mov dword [rsp + 0x20], 0
add r8d, dword [rbx]
mov r9d, r13d
mov edx, 0x4c
mov rcx, rsi
call fcn.1400416c0
mov r14d, dword [rdi + 0x28]
lea rbx, [rbx + 4]
inc ebp
mov dword [rsp + 0x34], r14d
cmp ebp, r14d
jl 0x14006d2a0
mov rdi, qword [rsp + 0x90]
cmp dword [rsp + 0xd0], 0
jne 0x14006d801
mov rbp, qword [rsp + 0xa8]
test rbp, rbp
jne 0x14006d486
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x14006d30b
inc dword [rdi + 0x54]
mov ebx, dword [rdi + 0x54]
jmp 0x14006d317
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov ebx, dword [rdi + rax*4 + 0x24]
mov rax, qword [rsp + 0xb8]
lea r8d, [r12 + 1]
mov r9d, ebx
mov dword [rsp + 0x20], 0
mov edx, 0x22
mov rcx, rsi
mov eax, dword [rax]
add r8d, eax
call fcn.1400416c0
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov r8d, ebx
mov rcx, rsi
lea edx, [r9 + 0x26]
call fcn.1400416c0
mov r14, qword [rsp + 0xa0]
mov ebp, eax
mov rax, qword [rsp + 0xb0]
cmp r14, qword [rax]
jne 0x14006d3a9
cmp dword [rsp + 0xc8], 1
jne 0x14006d3a9
mov r9d, r13d
mov dword [rsp + 0x20], ebx
mov r8d, r12d
mov edx, 0x4f
mov rcx, rsi
call fcn.1400416c0
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x14006d3a9
movsxd rax, dword [rsi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 0x90
mov r9, r14
mov dword [rsp + 0x20], 0x36
mov r14d, dword [rsp + 0x30]
mov r8d, r15d
mov edx, r14d
mov rcx, rdi
call fcn.14006ff30
xor r9d, r9d
mov dword [rsp + 0x20], ebx
mov r8d, r14d
mov rcx, rsi
lea edx, [r9 + 0x46]
call fcn.1400416c0
xor r12d, r12d
mov r9d, r13d
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov rcx, rsi
lea edx, [r12 + 0x10]
call fcn.1400416c0
mov edx, dword [rsi + 0x3c]
lea eax, [rdx - 2]
cmp edx, eax
jbe 0x14006d411
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
lea ecx, [rdx - 1]
mov dword [rax + 0x64], ecx
mov edx, dword [rsi + 0x3c]
cmp edx, ebp
jbe 0x14006d438
mov rax, qword [rsi + 8]
lea rcx, [rbp*2]
add rcx, rbp
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
lea ecx, [rdx - 1]
mov dword [rax + 0x64], ecx
test ebx, ebx
je 0x14006d809
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x14006d809
mov ecx, r12d
lea rax, [rdi + 0x88]
cmp dword [rax + 0xc], ebx
je 0x14006d47d
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x14006d461
mov dword [rdi + rdx*4 + 0x24], ebx
inc byte [rdi + 0x1f]
jmp 0x14006d809
mov byte [rax + 6], 1
jmp 0x14006d809
mov ecx, dword [rdi + 0x44]
mov edx, dword [rdi + 0x48]
mov dword [rsp + 0xd0], edx
cmp r14d, ecx
jg 0x14006d4a7
lea eax, [r14 + rdx]
sub ecx, r14d
mov dword [rdi + 0x48], eax
mov dword [rdi + 0x44], ecx
jmp 0x14006d4ba
mov eax, dword [rdi + 0x54]
lea ecx, [rax + 1]
add eax, r14d
mov dword [rdi + 0x54], eax
mov dword [rsp + 0xd0], ecx
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x14006d4ca
inc dword [rdi + 0x54]
mov eax, dword [rdi + 0x54]
jmp 0x14006d4d6
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov eax, dword [rdi + rax*4 + 0x24]
mov r9d, dword [rbp + 0x50]
mov edx, 0x36
mov r8d, dword [rsp + 0x30]
mov rcx, rsi
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x20], r15d
call fcn.1400416c0
mov rbx, qword [rdi + 0x10]
mov rdx, rbp
mov rcx, rdi
call fcn.140066950
mov r9, qword [rbx]
mov rbp, rax
mov rax, qword [rbx + 8]
test rax, rax
je 0x14006d560
cmp byte [r9 + 0x51], 0
jne 0x14006d560
movsxd rcx, dword [rbx + 0x3c]
lea rdx, [rcx + rcx*2]
mov rcx, r9
mov r8, qword [rax + rdx*8 - 8]
lea rbx, [rax + rdx*8]
movsx edx, byte [rax + rdx*8 - 0x17]
call fcn.140041a40
test rbp, rbp
jne 0x14006d547
mov qword [rbx - 8], rbp
mov byte [rbx - 0x17], bpl
jmp 0x14006d570
mov qword [rbx - 8], rbp
mov byte [rbx - 0x17], 0xfa
jmp 0x14006d570
mov r8, rbp
mov edx, 0xfffffffa
mov rcx, r9
call fcn.140041a40
movsxd r15, r14d
test r14d, r14d
jle 0x14006d5c1
mov ebp, dword [rsp + 0xd0]
xor ebx, ebx
mov r13, qword [rsp + 0xb8]
nop dword [rax]
lea r8d, [r12 + 1]
mov dword [rsp + 0x20], 0
add r8d, dword [r13 + rbx*4]
mov r9d, ebp
mov edx, 0x21
mov rcx, rsi
call fcn.1400416c0
inc ebp
inc rbx
cmp rbx, r15
jl 0x14006d590
mov r13d, dword [rsp + 0x38]
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa0]
cmp rdx, qword [rax]
jne 0x14006d6ee
cmp dword [rsp + 0xc8], 1
jne 0x14006d6ee
mov eax, dword [rsi + 0x3c]
inc eax
add eax, r14d
test r14d, r14d
jle 0x14006d6d1
mov r14, qword [rsp + 0xb8]
xor ebx, ebx
mov edi, eax
nop word [rax + rax]
mov eax, dword [r14 + rbx*4]
lea ebp, [r12 + 1]
movsxd r13, dword [rsi + 0x3c]
inc eax
add eax, r12d
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax + 8]
movsx ecx, word [rax + rbx*2]
mov rax, qword [rsi + 0x30]
add ebp, ecx
cmp cx, word [rdx + 0x40]
mov ecx, r13d
cmove ebp, r12d
cmp dword [rax + 0x60], r13d
jg 0x14006d65c
mov rcx, rsi
call fcn.140041610
test eax, eax
jne 0x14006d695
mov ecx, dword [rsi + 0x3c]
mov edx, dword [rsp + 0x44]
lea eax, [rcx + 1]
mov dword [rsi + 0x3c], eax
lea rcx, [r13*2]
mov rax, qword [rsi + 8]
add rcx, r13
mov word [rax + rcx*8], 0x4e
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], 0
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x14006d6ab
movsxd rax, dword [rsi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 0x10
mov rdx, qword [rsp + 0xa0]
inc rbx
cmp rbx, r15
jl 0x14006d610
mov rdi, qword [rsp + 0x90]
mov r14d, dword [rsp + 0x34]
mov r13d, dword [rsp + 0x38]
xor r12d, r12d
mov r9d, r13d
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov rcx, rsi
lea edx, [r12 + 0x10]
call fcn.1400416c0
jmp 0x14006d6f1
xor r12d, r12d
mov rdx, qword [rsp + 0xa8]
mov rcx, rsi
call fcn.140070100
mov r15d, dword [rsp + 0xd0]
mov r9d, r14d
mov ebp, dword [rsp + 0x3c]
mov r8d, r15d
mov edx, 0x31
mov dword [rsp + 0x20], ebp
mov rcx, rsi
mov rbx, rax
call fcn.1400416c0
mov r9d, r14d
mov r8, rbx
mov edx, eax
mov rcx, rsi
call fcn.140041d00
mov r8d, dword [rsp + 0x30]
mov r9d, r13d
mov edx, 0x45
mov dword [rsp + 0x20], ebp
mov rcx, rsi
call fcn.1400416c0
mov rdx, qword [rsi + 8]
mov r9, qword [rsi]
test rdx, rdx
je 0x14006d7a0
cmp byte [r9 + 0x51], 0
jne 0x14006d7a0
test eax, eax
jns 0x14006d76c
mov eax, dword [rsi + 0x3c]
dec eax
cdqe
lea rcx, [rax + rax*2]
mov r8, qword [rdx + rcx*8 + 0x10]
lea rbx, [rdx + rcx*8]
movsx edx, byte [rdx + rcx*8 + 1]
mov rcx, r9
call fcn.140041a40
mov qword [rbx + 0x10], r12
mov byte [rbx + 1], 0xf2
jmp 0x14006d7af
xor r8d, r8d
mov rcx, r9
lea edx, [r8 - 0xe]
call fcn.140041a40
test ebp, ebp
je 0x14006d7e3
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x14006d7e3
mov ecx, r12d
lea rax, [rdi + 0x88]
cmp dword [rax + 0xc], ebp
je 0x14006d7df
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x14006d7c6
mov dword [rdi + rdx*4 + 0x24], ebp
inc byte [rdi + 0x1f]
jmp 0x14006d7e3
mov byte [rax + 6], 1
mov r8d, r14d
mov edx, r15d
mov rcx, rdi
call fcn.140056610
cmp r14d, dword [rdi + 0x44]
jle 0x14006d804
mov dword [rdi + 0x44], r14d
mov dword [rdi + 0x48], r15d
jmp 0x14006d804
xor r12d, r12d
mov r14d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0xb0]
movzx ecx, byte [rdx + 0x2c]
test cl, cl
jne 0x14006d8e0
mov rax, qword [rdi]
test dword [rax + 0x2c], 0x1000000
jne 0x14006d8e0
cmp qword [rdi + 0x1c0], 0
jne 0x14006d8e0
cmp byte [rdi + 0x20], cl
jne 0x14006d8e0
mov rbx, qword [rdi + 0x10]
test rbx, rbx
jne 0x14006d892
mov rcx, rdi
call fcn.140041580
mov qword [rdi + 0x10], rax
mov rbx, rax
test rax, rax
je 0x14006d879
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
mov edx, 0x99
mov rcx, rax
call fcn.1400416c0
mov rax, qword [rdi + 0x1c0]
test rax, rax
jne 0x14006d895
mov rax, qword [rdi]
test byte [rax + 0x4c], 8
jne 0x14006d892
mov byte [rdi + 0x23], 1
mov rax, rdi
mov edx, 0x18
mov byte [rax + 0x21], 1
mov r8d, 0x313
mov dword [rsp + 0x20], r12d
mov rcx, rbx
lea r9d, [rdx - 0x16]
call fcn.1400416c0
mov r9d, 0xfffffffe
xor r8d, r8d
mov edx, eax
mov rcx, rbx
call fcn.140041d00
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x14006d920
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 4
jmp 0x14006d920
mov r9d, dword [rsp + 0xc8]
movzx eax, cl
test r9d, r9d
jle 0x14006d90a
test cl, cl
jne 0x14006d90a
mov rax, qword [rdi + 0x1c0]
test rax, rax
cmovne rdi, rax
mov byte [rdi + 0x21], 1
movzx eax, byte [rdx + 0x2c]
movzx r8d, al
mov edx, 0x86
mov rcx, rsi
mov dword [rsp + 0x20], r12d
call fcn.1400416c0
movsxd rax, dword [rsp + 0x40]
mov r10, qword [rsi + 0x30]
test eax, eax
js 0x14006d943
mov r9, qword [r10 + 0x80]
test r9, r9
je 0x14006d943
mov rdx, rax
mov eax, dword [rsi + 0x3c]
mov dword [r9 + rdx*4], eax
mov eax, dword [rsi + 0x3c]
xor r9d, r9d
dec eax
mov dword [rsp + 0xb0], r12d
mov r8d, r14d
mov dword [r10 + 0x64], eax
mov rcx, rsi
lea edx, [r9 + 0x3d]
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.1400416c0