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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x198
mov dword [rsp + 0xcc], r9d
mov eax, dword [rsp + 0xcc]
mov r15, rcx
mov rsi, r8
mov qword [rsp + 0x1e8], rdx
mov word [rsp + 0xa8], ax
mov rax, qword [rcx]
mov rax, qword [rax]
cmp dword [rax + 0x30], 0
mov qword [rsp + 0x50], rax
je 0x140216442
mov r12d, dword [rax + 0x18]
jmp 0x140217663
mov rbx, qword [rcx + 0x10]
mov eax, dword [rbx + 0x38]
mov dword [rsp + 0x9c], eax
and eax, 0x20
cmp eax, 1
sbb eax, eax
and eax, 0x1a7
add eax, 0x18
test byte [r8 + 0x64], 4
je 0x14021646a
and eax, 0xffffffc3
mov rdi, qword [rsp + 0x50]
mov rdx, qword [r15 + 8]
lea rcx, [rsp + 0x120]
xor r12d, r12d
mov rdi, qword [rdi]
mov qword [rsp + 0x78], rdi
mov edi, dword [rbx + 0x18]
mov word [rsp + 0x8a], di
mov di, word [rbx + 0x1a]
mov word [rsp + 0xda], di
mov edi, dword [rbx + 0x1c]
mov word [rsp + 0xdc], di
mov rdi, qword [rbx + 0x16]
mov qword [rsp + 0xe0], rdi
mov di, word [rbx + 0x3e]
mov word [rsp + 0xde], di
mov rdi, qword [rbx + 0x38]
mov qword [rsp + 0xd0], rdi
mov edi, dword [rbx + 0x3c]
mov word [rsp + 0x98], di
mov rdi, qword [rbx]
mov qword [rsp + 0xb0], rdi
mov di, word [rbx + 0x16]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x1e8]
mov word [rsp + 0x9a], di
movzx edi, word [rsp + 0x8a]
mov qword [rsp + 0x28], rsi
mov r8d, dword [rax + 0x44]
mov r9d, edi
mov dword [rsp + 0x8c], edi
call fcn.140219d40
mov word [rbx + 0x12], 0
mov rdi, rax
mov rax, qword [rsi + 0x10]
movsx eax, word [rax]
mov ecx, eax
mov dword [rsp + 0xc0], eax
call fcn.14017cb70
mov qword [rsp + 0x48], 0
mov word [rsp + 0xaa], ax
movzx eax, word [rsp + 0x8a]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x90], rax
add rax, rax
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0xf0], rax
test r12d, r12d
jne 0x1402174bc
test rdi, rdi
je 0x1402174bc
mov r14d, dword [rdi + 0x14]
cmp r14w, 0x100
je 0x14021659e
test byte [rdi + 0x12], 0x80
je 0x1402165d2
mov rax, qword [rsi + 8]
mov rcx, qword [rsp + 0x70]
movsx rdx, word [rax + rcx]
mov rax, rdx
test edx, edx
js 0x1402165ca
mov rdx, qword [rsi + 0x18]
imul rax, rax, 0x18
add rax, qword [rdx + 8]
test byte [rax + 8], 0xf
je 0x1402165d2
jmp 0x1402174a4
inc edx
je 0x1402174a4
mov rax, qword [rdi + 0x28]
and rax, qword [rbx + 8]
mov qword [rsp + 0x60], rax
jne 0x1402174a4
test byte [rdi + 0x13], 1
je 0x1402165f6
cmp r14w, 0x10
je 0x1402174a4
mov rax, qword [rsp + 0x1e8]
test byte [rax + 0x3c], 0x58
je 0x14021661a
mov rcx, qword [rdi]
mov rdx, rax
call fcn.14017a860
mov r12d, eax
test eax, eax
je 0x1402174a7
cmp byte [rsi + 0x62], 0
mov al, byte [r15 + 0x2c]
je 0x140216638
movzx edx, word [rsi + 0x5e]
dec edx
cmp dword [rsp + 0x8c], edx
jne 0x140216638
or eax, 2
jmp 0x14021663b
or eax, 1
mov byte [r15 + 0x2c], al
mov eax, dword [rsp + 0x9c]
mov ecx, dword [r15 + 0x28]
mov dword [rbx + 0x38], eax
mov ax, word [rsp + 0x8a]
mov dword [rsp + 0xf8], ecx
mov word [rbx + 0x18], ax
mov ax, word [rsp + 0xda]
mov word [rbx + 0x1a], ax
mov eax, dword [rsp + 0xdc]
mov word [rbx + 0x1c], ax
mov eax, dword [rsp + 0x98]
mov word [rbx + 0x3c], ax
cmp word [rbx + 0x40], ax
jbe 0x1402166ca
movzx edx, word [rbx + 0x3c]
mov rcx, qword [rbx + 0x48]
mov r8, qword [rbx + 8]
lea eax, [rdx + 1]
mov word [rbx + 0x3c], ax
not r8
mov qword [rcx + rdx*8], rdi
mov rdx, qword [rsp + 0xb0]
or rdx, qword [rdi + 0x28]
and rdx, r8
mov qword [rbx], rdx
mov edx, r14d
and dx, 1
mov word [rsp + 0x80], dx
jne 0x1402166ef
jmp 0x1402167c3
movzx r8d, word [rsp + 0x98]
mov rcx, qword [rsp + 0x78]
mov rdx, rbx
inc r8d
call fcn.140218b10
test eax, eax
je 0x140216688
xor r12d, r12d
jmp 0x1402174bc
mov r8, qword [rdi]
test byte [r8 + 5], 0x10
je 0x14021672e
mov dword [rsp + 0x58], 0x2e
movzx eax, ax
xor edx, edx
xor r10d, r10d
dec eax
cmp eax, edx
jle 0x140216756
mov r9, qword [rcx + rdx*8]
test r9, r9
je 0x140216729
mov r11d, dword [rsp + 0x58]
cmp qword [r9], r8
cmove r11d, r10d
mov dword [rsp + 0x58], r11d
inc rdx
jmp 0x14021670b
mov rax, qword [r8 + 0x20]
mov dword [rsp + 0x58], 0
test rax, rax
je 0x140216756
mov eax, dword [rax]
mov dword [rsp + 0x58], eax
test eax, eax
je 0x140216756
movsxd rcx, eax
call fcn.1401dc4c0
cwde
mov dword [rsp + 0x58], eax
cmp byte [rsi + 0x64], 0
jns 0x1402167ba
cmp word [rsp + 0xaa], 9
jle 0x1402167ba
mov ecx, dword [rsp + 0x58]
call fcn.14017cb70
mov rcx, qword [rsp + 0x70]
mov r8d, eax
mov rax, qword [rsi + 0x10]
mov ax, word [rax + rcx]
add eax, 0xa
sub ax, word [rsp + 0xaa]
sub eax, dword [rsp + 0x58]
add ax, r8w
jns 0x1402167ba
cmp word [rsp + 0xa8], 1
jg 0x1402174a4
mov rax, qword [rsp + 0x78]
test byte [rax + 0x62], 2
jne 0x1402174a4
or dword [rbx + 0x38], 0x100000
or dword [rbx + 0x38], 4
jmp 0x140216a6d
test r14b, 0x82
je 0x140216853
mov rax, qword [rsi + 8]
mov rcx, qword [rsp + 0x70]
movsx edx, word [rax + rcx]
mov eax, dword [rbx + 0x38]
mov ecx, eax
or ecx, 1
mov dword [rbx + 0x38], ecx
cmp edx, 0xffffffff
je 0x140216822
test edx, edx
js 0x140216831
cmp word [rsp + 0xa8], 0
jne 0x140216831
movzx edx, word [rsi + 0x5e]
mov ecx, edx
dec edx
cmp dword [rsp + 0x8c], edx
jne 0x140216831
test byte [rsi + 0x64], 8
jne 0x140216822
dec cx
jne 0x140216829
cmp byte [rsi + 0x62], 0
je 0x140216829
cmp r14w, 2
jne 0x140216829
or eax, 0x1001
jmp 0x14021682e
or eax, 0x10001
mov dword [rbx + 0x38], eax
cmp byte [rsp + 0x149], 1
mov dword [rsp + 0x58], 0
jbe 0x140216a6d
or dword [rbx + 0x38], 0x200000
jmp 0x140216a6d
test r14w, 0x100
je 0x14021686c
or dword [rbx + 0x38], 8
mov dword [rsp + 0x58], 0
jmp 0x140216a6d
mov rax, qword [rsp + 0x1e8]
mov ebp, 1
mov eax, dword [rax + 0x44]
mov dword [rsp + 0x58], eax
mov rax, qword [rdi]
mov rcx, qword [rax + 0x10]
call fcn.1401cc4b0
movzx r12d, word [rsi + 0x60]
sub r12d, dword [rsp + 0x8c]
cmp r12d, eax
cmovle eax, r12d
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x90]
lea r13, [rax + 1]
cmp dword [rsp + 0x40], ebp
jle 0x1402168f3
mov rdx, qword [rdi]
movsxd rax, ebp
shl rax, 5
mov rcx, qword [rdx + 0x10]
mov r11, qword [rcx + 0x20]
mov rcx, qword [rdx + 0x18]
add r11, rax
mov rdx, qword [rcx + 0x20]
mov r12, qword [r11 + 8]
test byte [rcx + 5], 0x10
je 0x1402168e7
add rax, qword [rdx + 0x20]
mov r8, qword [rax + 8]
jmp 0x1402168ec
mov r8, qword [rdx + rax + 8]
cmp byte [r12], 0xa7
je 0x140216905
mov eax, dword [rbx + 0x38]
test r14b, 0x24
jne 0x1402169a7
jmp 0x140216a0e
mov qword [rsp + 0x48], r8
mov eax, dword [rsp + 0x58]
cmp eax, dword [r12 + 0x2c]
jne 0x1402168f3
mov rax, qword [rsi + 8]
mov ax, word [rax + r13*2]
cmp word [r12 + 0x30], ax
jne 0x1402168f3
mov rax, qword [rsi + 0x38]
mov rcx, qword [rsp + 0x90]
mov cl, byte [rax + rcx]
cmp byte [rax + r13], cl
jne 0x1402168f3
mov rcx, r12
call fcn.1401c86d0
mov r8, qword [rsp + 0x48]
movsx edx, al
mov rcx, r8
call fcn.1401c4170
movsx edx, word [r12 + 0x30]
mov rcx, qword [rsi + 0x18]
mov r10d, eax
call fcn.1401eef30
cmp r10b, al
jne 0x1402168f3
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov rdx, r12
call fcn.1401bf430
test rax, rax
je 0x1402168f3
mov rdx, qword [rsi + 0x40]
mov rcx, qword [rax]
mov rdx, qword [rdx + r13*8]
inc r13
call fcn.1401eea80
test eax, eax
jne 0x1402168f3
inc ebp
jmp 0x1402168b0
or eax, 0x22
mov word [rbx + 0x1a], bp
mov dword [rbx + 0x38], eax
test byte [rdi + 0x13], 1
je 0x140216a3f
movzx r8d, word [rbx + 0x3c]
mov rcx, qword [rsp + 0x78]
lea rax, [rdi + 0x38]
mov rdx, rbx
mov qword [rsp + 0x40], rax
inc r8d
call fcn.140218b10
mov dword [rsp + 0x58], eax
test eax, eax
jne 0x1402166e7
movzx eax, word [rbx + 0x3c]
mov rdx, qword [rbx + 0x48]
mov qword [rsp + 0x48], rdi
lea ecx, [rax + 1]
mov word [rbx + 0x3c], cx
mov rcx, qword [rsp + 0x40]
mov qword [rdx + rax*8], rcx
or dword [rbx + 0x38], 0x10
mov word [rbx + 0x1c], 1
jmp 0x140216a6d
mov edx, eax
mov word [rbx + 0x1c], bp
or edx, 0x12
mov dword [rbx + 0x38], edx
test al, 0x20
je 0x140216a57
movzx edx, word [rbx + 0x3c]
mov rax, qword [rbx + 0x48]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x58], 0
mov rax, qword [rax + rdx*8 - 0x10]
mov qword [rsp + 0x48], rax
jmp 0x140216a6d
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], 0
jmp 0x140216a6d
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 0
mov ebp, dword [rbx + 0x18]
test byte [rbx + 0x38], 2
je 0x1402171b7
mov r12, qword [rbx + 0x20]
movsx eax, word [rbx + 0x16]
mov r13d, dword [r12 + 0x68]
mov dword [rsp + 0x5c], eax
test r13d, r13d
jle 0x140217131
movzx eax, bp
mov dword [rsp + 0xac], eax
cmp eax, dword [r12 + 0x6c]
jge 0x140217131
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
test byte [rax + 0x61], 8
jne 0x140217131
mov r14d, dword [r15 + 0x28]
cmp dword [rsp + 0xac], r14d
movzx edi, bp
jne 0x140216dd3
mov rdx, qword [r15 + 0x20]
movzx eax, word [rbx + 0x1c]
movzx r13d, word [rbx + 0x1a]
mov qword [rsp + 0x108], rdx
mov dword [rsp + 0xa0], eax
test rdx, rdx
je 0x140216afb
mov word [rdx + 0x1c], r14w
test r14d, r14d
jne 0x140216b1b
mov rax, qword [r12 + 0x88]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x80], rax
jmp 0x140216b4b
lea r9, [rsp + 0x110]
xor r8d, r8d
mov rcx, r12
call fcn.140215980
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x68], rax
add rax, qword [rsp + 0x118]
mov qword [rsp + 0x80], rax
mov rax, qword [r12 + 0x38]
cmp byte [rax + rdi], 0
je 0x140216b74
mov eax, r13d
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov r13d, dword [rsp + 0xa0]
mov dword [rsp + 0xa0], eax
jmp 0x140216b7e
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x140216c73
mov rax, qword [rdi]
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x108]
mov rdx, r12
mov r9, qword [rax + 0x18]
lea rax, [rsp + 0x104]
mov dword [rsp + 0x20], r13d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0xb8], r9
call fcn.1401ee7d0
mov dword [rsp + 0xac], 0xfffffffe
mov r13d, eax
test eax, eax
jne 0x140216c81
mov edx, dword [rsp + 0x104]
test edx, edx
je 0x140216c81
mov r9, qword [rsp + 0xb8]
mov rcx, r9
lea r9, [rsp + 0x110]
call fcn.1401cc4b0
mov rcx, r12
cmp edx, eax
mov edx, 0xc
mov eax, 0x18
cmovge eax, edx
mov rdx, qword [rsp + 0x108]
xor r8d, r8d
mov r10d, eax
mov dword [rsp + 0xb8], r10d
call fcn.140215980
mov r10d, dword [rsp + 0xb8]
xor edx, edx
mov dword [rsp + 0xac], eax
mov rax, qword [rsp + 0x110]
mov ecx, r10d
and ecx, dword [rdi + 0x14]
test cx, cx
je 0x140216c58
mov rdx, qword [rsp + 0x118]
add rax, rdx
cmp qword [rsp + 0x68], rax
cmovae rax, qword [rsp + 0x68]
xor edi, edi
dec dword [rsp + 0x5c]
mov qword [rsp + 0x68], rax
jmp 0x140216c81
mov dword [rsp + 0xac], 0xfffffffe
xor r13d, r13d
mov dword [rsp + 0xb8], 0xffffffff
test rbp, rbp
je 0x140216d7a
mov rax, qword [rbp]
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x108]
mov rdx, r12
mov r9, qword [rax + 0x18]
lea rax, [rsp + 0x104]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xa0]
mov qword [rsp + 0xa0], r9
mov dword [rsp + 0x20], eax
call fcn.1401ee7d0
mov r13d, eax
test eax, eax
jne 0x140216d7a
mov edx, dword [rsp + 0x104]
test edx, edx
je 0x140216d7a
mov r9, qword [rsp + 0xa0]
mov r14d, 0xc
mov rcx, r9
lea r9, [rsp + 0x110]
call fcn.1401cc4b0
mov r8d, 1
mov rcx, r12
cmp edx, eax
mov rdx, qword [rsp + 0x108]
mov eax, 0x18
cmovl r14d, eax
call fcn.140215980
and r14d, dword [rbp + 0x14]
mov dword [rsp + 0xb8], eax
mov rax, qword [rsp + 0x110]
test r14w, r14w
je 0x140216d56
mov rcx, qword [rsp + 0x118]
mov qword [rsp + 0x60], rcx
add rax, qword [rsp + 0x60]
cmp qword [rsp + 0x80], rax
cmovbe rax, qword [rsp + 0x80]
dec dword [rsp + 0x5c]
xor ebp, ebp
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x108]
mov qword [r15 + 0x20], rax
test r13d, r13d
jne 0x14021713b
mov rcx, qword [rsp + 0x80]
mov eax, 0xa
cmp qword [rsp + 0x68], rcx
jae 0x140216dc0
sub rcx, qword [rsp + 0x68]
call fcn.1401dc4c0
mov ecx, dword [rsp + 0xb8]
cmp dword [rsp + 0xac], ecx
jne 0x140216dc0
sub eax, 0x14
cwde
cmp dword [rsp + 0x5c], eax
cmovle eax, dword [rsp + 0x5c]
mov dword [rsp + 0x5c], eax
jmp 0x14021713b
cmp qword [r12 + 0x20], 0
je 0x140216de6
mov rax, qword [r12 + 0x20]
mov bpl, byte [rax + rdi]
jmp 0x140216dfb
mov rcx, qword [rsp + 0x68]
mov rdx, r12
call fcn.1401d9010
test rax, rax
jne 0x140216ddb
mov bpl, 0x41
mov rax, qword [r12 + 0x40]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov rdx, qword [rax + rdi*8]
call fcn.1401dc050
cmp qword [rsp + 0x48], 0
mov qword [rsp + 0xb8], rax
je 0x140216e6f
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
movzx r8d, bpl
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
lea rax, [rsp + 0x108]
mov qword [rsp + 0x20], rax
call fcn.14020ca50
mov dword [rsp + 0xa0], 0
mov edi, eax
jmp 0x140216e7c
mov dword [rsp + 0xa0], 0xffffffff
xor edi, edi
cmp qword [rsp + 0x40], 0
je 0x140216e88
test edi, edi
je 0x140216e8e
lea eax, [r13 + 1]
jmp 0x140216ed5
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
movzx r8d, bpl
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
lea rax, [rsp + 0x110]
mov qword [rsp + 0x20], rax
call fcn.14020ca50
cmp qword [rsp + 0x110], 0
mov dword [rsp + 0x80], 0
mov edi, eax
jne 0x140216edc
mov eax, dword [r12 + 0x68]
mov dword [rsp + 0x80], eax
cmp qword [rsp + 0x108], 0
jne 0x140216efb
mov r13, qword [rsp + 0x110]
test r13, r13
jne 0x140216efb
xor edi, edi
jmp 0x140217107
lea rax, [rsp + 0x104]
xor r13d, r13d
mov qword [rsp + 0xe8], rax
test edi, edi
jne 0x1402170a9
mov eax, dword [rsp + 0x60]
cmp dword [r12 + 0x68], eax
jle 0x1402170a9
imul rax, qword [rsp + 0x60], 0x28
add rax, qword [r12 + 0x78]
mov r14, qword [rax]
mov edx, dword [rax + 8]
mov dword [rsp + 0x100], 0
movzx eax, byte [r14]
mov dword [rsp + 0xc4], edx
test al, al
js 0x140216f5f
mov dword [rsp + 0x104], eax
mov r8d, 1
jmp 0x140216f73
mov rdx, qword [rsp + 0xe8]
mov rcx, r14
call fcn.1401d8920
movzx r8d, al
movsxd rbp, dword [rsp + 0x104]
cmp ebp, r8d
jle 0x140216f94
mov dword [rsp + 0xc8], 0
cmp dword [rsp + 0xc4], ebp
jge 0x140216fc6
mov ecx, 0x14162
jmp 0x140217020
mov ecx, dword [rsp + 0x100]
call fcn.1401fc670
inc dword [rsp + 0xc8]
mov edx, dword [rsp + 0xc8]
add eax, ebp
cmp dword [rsp + 0xac], edx
jl 0x140217012
movsxd rbp, eax
movsxd rcx, r8d
add rcx, r14
movzx eax, byte [rcx]
test al, al
js 0x140216fde
mov dword [rsp + 0x100], eax
mov al, 1
jmp 0x140216ffb
mov rdx, qword [rsp + 0xf0]
mov dword [rsp + 0xfc], r8d
call fcn.1401d8920
mov r8d, dword [rsp + 0xfc]
movzx eax, al
add r8d, eax
cmp r8d, dword [rsp + 0x104]
jle 0x140216f9e
mov ecx, 0x14168
jmp 0x140217020
cmp dword [rsp + 0xc4], eax
jge 0x14021702b
mov ecx, 0x1416e
call fcn.1401c4970
test eax, eax
jne 0x14021709d
jmp 0x14021706a
test r13, r13
jne 0x140217042
mov rcx, qword [rsp + 0x68]
call fcn.1401f1db0
mov r13, rax
test rax, rax
je 0x140217063
mov edx, dword [rsp + 0x100]
lea rcx, [r14 + rbp]
mov r8, r13
call fcn.1401fc590
mov rax, qword [rsp + 0x68]
mov al, byte [rax + 0x64]
mov byte [r13 + 0x16], al
jmp 0x14021706a
mov edi, 7
jmp 0x14021709f
mov rcx, qword [rsp + 0x108]
test rcx, rcx
je 0x140217605
mov r8, qword [rsp + 0xb8]
mov rdx, r13
call fcn.1401dcaa0
cmp eax, 0x80000000
adc dword [rsp + 0xa0], 0
jmp 0x140217605
mov edi, eax
inc qword [rsp + 0x60]
jmp 0x140216f0e
mov r10d, dword [rsp + 0x80]
sub r10d, dword [rsp + 0xa0]
cmp qword [rsp + 0x48], 0
sete dl
cmp qword [rsp + 0x40], 0
sete al
or dl, al
jne 0x1402170d7
xor edi, edi
cmp r10d, 1
jle 0x140217107
movsxd rcx, dword [r12 + 0x68]
mov edi, 1
call fcn.1401dc4c0
test r10d, r10d
mov ecx, 1
cmovg ecx, r10d
movsx r9d, ax
movsxd rcx, ecx
call fcn.1401dc4c0
cwde
sub r9d, eax
sub word [rbx + 0x16], r9w
mov rcx, qword [rsp + 0x108]
call fcn.1401f1d50
mov rcx, qword [rsp + 0x110]
call fcn.1401f1d50
mov rcx, r13
call fcn.1401f1d50
test edi, edi
jne 0x14021739c
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov eax, dword [rsp + 0x5c]
test rdi, rdi
je 0x14021715d
mov edx, dword [rdi + 0x10]
test dx, dx
jg 0x140217150
add eax, edx
jmp 0x14021715d
test byte [rdi + 0x12], 0x80
jne 0x14021715d
mov eax, dword [rsp + 0x5c]
sub eax, 0x14
test rbp, rbp
je 0x14021718b
mov edx, dword [rbp + 0x10]
test dx, dx
jg 0x14021716e
add eax, edx
jmp 0x140217177
test byte [rbp + 0x12], 0x80
jne 0x140217177
sub eax, 0x14
test rdi, rdi
je 0x14021718b
cmp word [rdi + 0x10], 0
jle 0x14021718b
test dx, dx
jle 0x14021718b
sub eax, 0x14
xor edx, edx
test rdi, rdi
mov ecx, dword [rsp + 0x5c]
setne dl
cmp rbp, 1
sbb edx, 0xffffffff
sub ecx, edx
cmp ax, 0xa
mov edx, 0xa
cmovl eax, edx
cwde
cmp eax, ecx
cmovg eax, ecx
jmp 0x14021765a
lea eax, [rbp + 1]
mov word [rsp + 0x5c], ax
mov word [rbx + 0x18], ax
mov eax, dword [rdi + 0x10]
test ax, ax
jg 0x1402171e8
mov rdx, qword [rsi + 8]
mov rcx, qword [rsp + 0x70]
cmp word [rdx + rcx], 0
js 0x1402171e8
add ax, word [rbx + 0x16]
sub eax, dword [rsp + 0x58]
jmp 0x14021765a
cmp word [rsp + 0xa8], 0
mov qword [rsp + 0x108], 0
jne 0x140217638
cmp dword [rsi + 0x68], 0
je 0x140217638
movzx eax, word [rsp + 0x5c]
mov dword [rsp + 0x68], eax
cmp dword [rsi + 0x6c], eax
jl 0x140217638
cmp word [rsp + 0x80], 0
je 0x140217237
mov rax, qword [rdi]
test byte [rax + 5], 0x10
jne 0x140217638
mov rax, qword [rsp + 0x78]
test byte [rax + 0x61], 8
jne 0x140217638
mov rax, qword [rdi]
test r14w, 0x182
je 0x140217272
mov r8, qword [rax + 0x18]
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x108]
mov rdx, r15
call fcn.1402156a0
mov r12d, eax
jmp 0x140217326
mov rbp, qword [rax + 0x20]
mov rax, qword [r15 + 0x10]
xor r10d, r10d
lea r9, [rsp + 0x110]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x10]
movsx ecx, word [rax]
call fcn.1401dc5f0
mov r11d, dword [r15 + 0x28]
mov r13, rax
cmp dword [rbp], r10d
jle 0x140217310
mov rax, r10
mov rcx, qword [rsp + 0x50]
mov rdx, r15
mov dword [rsp + 0xac], r11d
shl rax, 5
mov qword [rsp + 0xa0], r10
mov r8, qword [rbp + rax + 8]
mov qword [rsp + 0x80], r9
mov qword [rsp + 0x110], r13
call fcn.1402156a0
mov r10, qword [rsp + 0xa0]
mov r11d, dword [rsp + 0xac]
mov rdx, qword [rsp + 0x110]
add qword [rsp + 0x60], rdx
mov r12d, eax
inc r10
test eax, eax
mov dword [r15 + 0x28], r11d
mov r9, qword [rsp + 0x80]
je 0x14021729c
jmp 0x140217326
cmp r13, qword [rsp + 0x60]
cmova r13, qword [rsp + 0x60]
xor r12d, r12d
mov qword [rsp + 0x108], r13
cmp r12d, 0xc
je 0x140217335
test r12d, r12d
jne 0x1402174bc
mov rcx, qword [rsp + 0x108]
test rcx, rcx
je 0x140217638
call fcn.1401dc4c0
cmp dword [rsp + 0x68], 1
mov word [rbx + 0x16], ax
jne 0x14021737e
mov rcx, qword [rsi + 0x10]
movsx edx, ax
add edx, 9
movsx ecx, word [rcx]
cmp edx, ecx
jl 0x14021737e
mov dx, word [rdi + 0x12]
mov ecx, edx
or ch, 0x40
mov word [rdi + 0x12], cx
and dh, 0x20
je 0x14021737e
or byte [r15 + 0x2d], 4
cmp ax, word [rsp + 0x9a]
jle 0x140217394
mov ax, word [rsp + 0x9a]
mov word [rbx + 0x16], ax
mov eax, dword [rsp + 0x58]
sub word [rbx + 0x16], ax
mov al, byte [rsi + 0x64]
mov bp, word [rbx + 0x16]
and eax, 3
cmp al, 3
jne 0x1402173af
lea eax, [rbp + 0x10]
jmp 0x1402173cd
movsx eax, word [rsi + 0x5c]
mov rdi, qword [rsp + 0x1e8]
imul eax, eax, 0xf
mov rdx, qword [rdi + 0x20]
movsx ecx, word [rdx + 0x3c]
cdq
idiv ecx
lea eax, [rbp + rax + 1]
movsx ecx, word [rsp + 0xaa]
movsx edx, ax
call fcn.1401dc520
mov word [rbx + 0x14], ax
test dword [rbx + 0x38], 0x4000140
jne 0x1402173fc
lea edx, [rbp + 0x10]
movsx ecx, ax
movsx edx, dx
call fcn.1401dc520
mov word [rbx + 0x14], ax
mov edi, dword [rsp + 0x58]
add edi, dword [rsp + 0xa8]
mov rdx, rbx
lea eax, [rdi + rbp]
add word [rbx + 0x14], di
mov rcx, qword [r15 + 8]
mov word [rbx + 0x16], ax
mov r8d, dword [rsp + 0xc0]
call fcn.140218990
mov rdx, rbx
mov rcx, r15
call fcn.140218700
mov r12d, eax
mov eax, dword [rbx + 0x38]
test al, 2
cmovne bp, word [rsp + 0x9a]
mov word [rbx + 0x16], bp
test al, 0x10
jne 0x14021748b
mov eax, dword [rbx + 0x18]
cmp ax, word [rsi + 0x60]
jae 0x14021748b
cmp ax, word [rsi + 0x5e]
jb 0x140217464
mov dl, byte [rsi + 0x64]
and edx, 3
cmp dl, 2
je 0x14021748b
cmp ax, 3
jbe 0x140217474
mov rcx, qword [rsp + 0x50]
call fcn.1401e8170
mov rdx, qword [rsp + 0x1e8]
movsx r9d, di
mov r8, rsi
mov rcx, r15
call fcn.1402163f0
mov ax, word [rsp + 0x9a]
mov word [rbx + 0x16], ax
mov eax, dword [rsp + 0xf8]
mov dword [r15 + 0x28], eax
jmp 0x1402174a7
xor r12d, r12d
lea rcx, [rsp + 0x120]
call fcn.140219e40
mov rdi, rax
jmp 0x14021657a
mov rax, qword [rsp + 0xb0]
mov di, word [rsp + 0xde]
mov qword [rbx], rax
mov rax, qword [rsp + 0xe0]
mov qword [rbx + 0x16], rax
mov rax, qword [rsp + 0xd0]
mov qword [rbx + 0x38], rax
cmp word [rsp + 0x8a], di
jne 0x140217663
mov edx, dword [rsp + 0x8c]
movzx eax, word [rsi + 0x5e]
inc edx
cmp edx, eax
jge 0x140217663
mov edi, dword [rsp + 0x98]
cmp word [rsp + 0x8a], di
jne 0x140217663
mov al, byte [rsi + 0x64]
and eax, 0xffffffc0
cmp al, 0x80
jne 0x140217663
mov rax, qword [rsp + 0x78]
test byte [rax + 0x61], 0x40
jne 0x140217663
mov rax, qword [rsi + 0x10]
mov rdi, qword [rsp + 0x70]
cmp word [rax + rdi + 2], 0x29
jle 0x140217663
movzx r8d, word [rsp + 0x98]
mov rcx, qword [rsp + 0x78]
mov rdx, rbx
inc r8d
call fcn.140218b10
mov r12d, eax
test eax, eax
jne 0x140217663
movzx eax, word [rbx + 0x3c]
mov rdx, qword [rbx + 0x48]
mov r8, rsi
inc word [rbx + 0x18]
mov rdi, qword [rsp + 0x70]
lea ecx, [rax + 1]
inc word [rbx + 0x3e]
mov word [rbx + 0x3c], cx
mov rcx, r15
mov qword [rdx + rax*8], 0
mov rax, qword [rsi + 0x10]
or dword [rbx + 0x38], 0x8000
mov r9w, word [rax + rdi]
mov ax, word [rax + rdi + 2]
mov edi, dword [rsp + 0xcc]
mov edx, eax
sub edx, r9d
add word [rbx + 0x16], dx
lea r9d, [r9 + rdi + 5]
mov rdx, qword [rsp + 0x1e8]
sub r9d, eax
movsx r9d, r9w
call fcn.1402163f0
mov ax, word [rsp + 0x9a]
mov word [rbx + 0x16], ax
mov ax, word [rsp + 0x8a]
mov word [rbx + 0x18], ax
mov word [rbx + 0x3e], ax
mov eax, dword [rsp + 0x9c]
mov dword [rbx + 0x38], eax
jmp 0x140217663
mov rcx, qword [rsp + 0x110]
test rcx, rcx
je 0x14021709f
mov r8, qword [rsp + 0xb8]
mov rdx, r13
call fcn.1401dcaa0
cmp eax, 0x80000000
adc dword [rsp + 0x80], 0
jmp 0x14021709f
mov rdx, qword [rsi + 0x10]
movzx ebp, word [rsp + 0x5c]
mov ax, word [rbx + 0x16]
add ax, word [rdx + rbp*2]
sub ax, word [rdx + rbp*2 - 2]
test r14w, 0x100
lea edx, [rax + 0xa]
cmovne eax, edx
mov word [rbx + 0x16], ax
jmp 0x14021739c
mov eax, r12d
add rsp, 0x198
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret