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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x128
mov rax, qword [0x1401ca2e0]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rax, qword [rcx]
mov rsi, rcx
mov qword [rsp + 0x60], rcx
mov rdi, r8
xor ecx, ecx
mov qword [rsp + 0x88], r8
mov word [rsp + 0x34], r9w
mov r8, rdx
mov rax, qword [rax]
mov ebp, ecx
mov rbx, qword [rsi + 0x18]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x70], rdx
mov rax, qword [rax]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rcx
cmp byte [rax + 0x61], cl
je 0x14009a6e7
lea eax, [rcx + 7]
jmp 0x14009ae0a
movzx ecx, word [rbx + 0x1a]
mov edx, 0x18
mov eax, dword [rbx + 0x28]
test al, 0x20
movzx r9d, word [rbx + 0x2c]
mov r8d, dword [r8 + 0x44]
mov word [rsp + 0x52], cx
movzx ecx, word [rbx + 0x1c]
mov word [rsp + 0x54], cx
movzx ecx, word [rbx + 0x2e]
mov word [rsp + 0x58], cx
mov rcx, qword [rbx]
mov qword [rsp + 0x98], rcx
movzx ecx, word [rbx + 0x16]
mov dword [rsp + 0x6c], eax
mov eax, 0x1bf
cmove edx, eax
mov word [rsp + 0x36], cx
movzx eax, word [rbx + 0x18]
mov ecx, edx
and ecx, 0xffffffc3
mov word [rsp + 0x30], ax
mov dword [rsp + 0x78], eax
mov word [rsp + 0x56], r9w
mov r9d, eax
mov eax, dword [rdi + 0x64]
and al, 4
mov qword [rsp + 0x28], rdi
cmove ecx, edx
mov rdx, qword [rsi + 8]
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0xa0]
call fcn.14009dd60
xor ecx, ecx
mov qword [rsp + 0x48], rax
mov word [rbx + 0x12], cx
mov r8, rax
mov rax, qword [rdi + 0x10]
movzx eax, word [rax]
mov word [rsp + 0x68], ax
cmp ax, 0xa
jg 0x14009a79e
mov word [rsp + 0x50], cx
mov edx, 0x100
jmp 0x14009a7c2
movsx rcx, ax
call fcn.140067d20
sub ax, 0x21
mov edx, 0x100
mov word [rsp + 0x50], ax
xor ecx, ecx
jmp 0x14009a7c2
xor ecx, ecx
test r8, r8
je 0x14009acee
movzx r9d, word [r8 + 0x14]
mov esi, ecx
mov word [rsp + 0x32], r9w
cmp r9w, dx
jne 0x14009a878
movzx r10d, word [rsp + 0x30]
mov rax, qword [rdi + 8]
movsx rdx, word [rax + r10*2]
test edx, edx
js 0x14009a86d
mov rax, qword [rdi + 0x18]
mov rcx, rdx
shl rcx, 5
mov rax, qword [rax + 8]
movzx ecx, byte [rax + rcx + 0x18]
test ecx, ecx
jne 0x14009accc
mov edx, 0x100
mov rax, qword [rbx + 8]
test qword [r8 + 0x30], rax
jne 0x14009accc
test word [r8 + 0x12], dx
je 0x14009a836
cmp r9w, 0x10
je 0x14009accc
mov rax, qword [rsp + 0x70]
test byte [rax + 0x3c], 8
je 0x14009a84e
mov rax, qword [r8]
test byte [rax + 4], 1
je 0x14009accc
cmp byte [rdi + 0x62], 0
je 0x14009a880
movzx eax, word [rdi + 0x5e]
dec eax
movzx ecx, r10w
cmp ecx, eax
jne 0x14009a880
mov rax, qword [rsp + 0x60]
or dword [rax + 0x28], 2
jmp 0x14009a889
cmp edx, 0xffffffff
je 0x14009accc
jmp 0x14009a811
movzx r10d, word [rsp + 0x30]
jmp 0x14009a816
mov rax, qword [rsp + 0x60]
or dword [rax + 0x28], 1
mov eax, dword [rsp + 0x6c]
mov rdx, rbx
mov rcx, qword [rsp + 0x90]
mov dword [rbx + 0x28], eax
movzx eax, word [rsp + 0x52]
mov word [rbx + 0x1a], ax
movzx eax, word [rsp + 0x54]
mov word [rbx + 0x1c], ax
movzx eax, word [rsp + 0x56]
mov word [rbx + 0x18], r10w
mov word [rbx + 0x2c], ax
lea r8d, [rax + 1]
call fcn.14009c320
test eax, eax
jne 0x14009acee
movzx ecx, word [rbx + 0x2c]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rsp + 0x48]
movzx r9d, word [rsp + 0x32]
mov qword [rax + rcx*8], rdx
inc word [rbx + 0x2c]
mov rcx, qword [rsp + 0x98]
or rcx, qword [rdx + 0x30]
mov rax, qword [rbx + 8]
not rax
and rcx, rax
mov qword [rbx], rcx
test r9b, 1
je 0x14009a9be
mov r8, qword [rdx]
or dword [rbx + 0x28], 4
test dword [r8 + 4], 0x800
je 0x14009a9a0
movzx ecx, word [rbx + 0x2c]
mov esi, 0x2e
dec ecx
test ecx, ecx
jle 0x14009a95b
mov rax, qword [rbx + 0x38]
xor edi, edi
mov edx, ecx
mov rcx, qword [rax]
test rcx, rcx
je 0x14009a944
cmp qword [rcx], r8
cmove esi, edi
add rax, 8
sub rdx, 1
jne 0x14009a936
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x48]
movzx r10d, word [rsp + 0x30]
mov r11d, 0x100
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
test byte [rbx + 0x28], 2
je 0x14009ab9f
mov rbp, qword [rsp + 0x60]
mov r8, rcx
mov rcx, qword [rsp + 0x80]
mov rdx, rbp
mov r9, rax
mov qword [rsp + 0x20], rbx
call fcn.14009da70
jmp 0x14009abfd
mov rax, qword [r8 + 0x20]
test rax, rax
je 0x14009a95b
movsxd rcx, dword [rax]
test ecx, ecx
je 0x14009ab84
call fcn.140067d20
movsx esi, ax
jmp 0x14009a956
test r9b, 0x82
je 0x14009aa35
mov rax, qword [rdi + 8]
movzx r10d, word [rsp + 0x30]
movsx edx, word [rax + r10*2]
or dword [rbx + 0x28], 1
mov ecx, dword [rbx + 0x28]
cmp edx, 0xffffffff
je 0x14009aa24
test edx, edx
js 0x14009aa1a
cmp word [rsp + 0x34], 0
jne 0x14009aa1a
movzx edx, word [rdi + 0x5e]
movzx r8d, r10w
lea eax, [rdx - 1]
cmp r8d, eax
jne 0x14009aa1a
test byte [rdi + 0x64], 8
jne 0x14009aa24
cmp edx, 1
jne 0x14009aa13
cmp byte [rdi + 0x62], 0
je 0x14009aa13
cmp r9w, 2
je 0x14009aa24
bts ecx, 0x10
mov dword [rbx + 0x28], ecx
mov rdx, qword [rsp + 0x48]
jmp 0x14009a961
mov rdx, qword [rsp + 0x48]
bts ecx, 0xc
mov dword [rbx + 0x28], ecx
jmp 0x14009a961
mov r11d, 0x100
test r11w, r9w
je 0x14009aa50
or dword [rbx + 0x28], 8
movzx r10d, word [rsp + 0x30]
jmp 0x14009a967
mov rax, qword [rsp + 0x70]
test r9b, 0x24
mov r9d, dword [rsp + 0x78]
mov r8, rdi
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rdx
je 0x14009ab13
or dword [rbx + 0x28], 0x22
mov edx, dword [rax + 0x44]
call fcn.14009db00
mov rdx, qword [rsp + 0x48]
mov r11d, 0x100
mov word [rbx + 0x1a], ax
mov rcx, rdx
xor eax, eax
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rax
test word [rdx + 0x12], r11w
je 0x14009ab73
movzx r8d, word [rbx + 0x2c]
lea rax, [rdx + 0x40]
mov rcx, qword [rsp + 0x90]
inc r8d
mov rdx, rbx
mov qword [rsp + 0x38], rax
call fcn.14009c320
test eax, eax
jne 0x14009acee
movzx ecx, word [rbx + 0x2c]
mov r11d, 0x100
mov rax, qword [rbx + 0x38]
mov rdx, qword [rsp + 0x38]
movzx r9d, word [rsp + 0x32]
movzx r10d, word [rsp + 0x30]
mov qword [rax + rcx*8], rdx
mov eax, 1
inc word [rbx + 0x2c]
mov rdx, qword [rsp + 0x48]
or dword [rbx + 0x28], 0x10
mov rcx, rdx
mov word [rbx + 0x1c], ax
jmp 0x14009a96c
or dword [rbx + 0x28], 0x12
mov edx, dword [rax + 0x44]
call fcn.14009db00
test byte [rbx + 0x28], 0x20
mov r11d, 0x100
mov rdx, qword [rsp + 0x48]
movzx r9d, word [rsp + 0x32]
movzx r10d, word [rsp + 0x30]
mov word [rbx + 0x1c], ax
mov rax, rdx
mov qword [rsp + 0x38], rdx
je 0x14009ab67
movzx eax, word [rbx + 0x2c]
sub eax, 2
movsxd rcx, eax
mov rax, qword [rbx + 0x38]
mov rcx, qword [rax + rcx*8]
mov rax, rdx
mov qword [rsp + 0x40], rcx
jmp 0x14009a971
xor ecx, ecx
mov qword [rsp + 0x40], rcx
jmp 0x14009a971
movzx r9d, word [rsp + 0x32]
movzx r10d, word [rsp + 0x30]
jmp 0x14009a971
mov rax, qword [rsp + 0x38]
mov r11d, 0x100
mov rcx, qword [rsp + 0x40]
movzx r10d, word [rsp + 0x30]
jmp 0x14009a971
inc word [rbx + 0x18]
movzx edx, word [rdx + 0x10]
movzx r8d, word [rbx + 0x18]
test dx, dx
jg 0x14009abc9
mov rax, qword [rdi + 8]
movzx ecx, r10w
cmp word [rax + rcx*2], 0
jl 0x14009abc9
sub dx, si
add word [rbx + 0x16], dx
jmp 0x14009abf8
mov rdx, qword [rdi + 0x10]
lea eax, [r8 - 1]
movsxd rcx, eax
movzx r8d, word [rdx + r8*2]
sub r8w, word [rdx + rcx*2]
add r8w, word [rbx + 0x16]
mov word [rbx + 0x16], r8w
test r11w, r9w
je 0x14009abf8
add r8w, 0xa
mov word [rbx + 0x16], r8w
mov rbp, qword [rsp + 0x60]
movsx eax, word [rdi + 0x5c]
mov rcx, qword [rsp + 0x70]
imul eax, eax, 0xf
mov rcx, qword [rcx + 0x20]
cdq
movsx r8d, word [rcx + 0x4a]
movzx ecx, word [rsp + 0x50]
idiv r8d
add ax, word [rbx + 0x16]
lea edx, [rax + 1]
call fcn.140067db0
test dword [rbx + 0x28], 0x140
mov word [rbx + 0x14], ax
jne 0x14009ac48
movzx edx, word [rbx + 0x16]
movzx ecx, ax
add dx, 0x10
call fcn.140067db0
mov word [rbx + 0x14], ax
movzx ecx, word [rsp + 0x34]
mov rdx, rbx
movzx edi, word [rbx + 0x16]
movzx r8d, word [rsp + 0x68]
lea eax, [rcx + rsi]
add word [rbx + 0x14], ax
lea eax, [rcx + rsi]
add word [rbx + 0x16], ax
mov rcx, qword [rbp + 8]
call fcn.14009c1a0
mov rdx, rbx
mov rcx, rbp
call fcn.14009c050
mov ecx, dword [rbx + 0x28]
mov ebp, eax
movzx eax, word [rsp + 0x36]
test cl, 2
cmovne di, ax
mov word [rbx + 0x16], di
mov rdi, qword [rsp + 0x88]
test cl, 0x10
jne 0x14009acc8
movzx ecx, word [rdi + 0x60]
cmp word [rbx + 0x18], cx
jae 0x14009acc8
add si, word [rsp + 0x34]
mov r8, rdi
mov rdx, qword [rsp + 0x70]
movzx r9d, si
mov rcx, qword [rsp + 0x60]
call fcn.14009a670
movzx eax, word [rsp + 0x36]
mov word [rbx + 0x16], ax
lea rcx, [rsp + 0xa0]
call fcn.14009de30
mov qword [rsp + 0x48], rax
mov r8, rax
mov edx, 0x100
test ebp, ebp
je 0x14009a7c0
mov rax, qword [rsp + 0x98]
movzx esi, word [rsp + 0x30]
movzx ecx, word [rsp + 0x58]
movzx r9d, word [rsp + 0x56]
mov qword [rbx], rax
movzx eax, word [rsp + 0x52]
mov word [rbx + 0x1a], ax
movzx eax, word [rsp + 0x54]
mov word [rbx + 0x1c], ax
mov eax, dword [rsp + 0x6c]
mov dword [rbx + 0x28], eax
movzx eax, word [rsp + 0x36]
mov word [rbx + 0x16], ax
mov word [rbx + 0x18], si
mov word [rbx + 0x2e], cx
mov word [rbx + 0x2c], r9w
cmp si, cx
jne 0x14009ae08
movzx ecx, word [rdi + 0x5e]
movzx eax, si
inc eax
cmp eax, ecx
jae 0x14009ae08
test byte [rdi + 0x64], 0x40
jne 0x14009ae08
mov rax, qword [rdi + 0x10]
movzx ecx, si
cmp word [rax + rcx*2 + 2], 0x2a
jl 0x14009ae08
mov rcx, qword [rsp + 0x90]
mov rdx, rbx
movzx r8d, r9w
inc r8d
call fcn.14009c320
mov ebp, eax
test eax, eax
jne 0x14009ae08
inc word [rbx + 0x18]
mov r8, rdi
inc word [rbx + 0x2e]
movzx ecx, word [rbx + 0x2c]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rsp + 0x70]
movzx r9d, si
mov qword [rax + rcx*8], 0
inc word [rbx + 0x2c]
or dword [rbx + 0x28], 0x8000
mov r10, qword [rdi + 0x10]
mov rcx, qword [rsp + 0x60]
movzx eax, si
movzx r11d, word [r10 + r9*2]
movzx r9d, word [rsp + 0x34]
sub r11w, word [r10 + rax*2 + 2]
add r9w, 5
sub word [rbx + 0x16], r11w
add r9w, r11w
call fcn.14009a670
movzx eax, word [rsp + 0x36]
movzx ecx, word [rsp + 0x58]
mov word [rbx + 0x16], ax
mov eax, dword [rsp + 0x6c]
mov dword [rbx + 0x28], eax
mov word [rbx + 0x18], si
mov word [rbx + 0x2e], cx
mov eax, ebp
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1400a7ab0
add rsp, 0x128
pop rdi
pop rsi
pop rbp
pop rbx
ret