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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x138]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
cmp dword [rsp + 0x2c8], 2
jne 0x1402f87f0
mov rax, qword [rsp + 0x58]
sub rax, 0x10
mov qword [rsp + 0x178], rax
jmp 0x1402f8801
mov rax, qword [rsp + 0x58]
sub rax, 8
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x2a0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x2a0]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x2a0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x2a0]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x268], rax
mov rax, qword [rsp + 0x2a0]
mov eax, dword [rax + 0xf0]
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0x2a0]
cmp dword [rax + 0xfc], 5
jae 0x1402f88ca
mov dword [rsp + 0xb4], 4
jmp 0x1402f88d5
mov dword [rsp + 0xb4], 5
mov eax, dword [rsp + 0xb4]
mov dword [rsp + 0x128], eax
mov r8d, 1
mov edx, dword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x2a0]
call fcn.1402fcc90
mov rax, qword [rax]
mov qword [rsp + 0x160], rax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x2b0]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x40], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x2b0]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0xa8]
cmp qword [rsp + 0x30], rax
jne 0x1402f8955
mov qword [rsp + 0x180], 1
jmp 0x1402f8961
mov qword [rsp + 0x180], 0
mov rax, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x2c8], 2
jne 0x1402f89f4
mov rax, qword [rsp + 0x2a0]
cmp dword [rax + 0x100], 6
jae 0x1402f89ab
mov rax, qword [rsp + 0x2a0]
mov eax, dword [rax + 0x100]
mov dword [rsp + 0xb8], eax
jmp 0x1402f89b6
mov dword [rsp + 0xb8], 6
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x2a0]
mov eax, dword [rax + 0x2c]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0xb8]
mov r8d, dword [rsp + 0x128]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x2a0]
call fcn.1402fc400
mov rax, qword [rsp + 0xd8]
cmp qword [rsp + 0x30], rax
jae 0x1402f9733
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 1
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
inc eax
mov r8d, dword [rsp + 0x88]
mov edx, eax
mov rcx, qword [rsp + 0x2a0]
call fcn.1402f0870
mov dword [rsp + 0x12c], eax
mov eax, dword [rsp + 0x3c]
inc eax
sub eax, dword [rsp + 0x40]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x78], eax
jae 0x1402f8a88
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x188], rax
jmp 0x1402f8a95
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x188], rax
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x208], rax
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x208]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x198], rax
mov eax, dword [rsp + 0x38]
dec eax
sub eax, dword [rsp + 0x78]
cmp eax, 3
jb 0x1402f8adb
mov dword [rsp + 0xc0], 1
jmp 0x1402f8ae6
mov dword [rsp + 0xc0], 0
mov eax, dword [rsp + 0x3c]
inc eax
sub eax, dword [rsp + 0x12c]
cmp dword [rsp + 0x40], eax
ja 0x1402f8b06
mov dword [rsp + 0xbc], 1
jmp 0x1402f8b11
mov dword [rsp + 0xbc], 0
mov eax, dword [rsp + 0xbc]
mov ecx, dword [rsp + 0xc0]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x1402f8be6
mov rax, qword [rsp + 0x30]
inc rax
mov rcx, rax
call fcn.1400543b0
mov dword [rsp + 0x130], eax
mov rcx, qword [rsp + 0x198]
call fcn.1400543b0
mov ecx, dword [rsp + 0x130]
cmp ecx, eax
jne 0x1402f8be6
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x78], eax
jae 0x1402f8b7a
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x190], rax
jmp 0x1402f8b87
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x210], rax
mov rax, qword [rsp + 0x198]
add rax, 4
mov rcx, qword [rsp + 0x30]
add rcx, 5
mov rdx, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0x210]
mov r8, qword [rsp + 0x58]
mov rdx, rax
call fcn.1402f0370
add rax, 4
mov qword [rsp + 0x48], rax
cmp dword [rsp + 0x2d0], 0
jne 0x1402f8be6
jmp 0x1402f946f
mov qword [rsp + 0x1a8], 0x3b9ac9ff
lea r9, [rsp + 0x1a8]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x2a0]
call qword [rsp + 0x160]
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x1a0], rax
jbe 0x1402f8c4e
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x48], 4
jae 0x1402f8c81
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
sar rax, 8
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 1]
mov qword [rsp + 0x30], rax
jmp 0x1402f89f4
cmp dword [rsp + 0x2d0], 1
jb 0x1402f931b
mov rax, qword [rsp + 0xd8]
cmp qword [rsp + 0x30], rax
jae 0x1402f931b
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
cmp qword [rsp + 0x50], 0
je 0x1402f8edb
mov r8d, dword [rsp + 0x88]
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x2a0]
call fcn.1402f0870
mov dword [rsp + 0xf0], eax
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x7c], eax
jae 0x1402f8d11
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x1b0], rax
jmp 0x1402f8d1e
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x1b0], rax
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0x218], rax
mov eax, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0x218]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x1c0], rax
mov eax, dword [rsp + 0x38]
dec eax
sub eax, dword [rsp + 0x7c]
cmp eax, 3
jb 0x1402f8d64
mov dword [rsp + 0xc8], 1
jmp 0x1402f8d6f
mov dword [rsp + 0xc8], 0
mov eax, dword [rsp + 0xf0]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov eax, ecx
cmp dword [rsp + 0x40], eax
ja 0x1402f8d91
mov dword [rsp + 0xc4], 1
jmp 0x1402f8d9c
mov dword [rsp + 0xc4], 0
mov eax, dword [rsp + 0xc4]
mov ecx, dword [rsp + 0xc8]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x1402f8edb
mov rcx, qword [rsp + 0x30]
call fcn.1400543b0
mov dword [rsp + 0xf4], eax
mov rcx, qword [rsp + 0x1c0]
call fcn.1400543b0
mov ecx, dword [rsp + 0xf4]
cmp ecx, eax
jne 0x1402f8edb
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x7c], eax
jae 0x1402f8dff
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x1b8], rax
jmp 0x1402f8e0c
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x1b8], rax
mov rax, qword [rsp + 0x1b8]
mov qword [rsp + 0x220], rax
mov rax, qword [rsp + 0x1c0]
add rax, 4
mov rcx, qword [rsp + 0x30]
add rcx, 4
mov rdx, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0x220]
mov r8, qword [rsp + 0x58]
mov rdx, rax
call fcn.1402f0370
add rax, 4
mov qword [rsp + 0x140], rax
imul rax, qword [rsp + 0x140], 3
mov dword [rsp + 0xfc], eax
imul rax, qword [rsp + 0x48], 3
mov qword [rsp + 0x228], rax
mov ecx, dword [rsp + 0x50]
call fcn.1402d4330
mov eax, eax
mov rcx, qword [rsp + 0x228]
sub rcx, rax
mov rax, rcx
inc rax
mov dword [rsp + 0xf8], eax
cmp qword [rsp + 0x140], 4
jb 0x1402f8edb
mov eax, dword [rsp + 0xf8]
cmp dword [rsp + 0xfc], eax
jle 0x1402f8edb
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 1
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x150], 0x3b9ac9ff
lea r9, [rsp + 0x150]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x2a0]
call qword [rsp + 0x160]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
shl rax, 2
mov qword [rsp + 0x230], rax
mov ecx, dword [rsp + 0x150]
call fcn.1402d4330
mov eax, eax
mov rcx, qword [rsp + 0x230]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x104], eax
mov rax, qword [rsp + 0x48]
shl rax, 2
mov qword [rsp + 0x238], rax
mov ecx, dword [rsp + 0x50]
call fcn.1402d4330
mov eax, eax
mov rcx, qword [rsp + 0x238]
sub rcx, rax
mov rax, rcx
add rax, 4
mov dword [rsp + 0x100], eax
cmp qword [rsp + 0x148], 4
jb 0x1402f8fc0
mov eax, dword [rsp + 0x100]
cmp dword [rsp + 0x104], eax
jle 0x1402f8fc0
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
jmp 0x1402f8c8f
cmp dword [rsp + 0x2d0], 2
jne 0x1402f9314
mov rax, qword [rsp + 0xd8]
cmp qword [rsp + 0x30], rax
jae 0x1402f9314
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
cmp qword [rsp + 0x50], 0
je 0x1402f922f
mov r8d, dword [rsp + 0x88]
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x2a0]
call fcn.1402f0870
mov dword [rsp + 0x108], eax
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x80], eax
jae 0x1402f9056
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x1c8], rax
jmp 0x1402f9063
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x1c8], rax
mov rax, qword [rsp + 0x1c8]
mov qword [rsp + 0x240], rax
mov eax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x240]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x1d8], rax
mov eax, dword [rsp + 0x38]
dec eax
sub eax, dword [rsp + 0x80]
cmp eax, 3
jb 0x1402f90af
mov dword [rsp + 0xd0], 1
jmp 0x1402f90ba
mov dword [rsp + 0xd0], 0
mov eax, dword [rsp + 0x108]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov eax, ecx
cmp dword [rsp + 0x40], eax
ja 0x1402f90dc
mov dword [rsp + 0xcc], 1
jmp 0x1402f90e7
mov dword [rsp + 0xcc], 0
mov eax, dword [rsp + 0xcc]
mov ecx, dword [rsp + 0xd0]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x1402f922f
mov rcx, qword [rsp + 0x30]
call fcn.1400543b0
mov dword [rsp + 0x10c], eax
mov rcx, qword [rsp + 0x1d8]
call fcn.1400543b0
mov ecx, dword [rsp + 0x10c]
cmp ecx, eax
jne 0x1402f922f
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x80], eax
jae 0x1402f914d
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x1d0], rax
jmp 0x1402f915a
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x1d0]
mov qword [rsp + 0x248], rax
mov rax, qword [rsp + 0x1d8]
add rax, 4
mov rcx, qword [rsp + 0x30]
add rcx, 4
mov rdx, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0x248]
mov r8, qword [rsp + 0x58]
mov rdx, rax
call fcn.1402f0370
add rax, 4
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
shl rax, 2
mov dword [rsp + 0x114], eax
mov rax, qword [rsp + 0x48]
shl rax, 2
mov qword [rsp + 0x250], rax
mov ecx, dword [rsp + 0x50]
call fcn.1402d4330
mov eax, eax
mov rcx, qword [rsp + 0x250]
sub rcx, rax
mov rax, rcx
inc rax
mov dword [rsp + 0x110], eax
cmp qword [rsp + 0x158], 4
jb 0x1402f922f
mov eax, dword [rsp + 0x110]
cmp dword [rsp + 0x114], eax
jle 0x1402f922f
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 1
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x170], 0x3b9ac9ff
lea r9, [rsp + 0x170]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x2a0]
call qword [rsp + 0x160]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
shl rax, 2
mov qword [rsp + 0x258], rax
mov ecx, dword [rsp + 0x170]
call fcn.1402d4330
mov eax, eax
mov rcx, qword [rsp + 0x258]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x124], eax
mov rax, qword [rsp + 0x48]
shl rax, 2
mov qword [rsp + 0x260], rax
mov ecx, dword [rsp + 0x50]
call fcn.1402d4330
mov eax, eax
mov rcx, qword [rsp + 0x260]
sub rcx, rax
mov rax, rcx
add rax, 7
mov dword [rsp + 0x118], eax
cmp qword [rsp + 0x168], 4
jb 0x1402f9314
mov eax, dword [rsp + 0x118]
cmp dword [rsp + 0x124], eax
jle 0x1402f9314
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
jmp 0x1402f8c8f
jmp 0x1402f931b
cmp qword [rsp + 0x50], 3
jbe 0x1402f946f
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
sub rcx, 3
sub rax, rcx
mov dword [rsp + 0x84], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x84], eax
jae 0x1402f9376
mov eax, dword [rsp + 0x84]
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x1e0], rax
jmp 0x1402f9390
mov eax, dword [rsp + 0x84]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x1e0], rax
mov rax, qword [rsp + 0x1e0]
mov qword [rsp + 0xe0], rax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x84], eax
jae 0x1402f93bf
mov rax, qword [rsp + 0x268]
mov qword [rsp + 0x1e8], rax
jmp 0x1402f93cf
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x1e8], rax
mov rax, qword [rsp + 0x1e8]
mov qword [rsp + 0x270], rax
mov rax, qword [rsp + 0x90]
cmp qword [rsp + 0x68], rax
jbe 0x1402f945a
mov rax, qword [rsp + 0x270]
cmp qword [rsp + 0xe0], rax
jbe 0x1402f945a
mov eax, 1
imul rax, rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x68]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0xe0]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
jne 0x1402f945a
mov rax, qword [rsp + 0x68]
dec rax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xe0]
dec rax
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
jmp 0x1402f93df
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x50]
sub rax, 3
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x278], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x2a8]
call fcn.1402f0d00
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0xd8]
cmp qword [rsp + 0x30], rax
ja 0x1402f972e
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x98], eax
mov r8d, dword [rsp + 0x88]
mov edx, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x2a0]
call fcn.1402f0870
mov dword [rsp + 0x11c], eax
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x98]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x8c], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x8c], eax
jae 0x1402f9562
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x1f0], rax
jmp 0x1402f956f
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x1f0], rax
mov rax, qword [rsp + 0x1f0]
mov qword [rsp + 0x280], rax
mov eax, dword [rsp + 0x8c]
mov rcx, qword [rsp + 0x280]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x200], rax
mov eax, dword [rsp + 0x38]
dec eax
sub eax, dword [rsp + 0x8c]
cmp eax, 3
jb 0x1402f95bb
mov dword [rsp + 0xb0], 1
jmp 0x1402f95c6
mov dword [rsp + 0xb0], 0
mov eax, dword [rsp + 0x11c]
mov ecx, dword [rsp + 0x98]
sub ecx, eax
mov eax, ecx
cmp dword [rsp + 0x60], eax
ja 0x1402f95eb
mov dword [rsp + 0xd4], 1
jmp 0x1402f95f6
mov dword [rsp + 0xd4], 0
mov eax, dword [rsp + 0xd4]
mov ecx, dword [rsp + 0xb0]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x1402f9727
mov rcx, qword [rsp + 0x30]
call fcn.1400543b0
mov dword [rsp + 0x120], eax
mov rcx, qword [rsp + 0x200]
call fcn.1400543b0
mov ecx, dword [rsp + 0x120]
cmp ecx, eax
jne 0x1402f9727
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x8c], eax
jae 0x1402f965c
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x1f8], rax
jmp 0x1402f9669
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x1f8], rax
mov rax, qword [rsp + 0x1f8]
mov qword [rsp + 0x288], rax
mov rax, qword [rsp + 0x200]
add rax, 4
mov rcx, qword [rsp + 0x30]
add rcx, 4
mov rdx, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0x288]
mov r8, qword [rsp + 0x58]
mov rdx, rax
call fcn.1402f0370
add rax, 4
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x90]
xor edx, edx
mov rcx, qword [rsp + 0x2a8]
call fcn.1402f0d00
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x90], rax
jmp 0x1402f94e0
jmp 0x1402f972e
jmp 0x1402f89f4
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x2b0]
mov edx, dword [rsp + 0x40]
mov dword [rcx + rax], edx
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x2b0]
mov edx, dword [rsp + 0x60]
mov dword [rcx + rax], edx
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
add rsp, 0x298
ret