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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov r12, qword [rcx]
mov rsi, r8
mov r14, qword [r8 + 0x60]
xor r15d, r15d
movsxd rbp, edx
mov rdx, rcx
mov qword [rsp + 0x50], r12
mov rbx, qword [r12 + 0x10]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x30], r14
movsxd r8, dword [rbx + 0x90]
mov dword [rsp + 0x44], r8d
cmp dword [rbx + 0x94], r8d
jg 0x140164147
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
lea edx, [r15 + 0xf]
mov rcx, rbx
call fcn.1400e74d0
mov rdx, qword [rsp + 0xe0]
mov dword [rsp + 0x44], eax
jmp 0x14016416e
lea rcx, [r8 + r8*2]
lea eax, [r8 + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], 0xf
mov qword [rax + rcx*8 + 8], r15
mov qword [rax + rcx*8 + 0x10], r15
mov qword [rsp + 0x48], rbp
mov edi, 3
nop dword [rax + rax]
mov r8, rsi
mov rcx, r12
call fcn.140158f50
dec dword [r12 + 0x44]
mov r13d, dword [rsi + 4]
mov r9d, dword [r12 + 0x38]
mov eax, dword [r12 + 0x44]
inc r9d
mov rbp, qword [rsp + 0xe0]
mov dword [rsp + 0x3c], eax
mov dword [r12 + 0x38], r9d
movzx eax, byte [rsi + 0x40]
mov dword [rsi + 0x34], r9d
imul rsi, rax, 0x68
mov dword [rsp + 0x38], r13d
add rsi, qword [rbp + 8]
mov rax, qword [rsi + 0x28]
movsx ecx, word [rax + 0x3a]
mov eax, 0x66666667
imul ecx
mov r8d, edx
sar r8d, 2
mov eax, r8d
shr eax, 0x1f
add r8d, eax
lea eax, [r8 + r8*4]
add eax, eax
sub ecx, eax
movsxd rdx, ecx
cmp rdx, 5
jb 0x1401641fd
sub rdx, 2
jmp 0x140164206
cmp rdx, 1
jb 0x140164206
dec rdx
cmp r8w, 0x3c
jg 0x140164247
add rdx, 8
movsx ecx, r8w
cmp r8w, 3
jl 0x140164224
add ecx, 0xfffffffd
shl rdx, cl
jmp 0x14016422e
mov eax, edi
sub eax, ecx
movzx ecx, al
shr rdx, cl
cmp rdx, 0x2710
jae 0x14016423e
mov edx, 0x2710
jmp 0x14016424c
cmp rdx, 0x989680
jbe 0x14016424c
mov edx, 0x989680
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x140164272
mov r8d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x4d
mov rcx, rbx
call fcn.1400e74d0
jmp 0x1401642a0
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x4d
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r15
movsxd rdx, dword [rbx + 0x90]
mov dword [rsp + 0x40], edx
cmp dword [rbx + 0x94], edx
jg 0x1401642d0
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, r13d
mov rcx, rbx
lea edx, [r9 + 0x24]
call fcn.1400e74d0
mov dword [rsp + 0x40], eax
jmp 0x1401642fe
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x24
mov dword [rax + rcx*8 + 4], r13d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r15
mov rdi, qword [rbp + 0x90]
movsxd rax, dword [rbp + 0x84]
imul rbp, rax, 0x38
add rbp, rdi
cmp rdi, rbp
jae 0x1401643d1
mov r14d, dword [rsp + 0x3c]
lea rbx, [fcn.1401053e0]
mov r13d, 3
lea r15, [0x140105200]
test byte [rdi + 0x12], 2
mov rdx, qword [rdi]
jne 0x1401643b2
movzx ecx, byte [rsi + 0x44]
test cl, 0x40
jne 0x1401643b2
mov eax, dword [rdx + 4]
and eax, 1
test cl, 8
je 0x14016435e
test eax, eax
je 0x1401643b2
mov eax, dword [rsi + 0x4c]
cmp dword [rdx + 0x30], eax
jmp 0x140164360
test eax, eax
jne 0x1401643b2
mov eax, dword [rsi + 0x4c]
movzx ecx, r13w
mov word [rsp + 0x84], cx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x88], eax
test rdx, rdx
je 0x14016439c
lea rcx, [rsp + 0x60]
call fcn.1400fd410
mov rdx, qword [rdi]
movzx ecx, word [rsp + 0x84]
test cx, cx
je 0x1401643b2
mov r9d, 0x10
mov r8d, r14d
mov rcx, r12
call fcn.14010c020
add rdi, 0x38
cmp rdi, rbp
jb 0x140164335
mov rbx, qword [rsp + 0x58]
xor r15d, r15d
mov r14, qword [rsp + 0x30]
mov r13d, dword [rsp + 0x38]
test dword [r14 + 0x38], 0x100
je 0x14016450b
movzx eax, byte [r12 + 0x1f]
test al, al
jne 0x1401643f5
inc dword [r12 + 0x38]
mov edi, dword [r12 + 0x38]
jmp 0x140164407
dec al
movzx eax, al
mov byte [r12 + 0x1f], al
mov edi, dword [r12 + rax*4 + 0xd0]
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x140164430
mov r9d, edi
mov dword [rsp + 0x20], r15d
mov r8d, r13d
mov edx, 0x87
mov rcx, rbx
call fcn.1400e74d0
jmp 0x14016445e
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x87
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r15
mov rsi, qword [rsp + 0xf0]
movsxd rdx, dword [rbx + 0x90]
mov r8d, dword [rsi + 0x34]
cmp dword [rbx + 0x94], edx
jg 0x140164491
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov edx, 0xb4
mov rcx, rbx
call fcn.1400e74d0
mov edx, eax
jmp 0x1401644bf
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0xb4
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], r15
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
jne 0x1401644e3
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov byte [rax + rcx*8 + 1], 0xfd
mov dword [rax + rcx*8 + 0x10], 1
test edi, edi
je 0x14016466f
movzx eax, byte [r12 + 0x1f]
cmp al, 8
jae 0x14016466f
mov dword [r12 + rax*4 + 0xd0], edi
inc byte [r12 + 0x1f]
jmp 0x14016466f
movzx ebp, word [r14 + 0x18]
mov r13, qword [r14 + 0x20]
cmp ebp, 1
jne 0x140164543
movzx eax, byte [r12 + 0x1f]
test al, al
jne 0x14016452f
inc dword [r12 + 0x38]
mov r14d, dword [r12 + 0x38]
jmp 0x140164573
dec al
movzx eax, al
mov byte [r12 + 0x1f], al
mov r14d, dword [r12 + rax*4 + 0xd0]
jmp 0x140164573
mov ecx, dword [r12 + 0x28]
mov r14d, dword [r12 + 0x2c]
cmp ebp, ecx
jg 0x140164563
lea eax, [r14 + rbp]
sub ecx, ebp
mov dword [r12 + 0x2c], eax
mov dword [r12 + 0x28], ecx
jmp 0x140164573
mov eax, dword [r12 + 0x38]
lea r14d, [rax + 1]
add eax, ebp
mov dword [r12 + 0x38], eax
mov rdi, r15
test ebp, ebp
je 0x1401645ad
mov r12d, dword [rsp + 0x38]
mov esi, r14d
mov rax, qword [r13 + 8]
mov r8d, r12d
mov rdx, qword [r13 + 0x18]
mov rcx, rbx
mov dword [rsp + 0x20], esi
movsx r9d, word [rax + rdi*2]
call fcn.140109070
inc esi
inc rdi
cmp rdi, rbp
jl 0x140164582
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0xf0]
movsxd rdx, dword [rbx + 0x90]
mov r8d, dword [rsi + 0x34]
cmp dword [rbx + 0x94], edx
jg 0x1401645e4
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov edx, 0xb4
mov rcx, rbx
call fcn.1400e74d0
mov edx, eax
xor r15d, r15d
jmp 0x140164616
lea rcx, [rdx + rdx*2]
xor r15d, r15d
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0xb4
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r15
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
jne 0x140164636
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov byte [rax + rcx*8 + 1], 0xfd
mov dword [rax + rcx*8 + 0x10], ebp
cmp ebp, 1
jne 0x140164659
test r14d, r14d
je 0x14016466a
movzx eax, byte [r12 + 0x1f]
cmp al, 8
jae 0x14016466a
mov dword [r12 + rax*4 + 0xd0], r14d
inc byte [r12 + 0x1f]
jmp 0x14016466a
cmp ebp, dword [r12 + 0x28]
jle 0x14016466a
mov dword [r12 + 0x28], ebp
mov dword [r12 + 0x2c], r14d
mov r14, qword [rsp + 0x30]
mov rcx, qword [rbx + 0x18]
mov edx, dword [rsp + 0x3c]
not edx
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x14016468e
mov r8d, edx
mov rdx, rbx
call fcn.1400e8160
jmp 0x14016469e
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, edx
mov dword [rcx + rdx*4], eax
movsxd rdi, dword [rsp + 0x40]
movsxd rcx, dword [rbx + 0x90]
mov r8d, dword [rsi + 4]
lea edx, [rdi + 1]
cmp dword [rbx + 0x94], ecx
jg 0x1401646d0
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x27
mov rcx, rbx
call fcn.1400e74d0
jmp 0x1401646fe
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x27
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r15
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x67], 0
je 0x140164716
lea rax, [0x1409b3370]
jmp 0x140164725
mov rax, qword [rbx + 0x88]
lea rcx, [rdi + rdi*2]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
and dword [r14 + 0x38], 0xffbfffff
mov rax, qword [r12]
test dword [rax + 0x60], 0x100000
jne 0x140164805
mov ebp, dword [rsp + 0xe8]
mov rdi, qword [rsp + 0x48]
inc ebp
mov rdx, qword [rsp + 0xe0]
inc rdi
mov dword [rsp + 0xe8], ebp
mov qword [rsp + 0x48], rdi
movzx r10d, byte [rdx + 0x40]
cmp ebp, r10d
jge 0x1401647fa
mov r9, qword [rdx + 8]
mov r12, qword [rsp + 0xf8]
imul rax, rdi, 0x70
add rax, 0x3c0
add rax, rdx
nop dword [rax]
movzx ecx, byte [rax - 0x20]
lea rsi, [rax - 0x60]
imul rdx, rcx, 0x68
mov qword [rsp + 0xf0], rsi
test byte [rdx + r9 + 0x44], 0x48
jne 0x1401647cb
mov r14, qword [rax]
test r14, r14
je 0x1401647cb
test qword [r14], r12
jne 0x1401647cb
mov ecx, dword [r14 + 0x38]
and ecx, 0x400004
cmp ecx, 0x400000
je 0x1401647d9
inc ebp
inc rdi
add rax, 0x70
cmp rdi, r10
jl 0x140164790
mov r12, qword [rsp + 0x50]
cmp ebp, r10d
mov rdx, qword [rsp + 0xe0]
mov dword [rsp + 0xe8], ebp
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x30], r14
mov edi, 3
jl 0x140164180
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x67], 0
je 0x14016481c
mov dword [0x1409b3378], edx
jmp 0x140164830
movsxd rax, dword [rsp + 0x44]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 8], edx
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret