Function at 0x1401367a0
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 rsi, qword [rcx]
mov rbp, r8
mov r13, qword [r8 + 0x60]
mov r14, rcx
xor r8d, r8d
movsxd rbx, edx
mov qword [rsp + 0x48], r13
mov rdi, qword [rsi + 0x10]
mov rax, qword [rsi + 0x60]
mov qword [rsi + 0x60], r8
mov qword [rsp + 0x58], rdi
movsxd rdx, dword [rdi + 0x90]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], edx
cmp dword [rdi + 0x94], edx
jg 0x140136821
xor r9d, r9d
mov dword [rsp + 0x20], r8d
lea edx, [r8 + 0xf]
mov rcx, rdi
call fcn.140108480
mov dword [rsp + 0x40], eax
jmp 0x140136847
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rdi + 0x90], eax
mov rax, qword [rdi + 0x88]
mov qword [rax + rcx*8], 0xf
mov qword [rax + rcx*8 + 8], r8
mov qword [rax + rcx*8 + 0x10], r8
mov r15, rbx
mov qword [rsp + 0x30], rbx
mov ebx, 3
nop dword [rax]
nop dword [rax + rax]
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.14018fba0
dec dword [rsi + 0x44]
mov r12d, dword [rbp + 4]
mov r9d, dword [rsi + 0x38]
mov eax, dword [rsi + 0x44]
inc r9d
mov dword [rsp + 0x38], eax
mov dword [rsi + 0x38], r9d
movzx eax, byte [rbp + 0x40]
mov dword [rbp + 0x34], r9d
imul rbp, rax, 0x68
mov dword [rsp + 0x44], r12d
add rbp, qword [r14 + 8]
mov rax, qword [rbp + 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 0x1401368d2
sub rdx, 2
jmp 0x1401368db
cmp rdx, 1
jb 0x1401368db
dec rdx
cmp r8w, 0x3c
jg 0x140136919
add rdx, 8
movsx eax, r8w
cmp r8w, 3
jl 0x1401368f9
lea ecx, [rax - 3]
shl rdx, cl
jmp 0x140136900
mov ecx, ebx
sub ecx, eax
shr rdx, cl
cmp rdx, 0x2710
jae 0x140136910
mov edx, 0x2710
jmp 0x14013691e
cmp rdx, 0x989680
jbe 0x14013691e
mov edx, 0x989680
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x140136946
xor eax, eax
mov r8d, edx
mov rcx, rdi
mov dword [rsp + 0x20], eax
lea edx, [rax + 0x4d]
call fcn.140108480
xor r8d, r8d
jmp 0x140136977
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 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], r8d
mov qword [rax + rcx*8 + 0x10], r8
movsxd rdx, dword [rdi + 0x90]
mov dword [rsp + 0x3c], edx
cmp dword [rdi + 0x94], edx
jg 0x1401369a7
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov r8d, r12d
mov rcx, rdi
lea edx, [r9 + 0x24]
call fcn.140108480
mov dword [rsp + 0x3c], eax
jmp 0x1401369d5
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rdi + 0x90], eax
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x24
mov dword [rax + rcx*8 + 4], r12d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r8
mov rbx, qword [r14 + 0x90]
movsxd rax, dword [r14 + 0x84]
imul r14, rax, 0x38
add r14, rbx
cmp rbx, r14
jae 0x140136aaf
mov r15d, dword [rsp + 0x38]
lea r12, [fcn.1400c2d20]
mov edi, 3
lea r13, [0x1401728a0]
nop dword [rax + rax]
test byte [rbx + 0x12], 2
mov rdx, qword [rbx]
jne 0x140136a8e
movzx ecx, byte [rbp + 0x44]
test cl, 0x40
jne 0x140136a8e
mov eax, dword [rdx + 4]
and eax, 1
test cl, 8
je 0x140136a3b
test eax, eax
je 0x140136a8e
mov eax, dword [rbp + 0x4c]
cmp dword [rdx + 0x34], eax
je 0x140136a3f
jmp 0x140136a8e
test eax, eax
jne 0x140136a8e
mov eax, dword [rbp + 0x4c]
movzx ecx, di
mov word [rsp + 0x84], cx
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x88], eax
test rdx, rdx
je 0x140136a75
lea rcx, [rsp + 0x60]
call fcn.1401a2110
movzx ecx, word [rsp + 0x84]
test cx, cx
je 0x140136a8e
mov rdx, qword [rbx]
mov r9d, 0x10
mov r8d, r15d
mov rcx, rsi
call fcn.140140dd0
add rbx, 0x38
cmp rbx, r14
jb 0x140136a10
mov rdi, qword [rsp + 0x58]
mov r13, qword [rsp + 0x48]
mov r12d, dword [rsp + 0x44]
mov r15, qword [rsp + 0x30]
test dword [r13 + 0x38], 0x100
je 0x140136be2
movzx eax, byte [rsi + 0x1f]
test al, al
jne 0x140136acd
inc dword [rsi + 0x38]
mov ebx, dword [rsi + 0x38]
jmp 0x140136adc
dec al
movzx eax, al
mov byte [rsi + 0x1f], al
mov ebx, dword [rsi + rax*4 + 0xe4]
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x140136b09
xor eax, eax
mov r9d, ebx
mov r8d, r12d
mov dword [rsp + 0x20], eax
mov edx, 0x87
mov rcx, rdi
call fcn.140108480
xor r9d, r9d
jmp 0x140136b3a
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x87
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], ebx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov rbp, qword [rsp + 0xf0]
movsxd rdx, dword [rdi + 0x90]
mov r8d, dword [rbp + 0x34]
cmp dword [rdi + 0x94], edx
jg 0x140136b6d
xor r9d, r9d
mov dword [rsp + 0x20], ebx
mov edx, 0xb4
mov rcx, rdi
call fcn.140108480
mov edx, eax
jmp 0x140136b9b
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rdi + 0x90], eax
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0xb4
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rdi]
cmp byte [rax + 0x67], 0
jne 0x140136bbf
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov byte [rax + rcx*8 + 1], 0xfd
mov dword [rax + rcx*8 + 0x10], 1
test ebx, ebx
je 0x140136d35
movzx eax, byte [rsi + 0x1f]
cmp al, 8
jae 0x140136d35
mov dword [rsi + rax*4 + 0xe4], ebx
inc byte [rsi + 0x1f]
jmp 0x140136d35
movzx ebp, word [r13 + 0x18]
mov r15, qword [r13 + 0x20]
cmp ebp, 1
jne 0x140136c1b
movzx eax, byte [rsi + 0x1f]
test al, al
jne 0x140136c05
inc dword [rsi + 0x38]
mov r14d, dword [rsi + 0x38]
xor eax, eax
mov ebx, eax
jmp 0x140136c50
dec al
movzx eax, al
mov byte [rsi + 0x1f], al
mov r14d, dword [rsi + rax*4 + 0xe4]
xor eax, eax
mov ebx, eax
jmp 0x140136c50
mov ecx, dword [rsi + 0x28]
mov r14d, dword [rsi + 0x2c]
cmp ebp, ecx
jg 0x140136c34
lea eax, [r14 + rbp]
sub ecx, ebp
mov dword [rsi + 0x2c], eax
mov dword [rsi + 0x28], ecx
jmp 0x140136c40
mov eax, dword [rsi + 0x38]
lea r14d, [rax + 1]
add eax, ebp
mov dword [rsi + 0x38], eax
xor r9d, r9d
mov ebx, r9d
cmp r9w, bp
jae 0x140136c72
nop dword [rax]
lea eax, [rbx + r14]
mov r9d, ebx
mov r8d, r12d
mov dword [rsp + 0x20], eax
mov rdx, r15
mov rcx, rsi
call fcn.14013e590
inc ebx
cmp ebx, ebp
jl 0x140136c50
xor r9d, r9d
mov r8, qword [rsp + 0xf0]
movsxd rdx, dword [rdi + 0x90]
mov r8d, dword [r8 + 0x34]
cmp dword [rdi + 0x94], edx
jg 0x140136ca6
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov edx, 0xb4
mov rcx, rdi
call fcn.140108480
mov edx, eax
jmp 0x140136cd5
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rdi + 0x90], eax
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0xb4
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rdi]
cmp byte [rax + 0x67], 0
jne 0x140136cf5
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov byte [rax + rcx*8 + 1], 0xfd
mov dword [rax + rcx*8 + 0x10], ebp
mov r15, qword [rsp + 0x30]
cmp ebp, 1
jne 0x140136d21
test r14d, r14d
je 0x140136d2d
movzx eax, byte [rsi + 0x1f]
mov rbp, qword [rsp + 0xf0]
cmp al, 8
jae 0x140136d35
mov dword [rsi + rax*4 + 0xe4], r14d
inc byte [rsi + 0x1f]
jmp 0x140136d35
cmp ebp, dword [rsi + 0x28]
jle 0x140136d2d
mov dword [rsi + 0x28], ebp
mov dword [rsi + 0x2c], r14d
mov rbp, qword [rsp + 0xf0]
mov rcx, qword [rdi + 0x18]
mov edx, dword [rsp + 0x38]
not edx
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x140136d54
mov r8d, edx
mov rdx, rdi
call fcn.140120080
jmp 0x140136d64
mov rcx, qword [rcx + 0x50]
mov eax, dword [rdi + 0x90]
movsxd rdx, edx
mov dword [rcx + rdx*4], eax
movsxd rbx, dword [rsp + 0x3c]
movsxd rcx, dword [rdi + 0x90]
mov r8d, dword [rbp + 4]
lea edx, [rbx + 1]
cmp dword [rdi + 0x94], ecx
jg 0x140136d95
xor eax, eax
mov r9d, edx
mov rcx, rdi
mov dword [rsp + 0x20], eax
lea edx, [rax + 0x27]
call fcn.140108480
jmp 0x140136dc6
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 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], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rdi]
mov edx, dword [rdi + 0x90]
cmp byte [rax + 0x67], 0
je 0x140136dde
lea rax, [0x140213918]
jmp 0x140136ded
mov rax, qword [rdi + 0x88]
lea rcx, [rbx + rbx*2]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
and dword [r13 + 0x38], 0xffbfffff
mov rax, qword [rsi]
test dword [rax + 0x60], 0x100000
jne 0x140136ec7
mov ebx, dword [rsp + 0xe8]
inc r15
mov r14, qword [rsp + 0xe0]
inc ebx
mov dword [rsp + 0xe8], ebx
mov qword [rsp + 0x30], r15
movzx eax, byte [r14 + 0x40]
cmp ebx, eax
jge 0x140136eb5
mov r9, qword [r14 + 8]
mov r8d, eax
add r14, 0x3c0
imul rax, r15, 0x70
add rax, r14
mov r14, qword [rsp + 0xf8]
movzx ecx, byte [rax - 0x20]
lea rbp, [rax - 0x60]
imul rdx, rcx, 0x68
mov qword [rsp + 0xf0], rbp
test byte [rdx + r9 + 0x44], 0x48
jne 0x140136e8e
mov r13, qword [rax]
test r13, r13
je 0x140136e8e
test qword [r13], r14
jne 0x140136e8e
mov ecx, dword [r13 + 0x38]
and ecx, 0x400004
cmp ecx, 0x400000
je 0x140136e9c
inc ebx
inc r15
add rax, 0x70
cmp r15, r8
jl 0x140136e52
mov r14, qword [rsp + 0xe0]
mov dword [rsp + 0xe8], ebx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x48], r13
movzx eax, byte [r14 + 0x40]
cmp ebx, eax
mov ebx, 3
jl 0x140136860
mov rax, qword [rdi]
mov edx, dword [rdi + 0x90]
cmp byte [rax + 0x67], 0
je 0x140136ede
mov dword [0x140213920], edx
jmp 0x140136ef2
movsxd rax, dword [rsp + 0x40]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8 + 8], edx
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x60], rax
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret