Function at 0x1402d5200
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, 0x1a8
mov dword [rsp + 0xd8], r9d
mov eax, dword [rsp + 0xd8]
mov r15, rcx
mov rbx, r8
mov qword [rsp + 0x1f8], rdx
mov word [rsp + 0xa8], ax
mov rax, qword [rcx]
mov rax, qword [rax]
cmp dword [rax + 0x30], 0
mov qword [rsp + 0x40], rax
je 0x1402d5251
mov edi, dword [rax + 0x18]
jmp 0x1402d648d
mov r13, qword [rcx + 0x10]
mov eax, dword [r13 + 0x38]
mov dword [rsp + 0x9c], eax
and eax, 0x20
cmp eax, 1
sbb eax, eax
and eax, 0x1a7
add eax, 0x18
test word [r8 + 0x64], 0x104
je 0x1402d528b
test byte [r8 + 0x64], 4
je 0x1402d5283
and eax, 0xffffffc3
test byte [rbx + 0x65], 1
je 0x1402d528b
and al, 0x7c
mov rsi, qword [rsp + 0x40]
lea rcx, [rsp + 0x130]
mov di, word [r13 + 0x1a]
mov rdx, qword [r15 + 8]
mov rsi, qword [rsi]
mov word [rsp + 0xde], di
mov rdi, qword [r13 + 0x16]
mov qword [rsp + 0x70], rsi
mov esi, dword [r13 + 0x18]
mov qword [rsp + 0xf0], rdi
mov rdi, qword [r13 + 0x38]
mov word [rsp + 0x84], si
mov esi, dword [r13 + 0x1c]
mov qword [rsp + 0xe8], rdi
mov rdi, qword [r13]
mov word [rsp + 0xe0], si
mov si, word [r13 + 0x3e]
mov qword [rsp + 0xb0], rdi
movzx edi, word [rsp + 0x84]
mov word [rsp + 0xe2], si
mov esi, dword [r13 + 0x3c]
mov r9d, edi
mov dword [rsp + 0x80], edi
xor edi, edi
mov word [rsp + 0x86], si
mov si, word [r13 + 0x16]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x1f8]
mov qword [rsp + 0x28], rbx
mov word [rsp + 0xdc], si
mov r8d, dword [rax + 0x44]
call fcn.1402d8ce0
mov word [r13 + 0x12], 0
mov rsi, rax
mov rax, qword [rbx + 0x10]
movsx eax, word [rax]
mov ecx, eax
mov dword [rsp + 0xc8], eax
call fcn.140235c50
xor ecx, ecx
mov word [rsp + 0xaa], ax
movzx eax, word [rsp + 0x84]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0xa0], rax
add rax, rax
mov qword [rsp + 0x68], rax
movzx eax, word [rsp + 0x86]
inc eax
mov dword [rsp + 0x108], eax
movsx eax, word [rsp + 0xaa]
mov dword [rsp + 0x10c], eax
test edi, edi
jne 0x1402d62fb
test rsi, rsi
je 0x1402d62fb
mov eax, dword [rsi + 0x14]
cmp ax, 0x100
mov word [rsp + 0x5c], ax
je 0x1402d53d1
test byte [rsi + 0x12], 0x80
je 0x1402d53fe
mov rax, qword [rbx + 8]
mov rdi, qword [rsp + 0x68]
movsx rdx, word [rax + rdi]
test edx, edx
mov rax, rdx
js 0x1402d53fa
mov rdx, qword [rbx + 0x18]
imul rax, rax, 0x18
add rax, qword [rdx + 8]
test byte [rax + 8], 0xf
je 0x1402d53fe
jmp 0x1402d540d
inc edx
je 0x1402d540d
mov rax, qword [rsi + 0x28]
and rax, qword [r13 + 8]
mov qword [rsp + 0x60], rax
je 0x1402d5414
xor edi, edi
jmp 0x1402d62e6
test byte [rsi + 0x13], 1
je 0x1402d5422
cmp word [rsp + 0x5c], 0x10
je 0x1402d540d
mov rax, qword [rsp + 0x1f8]
test byte [rax + 0x3c], 0x58
je 0x1402d543f
mov rcx, qword [rsi]
mov rdx, rax
call fcn.140233730
test eax, eax
je 0x1402d540d
cmp byte [rbx + 0x62], 0
mov al, byte [r15 + 0x2c]
je 0x1402d545d
movzx edx, word [rbx + 0x5e]
dec edx
cmp dword [rsp + 0x80], edx
jne 0x1402d545d
or eax, 2
jmp 0x1402d5460
or eax, 1
mov byte [r15 + 0x2c], al
mov eax, dword [rsp + 0x9c]
mov edi, dword [r15 + 0x28]
mov dword [r13 + 0x38], eax
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0xe4], edi
mov word [r13 + 0x18], ax
mov ax, word [rsp + 0xde]
mov word [r13 + 0x1a], ax
mov eax, dword [rsp + 0xe0]
mov word [r13 + 0x1c], ax
mov ax, word [rsp + 0x86]
cmp ax, word [r13 + 0x40]
mov word [r13 + 0x3c], ax
jae 0x1402d54f6
movzx edx, word [r13 + 0x3c]
mov rcx, qword [r13 + 0x48]
mov r8, qword [r13 + 8]
mov edi, dword [rsp + 0x5c]
lea eax, [rdx + 1]
mov word [r13 + 0x3c], ax
mov qword [rcx + rdx*8], rsi
mov rdx, qword [rsp + 0xb0]
not r8
or rdx, qword [rsi + 0x28]
and rdx, r8
and di, 1
mov qword [r13], rdx
mov word [rsp + 0x78], di
jne 0x1402d5516
jmp 0x1402d55ea
mov r8d, dword [rsp + 0x108]
mov rdx, r13
mov rcx, qword [rsp + 0x70]
call fcn.1402d79b0
test eax, eax
je 0x1402d54b3
xor edi, edi
jmp 0x1402d62fb
mov r8, qword [rsi]
test byte [r8 + 5], 0x10
je 0x1402d5553
movzx eax, ax
xor edx, edx
mov dword [rsp + 0x58], 0x2e
xor r11d, r11d
dec eax
cmp eax, edx
jle 0x1402d5579
mov r9, qword [rcx + rdx*8]
test r9, r9
je 0x1402d554e
mov edi, dword [rsp + 0x58]
cmp qword [r9], r8
cmove edi, r11d
mov dword [rsp + 0x58], edi
inc rdx
jmp 0x1402d5532
mov rax, qword [r8 + 0x20]
xor edx, edx
mov dword [rsp + 0x58], edx
test rax, rax
je 0x1402d5579
mov eax, dword [rax]
test eax, eax
mov dword [rsp + 0x58], eax
je 0x1402d5579
movsxd rcx, eax
call fcn.14029cac0
cwde
mov dword [rsp + 0x58], eax
cmp byte [rbx + 0x64], 0
jns 0x1402d55e0
cmp word [rsp + 0xaa], 9
jle 0x1402d55e0
mov rax, qword [rbx + 0x10]
mov rdi, qword [rsp + 0x68]
movsx ecx, word [rsp + 0x58]
mov r8w, word [rax + rdi]
call fcn.140235c50
add r8d, 0xa
sub r8w, word [rsp + 0xaa]
sub r8d, dword [rsp + 0x58]
add r8w, ax
jns 0x1402d55e0
cmp word [rsp + 0xa8], 1
jg 0x1402d540d
mov rax, qword [rsp + 0x70]
test byte [rax + 0x62], 2
jne 0x1402d540d
or dword [r13 + 0x38], 0x100000
or dword [r13 + 0x38], 4
jmp 0x1402d5881
test byte [rsp + 0x5c], 0x82
je 0x1402d566d
mov rax, qword [rbx + 8]
mov rdi, qword [rsp + 0x68]
movsx edx, word [rax + rdi]
mov eax, dword [r13 + 0x38]
mov ecx, eax
or ecx, 1
cmp edx, 0xffffffff
mov dword [r13 + 0x38], ecx
je 0x1402d5649
test edx, edx
js 0x1402d5659
cmp word [rsp + 0xa8], 0
jne 0x1402d5659
movzx edx, word [rbx + 0x5e]
mov ecx, edx
dec edx
cmp dword [rsp + 0x80], edx
jne 0x1402d5659
test byte [rbx + 0x64], 8
jne 0x1402d5649
dec cx
jne 0x1402d5650
cmp byte [rbx + 0x62], 0
je 0x1402d5650
cmp word [rsp + 0x5c], 2
jne 0x1402d5650
or eax, 0x1001
jmp 0x1402d5655
or eax, 0x10001
mov dword [r13 + 0x38], eax
cmp byte [rsp + 0x159], 1
jbe 0x1402d567b
or dword [r13 + 0x38], 0x200000
jmp 0x1402d567b
test word [rsp + 0x5c], 0x100
je 0x1402d5686
or dword [r13 + 0x38], 8
xor eax, eax
mov dword [rsp + 0x58], eax
jmp 0x1402d5881
mov rax, qword [rsp + 0x1f8]
mov eax, dword [rax + 0x44]
mov dword [rsp + 0x58], eax
mov rax, qword [rsi]
mov rcx, qword [rax + 0x10]
call fcn.14028bc50
mov edi, dword [rsp + 0x80]
movzx ebp, word [rbx + 0x60]
sub ebp, edi
mov edi, 1
cmp ebp, eax
cmovle eax, ebp
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xa0]
lea r12, [rax + 1]
cmp dword [rsp + 0x48], edi
jle 0x1402d570a
mov rdx, qword [rsi]
movsxd rax, edi
shl rax, 5
mov rcx, qword [rdx + 0x10]
mov r10, qword [rcx + 0x20]
mov rcx, qword [rdx + 0x18]
add r10, rax
test byte [rcx + 5], 0x10
mov r14, qword [r10 + 8]
mov rdx, qword [rcx + 0x20]
je 0x1402d56ff
add rax, qword [rdx + 0x20]
mov rbp, qword [rax + 8]
jmp 0x1402d5704
mov rbp, qword [rdx + rax + 8]
cmp byte [r14], 0xa7
je 0x1402d571e
test byte [rsp + 0x5c], 0x24
mov eax, dword [r13 + 0x38]
jne 0x1402d57b9
jmp 0x1402d5826
mov eax, dword [rsp + 0x58]
cmp eax, dword [r14 + 0x2c]
jne 0x1402d570a
mov rax, qword [rbx + 8]
mov r8d, dword [r14 + 0x30]
cmp r8w, word [rax + r12*2]
mov dword [rsp + 0x50], r8d
jne 0x1402d570a
mov rax, qword [rbx + 0x38]
mov rcx, qword [rsp + 0xa0]
mov cl, byte [rax + rcx]
cmp byte [rax + r12], cl
jne 0x1402d570a
mov rcx, r14
call fcn.140287b70
mov rcx, rbp
movsx edx, al
call fcn.1402832a0
mov r8d, dword [rsp + 0x50]
mov rcx, qword [rbx + 0x18]
mov r9d, eax
movsx edx, r8w
call fcn.1402ad900
cmp r9b, al
jne 0x1402d570a
mov rcx, qword [rsp + 0x40]
mov r8, rbp
mov rdx, r14
call fcn.14027e100
test rax, rax
je 0x1402d570a
mov rdx, qword [rbx + 0x40]
mov rcx, qword [rax]
mov rdx, qword [rdx + r12*8]
inc r12
call fcn.1402ad440
test eax, eax
jne 0x1402d570a
inc edi
jmp 0x1402d56c8
or eax, 0x22
test byte [rsi + 0x13], 1
mov word [r13 + 0x1a], di
mov dword [r13 + 0x38], eax
je 0x1402d5858
movzx r8d, word [r13 + 0x3c]
lea rax, [rsi + 0x38]
mov rdx, r13
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
inc r8d
call fcn.1402d79b0
test eax, eax
mov dword [rsp + 0x58], eax
jne 0x1402d550f
movzx eax, word [r13 + 0x3c]
mov qword [rsp + 0x50], rsi
mov rdx, qword [r13 + 0x48]
mov rdi, qword [rsp + 0x48]
lea ecx, [rax + 1]
mov word [r13 + 0x3c], cx
mov qword [rdx + rax*8], rdi
or dword [r13 + 0x38], 0x10
mov word [r13 + 0x1c], 1
jmp 0x1402d5881
mov edx, eax
mov word [r13 + 0x1c], di
or edx, 0x12
test al, 0x20
mov dword [r13 + 0x38], edx
je 0x1402d586f
movzx edx, word [r13 + 0x3c]
mov qword [rsp + 0x48], rsi
mov rax, qword [r13 + 0x48]
mov rax, qword [rax + rdx*8 - 0x10]
mov qword [rsp + 0x50], rax
xor eax, eax
mov dword [rsp + 0x58], eax
jmp 0x1402d5881
xor r12d, r12d
xor r14d, r14d
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x48], r14
jmp 0x1402d5881
xor edi, edi
xor ebp, ebp
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x50], rbp
test byte [r13 + 0x38], 2
movzx ebp, word [r13 + 0x18]
je 0x1402d601e
mov rsi, qword [r13 + 0x20]
movsx eax, word [r13 + 0x16]
mov edi, dword [rsi + 0x68]
mov dword [rsp + 0x5c], eax
test edi, edi
jg 0x1402d58b4
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
jmp 0x1402d5f9e
movzx eax, bp
cmp eax, dword [rsi + 0x70]
mov dword [rsp + 0xb8], eax
jge 0x1402d58a5
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
test byte [rax + 0x61], 8
mov qword [rsp + 0x78], rax
jne 0x1402d58a5
mov r11d, dword [r15 + 0x28]
cmp dword [rsp + 0xb8], r11d
jne 0x1402d5bf7
mov rdx, qword [r15 + 0x20]
movzx eax, word [r13 + 0x1a]
movzx r14d, word [r13 + 0x1c]
test rdx, rdx
mov qword [rsp + 0x118], rdx
mov dword [rsp + 0x88], eax
je 0x1402d590f
mov word [rdx + 0x1c], r11w
test r11d, r11d
jne 0x1402d5925
mov rax, qword [rsi + 0x90]
xor r12d, r12d
mov qword [rsp + 0x78], rax
jmp 0x1402d5960
lea r9, [rsp + 0x120]
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x90], r11d
call fcn.1402d4750
mov r12, qword [rsp + 0x120]
mov rax, qword [rsp + 0x128]
mov r11d, dword [rsp + 0x90]
add rax, r12
mov qword [rsp + 0x78], rax
mov rax, qword [rsi + 0x38]
cmp byte [rax + rbp], 0
jne 0x1402d5988
mov eax, r14d
mov rbp, qword [rsp + 0x48]
mov r14d, dword [rsp + 0x88]
mov dword [rsp + 0x88], eax
mov rdi, qword [rsp + 0x50]
jmp 0x1402d5992
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x1402d5a93
mov rax, qword [rdi]
lea r8, [rsp + 0x118]
mov rdx, rsi
mov dword [rsp + 0x98], r11d
mov rcx, qword [rsp + 0x40]
mov r9, qword [rax + 0x18]
lea rax, [rsp + 0x114]
mov dword [rsp + 0x28], r11d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0xb8], r9
call fcn.1402ad1b0
mov r11d, dword [rsp + 0x98]
mov dword [rsp + 0x90], 0xfffffffe
test eax, eax
mov r10d, eax
jne 0x1402d5aa1
mov r8d, dword [rsp + 0x114]
test r8d, r8d
je 0x1402d5aa1
mov rcx, qword [rsp + 0xb8]
mov dword [rsp + 0xac], eax
mov r14d, 0x18
lea r9, [rsp + 0x120]
call fcn.14028bc50
mov rdx, qword [rsp + 0x118]
mov rcx, rsi
cmp r8d, eax
mov eax, 0xc
cmovge r14d, eax
xor r8d, r8d
call fcn.1402d4750
and r14d, dword [rdi + 0x14]
xor edx, edx
mov dword [rsp + 0x90], eax
mov r11d, dword [rsp + 0x98]
mov rax, qword [rsp + 0x120]
mov r10d, dword [rsp + 0xac]
test r14w, r14w
je 0x1402d5a81
mov rdx, qword [rsp + 0x128]
add rax, rdx
cmp r12, rax
cmovb r12, rax
xor edi, edi
dec dword [rsp + 0x5c]
jmp 0x1402d5aa1
mov dword [rsp + 0x90], 0xfffffffe
xor r10d, r10d
or r14d, 0xffffffff
test rbp, rbp
je 0x1402d5ba8
mov rax, qword [rbp]
lea r8, [rsp + 0x118]
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
mov r9, qword [rax + 0x18]
lea rax, [rsp + 0x114]
mov dword [rsp + 0x28], r11d
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x88]
mov qword [rsp + 0x88], r9
mov dword [rsp + 0x20], eax
call fcn.1402ad1b0
test eax, eax
mov r10d, eax
jne 0x1402d5ba8
mov r8d, dword [rsp + 0x114]
test r8d, r8d
je 0x1402d5ba8
mov rcx, qword [rsp + 0x88]
mov dword [rsp + 0x98], eax
mov r11d, 0x18
lea r9, [rsp + 0x120]
call fcn.14028bc50
mov rdx, qword [rsp + 0x118]
mov rcx, rsi
cmp r8d, eax
mov eax, 0xc
mov r8d, 1
cmovge r11d, eax
mov dword [rsp + 0x88], r11d
call fcn.1402d4750
mov r11d, dword [rsp + 0x88]
and r11d, dword [rbp + 0x14]
mov r14d, eax
mov r10d, dword [rsp + 0x98]
mov rax, qword [rsp + 0x120]
test r11w, r11w
je 0x1402d5b8a
mov rsi, qword [rsp + 0x128]
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x60]
add rax, rsi
cmp qword [rsp + 0x78], rax
cmovbe rax, qword [rsp + 0x78]
xor ebp, ebp
dec dword [rsp + 0x5c]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x118]
test r10d, r10d
mov qword [r15 + 0x20], rax
jne 0x1402d5f9e
mov rsi, qword [rsp + 0x78]
mov eax, 0xa
cmp r12, rsi
jae 0x1402d5be4
mov rcx, rsi
sub rcx, r12
call fcn.14029cac0
cmp dword [rsp + 0x90], r14d
jne 0x1402d5be4
sub eax, 0x14
cwde
cmp dword [rsp + 0x5c], eax
cmovle eax, dword [rsp + 0x5c]
mov dword [rsp + 0x5c], eax
jmp 0x1402d5f9e
cmp qword [rsi + 0x20], 0
je 0x1402d5c08
mov rax, qword [rsi + 0x20]
mov r12b, byte [rax + rbp]
jmp 0x1402d5c1d
mov rcx, qword [rsp + 0x78]
mov rdx, rsi
call fcn.140299660
test rax, rax
jne 0x1402d5bfe
mov r12b, 0x41
mov rax, qword [rsi + 0x40]
xor r11d, r11d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x118], r11
mov qword [rsp + 0x120], r11
mov rdx, qword [rax + rbp*8]
call fcn.14029c670
cmp qword [rsp + 0x50], 0
mov qword [rsp + 0xc0], rax
je 0x1402d5c81
mov rax, qword [rsp + 0x50]
xor r9d, r9d
movzx r8d, r12b
xor r14d, r14d
mov rcx, qword [rsp + 0x40]
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
lea rax, [rsp + 0x118]
mov qword [rsp + 0x20], rax
call fcn.1402cabc0
jmp 0x1402d5c87
xor eax, eax
or r14d, 0xffffffff
cmp qword [rsp + 0x48], 0
je 0x1402d5c93
test eax, eax
je 0x1402d5c98
lea ebp, [rdi + 1]
jmp 0x1402d5cd2
mov rax, qword [rsp + 0x48]
xor r9d, r9d
movzx r8d, r12b
xor ebp, ebp
mov rcx, qword [rsp + 0x40]
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
lea rax, [rsp + 0x120]
mov qword [rsp + 0x20], rax
call fcn.1402cabc0
cmp qword [rsp + 0x120], 0
jne 0x1402d5cd2
mov ebp, dword [rsi + 0x68]
mov rdi, qword [rsp + 0x118]
mov qword [rsp + 0x88], rdi
mov rdi, qword [rsp + 0x120]
cmp qword [rsp + 0x88], 0
je 0x1402d5d1c
lea rcx, [rsp + 0x114]
xor edi, edi
lea rdx, [rsp + 0x110]
mov qword [rsp + 0xf8], rcx
mov qword [rsp + 0x100], rdx
jmp 0x1402d5da0
test rdi, rdi
jne 0x1402d5cf5
xor ebp, ebp
jmp 0x1402d5f6f
mov eax, dword [rsp + 0x60]
cmp dword [rsi + 0x68], eax
jle 0x1402d5f1c
imul rax, qword [rsp + 0x60], 0x28
xor r10d, r10d
add rax, qword [rsi + 0x80]
mov dword [rsp + 0x110], r10d
mov ecx, dword [rax + 8]
mov rax, qword [rax]
mov dword [rsp + 0xcc], ecx
mov qword [rsp + 0x90], rax
movzx eax, byte [rax]
test al, al
js 0x1402d5da9
mov dword [rsp + 0x114], eax
mov r12d, 1
mov eax, dword [rsp + 0x114]
cmp eax, r12d
mov dword [rsp + 0x98], eax
jg 0x1402d5dc4
mov ecx, 0x148f5
call fcn.140283940
test eax, eax
je 0x1402d5ec6
inc qword [rsp + 0x60]
test eax, eax
je 0x1402d5d28
jmp 0x1402d5f1c
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x90]
call fcn.140298fb0
movzx r12d, al
jmp 0x1402d5d76
cmp dword [rsp + 0xcc], eax
jl 0x1402d5d89
mov eax, dword [rsp + 0x98]
xor r9d, r9d
mov dword [rsp + 0xd0], r9d
mov dword [rsp + 0xac], eax
mov rax, qword [rsp + 0x90]
movsxd rcx, r12d
add rcx, rax
movzx eax, byte [rcx]
test al, al
js 0x1402d5e06
mov dword [rsp + 0x110], eax
mov al, 1
jmp 0x1402d5e13
mov rdx, qword [rsp + 0x100]
call fcn.140298fb0
movzx eax, al
add r12d, eax
cmp dword [rsp + 0x98], r12d
jge 0x1402d5e2d
mov ecx, 0x148fb
jmp 0x1402d5d8e
mov eax, dword [rsp + 0x110]
mov ecx, eax
mov dword [rsp + 0xd4], eax
call fcn.1402ba110
mov ecx, dword [rsp + 0xac]
inc dword [rsp + 0xd0]
add eax, ecx
mov ecx, dword [rsp + 0xd0]
cmp dword [rsp + 0xb8], ecx
jge 0x1402d5ddf
cmp dword [rsp + 0xcc], eax
jge 0x1402d5e79
mov ecx, 0x14901
jmp 0x1402d5d8e
test rdi, rdi
jne 0x1402d5e99
mov rcx, qword [rsp + 0x78]
call fcn.1402b0810
mov rdi, rax
mov eax, 7
test rdi, rdi
je 0x1402d5d9b
movsxd r12, dword [rsp + 0xac]
mov r8, rdi
mov rcx, qword [rsp + 0x90]
mov edx, dword [rsp + 0xd4]
add rcx, r12
call fcn.1402ba030
mov rax, qword [rsp + 0x78]
mov al, byte [rax + 0x64]
mov byte [rdi + 0x16], al
cmp qword [rsp + 0x88], 0
je 0x1402d5ef2
mov r8, qword [rsp + 0xc0]
mov rdx, rdi
mov rcx, qword [rsp + 0x88]
call fcn.14029d0b0
cmp eax, 0x80000000
adc r14d, 0
mov rcx, qword [rsp + 0x120]
test rcx, rcx
je 0x1402d5f15
mov r8, qword [rsp + 0xc0]
mov rdx, rdi
call fcn.14029d0b0
test eax, eax
js 0x1402d5f15
inc ebp
xor eax, eax
jmp 0x1402d5d9b
mov r9d, ebp
sub r9d, r14d
cmp qword [rsp + 0x50], 0
sete al
cmp qword [rsp + 0x48], 0
sete dl
or al, dl
jne 0x1402d5f40
xor ebp, ebp
cmp r9d, 1
jle 0x1402d5f6f
movsxd rcx, dword [rsi + 0x68]
mov ebp, 1
call fcn.14029cac0
test r9d, r9d
movsx r8d, ax
mov eax, 1
cmovg eax, r9d
movsxd rcx, eax
call fcn.14029cac0
cwde
sub r8d, eax
sub word [r13 + 0x16], r8w
mov rcx, qword [rsp + 0x88]
call fcn.1402b07b0
mov rcx, qword [rsp + 0x120]
call fcn.1402b07b0
mov rcx, rdi
call fcn.1402b07b0
test ebp, ebp
je 0x1402d58a5
jmp 0x1402d61da
test rdi, rdi
mov edx, dword [rsp + 0x5c]
je 0x1402d5fc3
mov eax, dword [rdi + 0x10]
test ax, ax
jg 0x1402d5fb6
mov esi, edx
lea edx, [rax + rsi]
jmp 0x1402d5fc3
test byte [rdi + 0x12], 0x80
jne 0x1402d5fc3
mov eax, dword [rsp + 0x5c]
lea edx, [rax - 0x14]
test rbp, rbp
je 0x1402d5ff1
mov eax, dword [rbp + 0x10]
test ax, ax
jg 0x1402d5fd4
add edx, eax
jmp 0x1402d5fdd
test byte [rbp + 0x12], 0x80
jne 0x1402d5fdd
sub edx, 0x14
test rdi, rdi
je 0x1402d5ff1
cmp word [rdi + 0x10], 0
jle 0x1402d5ff1
test ax, ax
jle 0x1402d5ff1
sub edx, 0x14
mov eax, dword [rsp + 0x5c]
xor ecx, ecx
test rdi, rdi
setne cl
cmp rbp, 1
sbb ecx, 0xffffffff
sub eax, ecx
mov ecx, 0xa
cmp dx, cx
cmovl edx, ecx
movsx edx, dx
cmp eax, edx
cmovg eax, edx
jmp 0x1402d61d5
mov eax, dword [rsi + 0x10]
inc ebp
mov word [r13 + 0x18], bp
test ax, ax
jg 0x1402d6047
mov rdx, qword [rbx + 8]
mov rdi, qword [rsp + 0x68]
cmp word [rdx + rdi], 0
js 0x1402d6047
add ax, word [r13 + 0x16]
jmp 0x1402d61d1
xor r8d, r8d
cmp word [rsp + 0xa8], 0
mov qword [rsp + 0x118], r8
jne 0x1402d644b
cmp dword [rbx + 0x68], 0
je 0x1402d644b
movzx eax, bp
cmp dword [rbx + 0x70], eax
mov dword [rsp + 0x88], eax
jl 0x1402d644b
cmp word [rsp + 0x78], 0
je 0x1402d6093
mov rax, qword [rsi]
test byte [rax + 5], 0x10
jne 0x1402d644b
mov rax, qword [rsp + 0x70]
test byte [rax + 0x61], 8
jne 0x1402d644b
test word [rsp + 0x5c], 0x182
mov rax, qword [rsi]
je 0x1402d60ce
mov r8, qword [rax + 0x18]
lea r9, [rsp + 0x118]
mov rdx, r15
mov rcx, qword [rsp + 0x40]
call fcn.1402d4480
mov edi, eax
jmp 0x1402d6166
mov r14, qword [rax + 0x20]
lea r9, [rsp + 0x120]
xor r10d, r10d
mov rax, qword [r15 + 0x10]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x10]
movsx ecx, word [rax]
call fcn.14029cbe0
mov r11d, dword [r15 + 0x28]
mov r12, rax
cmp dword [r14], r10d
jle 0x1402d6472
mov rax, r10
mov rcx, qword [rsp + 0x40]
mov rdx, r15
mov qword [rsp + 0x78], r9
shl rax, 5
mov dword [rsp + 0x98], r11d
mov r8, qword [r14 + rax + 8]
mov qword [rsp + 0x90], r10
mov qword [rsp + 0x120], r12
call fcn.1402d4480
mov r10, qword [rsp + 0x90]
mov r11d, dword [rsp + 0x98]
mov edi, eax
mov rdx, qword [rsp + 0x120]
add qword [rsp + 0x60], rdx
inc r10
test eax, eax
mov r9, qword [rsp + 0x78]
mov dword [r15 + 0x28], r11d
je 0x1402d60f8
cmp edi, 0xc
je 0x1402d6173
test edi, edi
jne 0x1402d62fb
mov rcx, qword [rsp + 0x118]
test rcx, rcx
je 0x1402d644b
call fcn.14029cac0
cmp dword [rsp + 0x88], 1
mov edx, eax
mov word [r13 + 0x16], ax
jne 0x1402d61c0
mov rcx, qword [rbx + 0x10]
cwde
add eax, 9
movsx ecx, word [rcx]
cmp eax, ecx
jl 0x1402d61c0
mov ax, word [rsi + 0x12]
mov ecx, eax
or ch, 0x40
test ah, 0x20
mov word [rsi + 0x12], cx
je 0x1402d61c0
or byte [r15 + 0x2d], 4
mov eax, dword [rsp + 0xdc]
cmp dx, ax
jg 0x1402d61d1
mov ax, word [r13 + 0x16]
sub eax, dword [rsp + 0x58]
mov word [r13 + 0x16], ax
mov al, byte [rbx + 0x64]
mov bp, word [r13 + 0x16]
not eax
test al, 3
jne 0x1402d61ed
lea eax, [rbp + 0x10]
jmp 0x1402d620b
mov rsi, qword [rsp + 0x1f8]
movsx eax, word [rbx + 0x5c]
mov rdx, qword [rsi + 0x20]
imul eax, eax, 0xf
movsx ecx, word [rdx + 0x3c]
cdq
idiv ecx
lea eax, [rbp + rax + 1]
mov ecx, dword [rsp + 0x10c]
movsx edx, ax
call fcn.14029cb10
test dword [r13 + 0x38], 0x4000140
mov word [r13 + 0x14], ax
jne 0x1402d623c
lea edx, [rbp + 0x10]
movsx ecx, ax
movsx edx, dx
call fcn.14029cb10
mov word [r13 + 0x14], ax
mov esi, dword [rsp + 0x58]
mov rdx, r13
add esi, dword [rsp + 0xa8]
mov rcx, qword [r15 + 8]
add word [r13 + 0x14], si
mov r8d, dword [rsp + 0xc8]
lea eax, [rsi + rbp]
mov word [r13 + 0x16], ax
call fcn.1402d7820
mov rdx, r13
mov rcx, r15
call fcn.1402d75d0
mov edi, eax
mov eax, dword [r13 + 0x38]
test al, 2
cmovne bp, word [rsp + 0xdc]
test al, 0x10
mov word [r13 + 0x16], bp
jne 0x1402d62cf
mov eax, dword [r13 + 0x18]
cmp ax, word [rbx + 0x60]
jae 0x1402d62cf
cmp ax, word [rbx + 0x5e]
jb 0x1402d62a8
mov dl, byte [rbx + 0x64]
and edx, 3
cmp dl, 2
je 0x1402d62cf
cmp ax, 3
jbe 0x1402d62b8
mov rcx, qword [rsp + 0x40]
call fcn.1402a6700
mov rdx, qword [rsp + 0x1f8]
movsx r9d, si
mov r8, rbx
mov rcx, r15
call fcn.1402d5200
mov eax, dword [rsp + 0xdc]
mov word [r13 + 0x16], ax
mov eax, dword [rsp + 0xe4]
mov dword [r15 + 0x28], eax
lea rcx, [rsp + 0x130]
call fcn.1402d8dd0
mov rsi, rax
jmp 0x1402d53ac
mov rax, qword [rsp + 0xb0]
mov si, word [rsp + 0xe2]
cmp word [rsp + 0x84], si
mov qword [r13], rax
mov rax, qword [rsp + 0xf0]
mov qword [r13 + 0x16], rax
mov rax, qword [rsp + 0xe8]
mov qword [r13 + 0x38], rax
jne 0x1402d648d
mov edx, dword [rsp + 0x80]
movzx eax, word [rbx + 0x5e]
inc edx
cmp edx, eax
jge 0x1402d648d
mov si, word [rsp + 0x86]
cmp word [rsp + 0x84], si
jne 0x1402d648d
mov al, byte [rbx + 0x64]
and eax, 0xffffffc0
cmp al, 0x80
jne 0x1402d648d
mov rax, qword [rsp + 0x70]
test byte [rax + 0x61], 0x40
jne 0x1402d648d
mov rax, qword [rbx + 0x10]
mov rsi, qword [rsp + 0x68]
cmp word [rax + rsi + 2], 0x29
jle 0x1402d648d
movzx r8d, word [rsp + 0x86]
mov rdx, r13
mov rcx, qword [rsp + 0x70]
inc r8d
call fcn.1402d79b0
test eax, eax
mov edi, eax
jne 0x1402d648d
movzx eax, word [r13 + 0x3c]
mov r8, rbx
mov rdx, qword [r13 + 0x48]
inc word [r13 + 0x18]
inc word [r13 + 0x3e]
mov rsi, qword [rsp + 0x68]
lea ecx, [rax + 1]
mov word [r13 + 0x3c], cx
xor ecx, ecx
mov qword [rdx + rax*8], rcx
mov rax, qword [rbx + 0x10]
mov rcx, r15
or dword [r13 + 0x38], 0x8000
mov r9w, word [rax + rsi]
mov ax, word [rax + rsi + 2]
mov esi, dword [rsp + 0xd8]
mov edx, eax
sub edx, r9d
add word [r13 + 0x16], dx
lea r9d, [r9 + rsi + 5]
mov rdx, qword [rsp + 0x1f8]
sub r9d, eax
movsx r9d, r9w
call fcn.1402d5200
mov eax, dword [rsp + 0xdc]
mov word [r13 + 0x16], ax
mov eax, dword [rsp + 0x84]
mov word [r13 + 0x18], ax
mov word [r13 + 0x3e], ax
mov eax, dword [rsp + 0x9c]
mov dword [r13 + 0x38], eax
jmp 0x1402d648d
mov rax, qword [rbx + 0x10]
movzx ebp, bp
mov dx, word [r13 + 0x16]
add dx, word [rax + rbp*2]
sub dx, word [rax + rbp*2 - 2]
test word [rsp + 0x5c], 0x100
lea eax, [rdx + 0xa]
cmove eax, edx
jmp 0x1402d61d5
cmp qword [rsp + 0x60], r12
mov rax, qword [rsp + 0x60]
cmova rax, r12
mov qword [rsp + 0x118], rax
jmp 0x1402d6173
mov eax, edi
add rsp, 0x1a8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret