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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rbx, qword [rcx + 0x10]
mov rdi, rcx
mov rcx, rbx
mov r15d, r9d
mov r14, r8
call fcn.14004fc70
mov rcx, rbx
mov dword [rsp + 0x44], eax
mov r13d, eax
call fcn.14004fc70
mov rcx, qword [rsp + 0xc0]
xor esi, esi
mov r9d, dword [r14 + 0x14]
mov r12, qword [r14]
mov dword [rsp + 0x34], eax
movzx ebp, byte [rcx]
mov eax, dword [rcx + 4]
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x30], eax
test r9d, r9d
je 0x14009789c
mov r8d, dword [r14 + 0x10]
lea edx, [rsi + 0x11]
mov rcx, rbx
mov dword [rsp + 0x20], esi
call fcn.14004fb30
mov r9d, r13d
mov dword [rsp + 0x20], esi
xor r8d, r8d
lea edx, [rsi + 0x10]
mov rcx, rbx
call fcn.14004fb30
mov eax, dword [r14 + 0x14]
mov r8, qword [rbx + 0x30]
not eax
test eax, eax
js 0x14009788b
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x14009788b
movsxd rcx, eax
mov eax, dword [rbx + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [rbx + 0x3c]
mov rcx, qword [rsp + 0xc0]
dec eax
mov dword [r8 + 0x64], eax
mov edx, dword [r14 + 0xc]
lea eax, [rbp - 9]
mov dword [rsp + 0x38], edx
test al, 0xfb
je 0x1400978ff
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x1400978cc
mov r14d, dword [rdi + 0x54]
mov r15d, 1
inc r14d
mov dword [rdi + 0x54], r14d
inc dword [rdi + 0x54]
mov ebp, dword [rdi + 0x54]
jmp 0x140097905
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r14d, dword [rdi + rax*4 + 0x24]
test al, al
jne 0x1400978eb
inc dword [rdi + 0x54]
mov r15d, 1
mov ebp, dword [rdi + 0x54]
jmp 0x140097905
dec al
mov r15d, 1
movzx eax, al
mov byte [rdi + 0x1f], al
mov ebp, dword [rdi + rax*4 + 0x24]
jmp 0x140097905
mov ebp, dword [rcx + 8]
xor r14d, r14d
mov rcx, qword [rsp + 0xb0]
mov r12d, dword [r12]
sub r12d, dword [rcx + 8]
test byte [rcx + 0x1c], 1
je 0x140097a02
mov r13d, dword [rdi + 0x50]
inc dword [rdi + 0x54]
mov eax, dword [rdi + 0x54]
mov dword [rsp + 0x3c], eax
lea eax, [r13 + 1]
mov dword [rdi + 0x50], eax
cmp dword [rcx + 0x14], esi
je 0x140097961
mov rcx, rdi
call fcn.140098e90
mov r8d, dword [rdi + 0x5c]
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x20], esi
lea eax, [r8 + 1]
lea edx, [r9 + 0x2c]
mov dword [rdi + 0x5c], eax
call fcn.14004fb30
mov esi, eax
mov r9d, dword [rsp + 0x3c]
lea ecx, [r12 + 1]
add ecx, r15d
mov r8d, r13d
mov dword [rsp + 0x20], ecx
mov edx, 0x3c
mov rcx, rbx
call fcn.14004fb30
test esi, esi
je 0x1400979a7
mov edx, dword [rbx + 0x3c]
cmp edx, esi
jbe 0x14009799b
mov eax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
mov r9d, dword [rsp + 0x44]
mov edx, 0x6a
mov r8d, dword [rsp + 0x38]
mov rcx, rbx
mov dword [rsp + 0x20], 0
call fcn.14004fb30
mov rdx, qword [rsp + 0xa8]
mov rcx, rbx
mov r8d, dword [rsp + 0x34]
mov dword [rsp + 0x40], eax
mov edx, dword [rdx + 0x10]
call fcn.140096840
mov r9d, dword [rsp + 0x3c]
mov edx, 0x64
mov r8d, dword [rsp + 0x38]
mov rcx, rbx
mov dword [rsp + 0x20], r13d
call fcn.14004fb30
xor ecx, ecx
jmp 0x140097a3f
mov r8d, edx
mov dword [rsp + 0x20], esi
mov edx, 0x6b
mov r9d, r13d
mov rcx, rbx
call fcn.14004fb30
mov rdx, qword [rsp + 0xa8]
mov rcx, rbx
mov r8d, dword [rsp + 0x34]
mov dword [rsp + 0x40], eax
mov edx, dword [rdx + 0x10]
call fcn.140096840
mov r13d, dword [rsp + 0x38]
mov ecx, 1
test r15d, r15d
jle 0x140097aa9
sub ecx, ebp
mov esi, ebp
lea edi, [rcx + r12]
mov r12d, r15d
nop
mov rax, qword [rbx + 0x30]
movsxd r15, dword [rbx + 0x3c]
cmp dword [rax + 0x60], r15d
jg 0x140097a6a
mov rcx, rbx
call fcn.14004fa80
test eax, eax
jne 0x140097a99
mov rax, qword [rbx + 8]
lea rcx, [r15 + r15*2]
inc dword [rbx + 0x3c]
mov word [rax + rcx*8], 0x2f
mov byte [rax + rcx*8 + 3], 0
lea rdx, [rax + rcx*8]
lea eax, [rdi + rsi]
mov dword [rdx + 4], r13d
mov dword [rdx + 8], eax
mov dword [rdx + 0xc], esi
mov qword [rdx + 0x10], 0
inc esi
sub r12, 1
jne 0x140097a50
mov rdi, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x48]
mov ecx, edx
sub ecx, 0xa
je 0x140097bd8
sub ecx, 1
je 0x140097b74
sub ecx, 1
je 0x140097b1e
cmp ecx, 2
je 0x140097b1e
mov rsi, qword [rsp + 0xc0]
mov rcx, rbx
mov dword [rsp + 0x20], 0
cmp dl, 9
jne 0x140097b09
mov r9d, dword [rsp + 0xb8]
mov edx, 0x23
mov r8d, dword [rsi + 8]
call fcn.14004fb30
mov r8d, dword [rsp + 0xb8]
mov edx, dword [rsi + 8]
jmp 0x140097bfe
mov r8d, dword [rsi + 4]
xor r9d, r9d
lea edx, [r9 + 0x16]
call fcn.14004fb30
jmp 0x140097c06
mov r8d, dword [rsp + 0x30]
mov r9d, r14d
mov edx, 0x4a
mov dword [rsp + 0x20], 0
mov rcx, rbx
call fcn.14004fb30
mov r8d, dword [rsp + 0x30]
mov r9d, ebp
mov edx, 0x4b
mov dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.14004fb30
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140097c06
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 8
jmp 0x140097c06
mov r9d, 1
mov dword [rsp + 0x20], r14d
mov r8d, ebp
mov rcx, rbx
lea edx, [r9 + 0x30]
call fcn.14004fb30
mov r8, qword [rsp + 0xc0]
mov r9d, 1
inc r8
mov edx, eax
mov rcx, rbx
call fcn.140050160
mov r8d, 1
mov edx, ebp
mov rcx, rdi
call fcn.140069af0
mov r8d, dword [rsp + 0x30]
mov r9d, r14d
mov edx, 0x6e
mov dword [rsp + 0x20], 0
mov rcx, rbx
call fcn.14004fb30
jmp 0x140097c06
mov r9d, dword [rsp + 0x30]
mov r8d, ebp
mov rcx, qword [rdi + 0x10]
mov edx, 0x20
mov dword [rsp + 0x20], 1
call fcn.14004fb30
mov r8d, 1
mov edx, ebp
mov rcx, rdi
call fcn.140069af0
test r14d, r14d
je 0x140097c73
test ebp, ebp
je 0x140097c41
cmp byte [rdi + 0x1f], 8
jae 0x140097c73
xor ecx, ecx
lea rax, [rdi + 0x88]
nop
cmp dword [rax + 0xc], ebp
je 0x140097c3d
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140097c20
movzx eax, byte [rdi + 0x1f]
mov dword [rdi + rax*4 + 0x24], ebp
inc byte [rdi + 0x1f]
jmp 0x140097c41
mov byte [rax + 6], 1
cmp byte [rdi + 0x1f], 8
jae 0x140097c73
xor ecx, ecx
lea rax, [rdi + 0x88]
cmp dword [rax + 0xc], r14d
je 0x140097c6f
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140097c50
movzx eax, byte [rdi + 0x1f]
mov dword [rdi + rax*4 + 0x24], r14d
inc byte [rdi + 0x1f]
jmp 0x140097c73
mov byte [rax + 6], 1
mov eax, dword [rsp + 0x34]
mov r9, qword [rbx + 0x30]
not eax
test eax, eax
js 0x140097c96
mov rdx, qword [r9 + 0x80]
test rdx, rdx
je 0x140097c96
movsxd rcx, eax
mov eax, dword [rbx + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [rbx + 0x3c]
mov rcx, rbx
mov rdi, qword [rsp + 0xb0]
dec eax
mov r8d, dword [rsp + 0x38]
mov dword [r9 + 0x64], eax
mov r9d, dword [rsp + 0x40]
movzx edx, byte [rdi + 0x1c]
inc r9d
not dl
mov dword [rsp + 0x20], 0
and edx, 1
lea edx, [rdx*4 + 5]
call fcn.14004fb30
mov r8d, dword [rdi + 0x10]
test r8d, r8d
je 0x140097cf4
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov rcx, rbx
lea edx, [r9 + 0x12]
call fcn.14004fb30
mov eax, dword [rsp + 0x44]
mov rdx, qword [rbx + 0x30]
not eax
test eax, eax
js 0x140097d18
mov r8, qword [rdx + 0x80]
test r8, r8
je 0x140097d18
movsxd rcx, eax
mov eax, dword [rbx + 0x3c]
mov dword [r8 + rcx*4], eax
mov eax, dword [rbx + 0x3c]
dec eax
mov dword [rdx + 0x64], eax
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret