Function at 0x1402f6d40
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, 0x268
mov rax, qword [rsp + 0x278]
add rax, 0xf0
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
cmp dword [rax + 0x14], 0xfff
jae 0x1402f6d96
mov rax, qword [rsp + 0xa8]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x128], eax
jmp 0x1402f6da1
mov dword [rsp + 0x128], 0xfff
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0x104], eax
mov rax, qword [rsp + 0x278]
mov rax, qword [rax + 8]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x288]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0xa8]
mov eax, dword [rax + 8]
mov dword [rsp + 0x144], eax
cmp dword [rsp + 0x2b8], 3
jne 0x1402f6e06
mov dword [rsp + 0x12c], 3
jmp 0x1402f6e11
mov dword [rsp + 0x12c], 4
mov eax, dword [rsp + 0x12c]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x278]
mov rax, qword [rax + 0x60]
mov qword [rsp + 0x210], rax
mov r8d, dword [rsp + 0x2b8]
mov edx, dword [rsp + 0x144]
mov rcx, qword [rsp + 0x288]
call fcn.1402f6530
mov qword [rsp + 0x218], rax
mov rax, qword [rsp + 0x210]
mov rcx, qword [rsp + 0x218]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x278]
mov rax, qword [rax + 0x70]
mov qword [rsp + 0x1b8], rax
mov rax, qword [rsp + 0xa8]
mov eax, dword [rax + 4]
dec eax
mov dword [rsp + 0xc8], eax
mov eax, dword [rsp + 0xc8]
mov ecx, 1
mov dword [rsp + 0x188], ecx
movzx ecx, al
mov eax, dword [rsp + 0x188]
shl eax, cl
dec eax
mov dword [rsp + 0x74], eax
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x278]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x278]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x170]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x1c0], rax
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0xc0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x158], rax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x74], eax
jb 0x1402f6f3e
mov dword [rsp + 0x130], 0
jmp 0x1402f6f51
mov eax, dword [rsp + 0x74]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x130], eax
mov eax, dword [rsp + 0x130]
mov dword [rsp + 0x11c], eax
mov rax, qword [rsp + 0xa8]
mov r8d, dword [rax]
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x278]
call fcn.1402e5640
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 0
je 0x1402f6f93
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x134], eax
jmp 0x1402f6f9e
mov dword [rsp + 0x134], 1
mov eax, dword [rsp + 0x134]
mov dword [rsp + 0x110], eax
mov eax, dword [rsp + 0x74]
mov ecx, dword [rsp + 0x34]
and ecx, eax
mov eax, ecx
shl eax, 1
mov eax, eax
mov rcx, qword [rsp + 0x1b8]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x160], rax
mov eax, dword [rsp + 0x74]
mov ecx, dword [rsp + 0x34]
and ecx, eax
mov eax, ecx
shl eax, 1
mov eax, eax
mov rcx, qword [rsp + 0x1b8]
lea rax, [rcx + rax*4 + 4]
mov qword [rsp + 0x180], rax
mov eax, dword [rsp + 0x34]
add eax, 9
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x3c], 0
mov rax, qword [rsp + 0xa8]
mov eax, dword [rax + 0xc]
mov ecx, 1
mov dword [rsp + 0x18c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x18c]
shl eax, cl
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x298], 2
jne 0x1402f7052
mov rax, qword [rsp + 0x278]
mov rax, qword [rax + 0xe8]
mov qword [rsp + 0x1e0], rax
jmp 0x1402f705e
mov qword [rsp + 0x1e0], 0
mov rax, qword [rsp + 0x1e0]
mov qword [rsp + 0xb8], rax
cmp dword [rsp + 0x298], 2
jne 0x1402f7090
mov rax, qword [rsp + 0xb8]
add rax, 0xf0
mov qword [rsp + 0x1e8], rax
jmp 0x1402f709c
mov qword [rsp + 0x1e8], 0
mov rax, qword [rsp + 0x1e8]
mov qword [rsp + 0x200], rax
cmp dword [rsp + 0x298], 2
jne 0x1402f70cc
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 8]
mov qword [rsp + 0x1f0], rax
jmp 0x1402f70d8
mov qword [rsp + 0x1f0], 0
mov rax, qword [rsp + 0x1f0]
mov qword [rsp + 0x1c8], rax
cmp dword [rsp + 0x298], 2
jne 0x1402f7107
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rsp + 0x1f8], rax
jmp 0x1402f7113
mov qword [rsp + 0x1f8], 0
mov rax, qword [rsp + 0x1f8]
mov qword [rsp + 0x1d0], rax
cmp dword [rsp + 0x298], 2
jne 0x1402f714c
mov rax, qword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x1d0]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x138], eax
jmp 0x1402f7157
mov dword [rsp + 0x138], 0
mov eax, dword [rsp + 0x138]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x298], 2
jne 0x1402f7183
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x1c]
mov dword [rsp + 0x13c], eax
jmp 0x1402f718e
mov dword [rsp + 0x13c], 0
mov eax, dword [rsp + 0x13c]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x298], 2
jne 0x1402f71bb
mov eax, dword [rsp + 0x80]
mov ecx, dword [rsp + 0x6c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x140], eax
jmp 0x1402f71c6
mov dword [rsp + 0x140], 0
mov eax, dword [rsp + 0x140]
mov dword [rsp + 0x84], eax
cmp dword [rsp + 0x298], 2
jne 0x1402f71f2
mov rax, qword [rsp + 0x200]
mov eax, dword [rax + 8]
mov dword [rsp + 0x148], eax
jmp 0x1402f7200
mov eax, dword [rsp + 0x144]
mov dword [rsp + 0x148], eax
mov eax, dword [rsp + 0x148]
mov dword [rsp + 0x1ac], eax
cmp dword [rsp + 0x298], 2
jne 0x1402f722e
mov rax, qword [rsp + 0x200]
mov eax, dword [rax + 4]
dec eax
mov dword [rsp + 0xcc], eax
jmp 0x1402f723c
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0xcc], eax
mov eax, dword [rsp + 0xcc]
mov dword [rsp + 0x190], eax
cmp dword [rsp + 0x298], 2
jne 0x1402f727e
mov eax, dword [rsp + 0x190]
mov ecx, 1
mov dword [rsp + 0x194], ecx
movzx ecx, al
mov eax, dword [rsp + 0x194]
shl eax, cl
dec eax
mov dword [rsp + 0xd0], eax
jmp 0x1402f7289
mov dword [rsp + 0xd0], 0
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x298], 2
jne 0x1402f72d4
mov eax, dword [rsp + 0x7c]
mov ecx, dword [rsp + 0x80]
sub ecx, eax
mov eax, ecx
cmp dword [rsp + 0x98], eax
jae 0x1402f72d4
mov eax, dword [rsp + 0x98]
mov ecx, dword [rsp + 0x80]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0xd4], eax
jmp 0x1402f72df
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0xd4], eax
mov eax, dword [rsp + 0xd4]
mov dword [rsp + 0x1b0], eax
mov eax, dword [rsp + 0x2b0]
dec eax
mov eax, eax
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x2a8]
add eax, 3
mov dword [rsp + 0x198], eax
mov eax, dword [rsp + 0x2a8]
mov dword [rsp + 0x64], eax
jmp 0x1402f7328
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x198]
cmp dword [rsp + 0x64], eax
jae 0x1402f77ca
cmp dword [rsp + 0x64], 3
jne 0x1402f735f
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x2a0]
mov eax, dword [rcx + rax]
dec eax
mov dword [rsp + 0xd8], eax
jmp 0x1402f7375
mov eax, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x2a0]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0xd8], eax
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x60]
dec eax
mov ecx, dword [rsp + 0x48]
mov edx, dword [rsp + 0x34]
sub edx, ecx
mov ecx, edx
cmp eax, ecx
jae 0x1402f7488
mov eax, dword [rsp + 0x6c]
cmp dword [rsp + 0x70], eax
jb 0x1402f73c9
mov dword [rsp + 0xe0], 1
jmp 0x1402f73d4
mov dword [rsp + 0xe0], 0
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x288]
call fcn.1402f8850
mov dword [rsp + 0x19c], eax
mov ecx, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x288]
sub rdx, rcx
mov rcx, rdx
mov edx, dword [rsp + 0x38]
call fcn.1402f8850
mov ecx, dword [rsp + 0x19c]
cmp ecx, eax
jne 0x1402f741f
mov dword [rsp + 0xdc], 1
jmp 0x1402f742a
mov dword [rsp + 0xdc], 0
mov eax, dword [rsp + 0xdc]
mov ecx, dword [rsp + 0xe0]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x1402f7483
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x288]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x60]
sub rax, rcx
mov ecx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x288]
add rdx, rcx
mov rcx, rdx
mov r8, qword [rsp + 0x290]
mov rdx, rax
call fcn.1402d66e0
add eax, dword [rsp + 0x38]
mov dword [rsp + 0x50], eax
jmp 0x1402f76f1
cmp dword [rsp + 0x298], 2
jne 0x1402f74b8
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x1c8]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x84]
sub rax, rcx
mov qword [rsp + 0x208], rax
jmp 0x1402f74d2
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x170]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x208], rax
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0x168], rax
cmp dword [rsp + 0x298], 1
jne 0x1402f75e4
mov eax, dword [rsp + 0x60]
dec eax
mov ecx, dword [rsp + 0x6c]
mov edx, dword [rsp + 0x34]
sub edx, ecx
mov ecx, edx
cmp eax, ecx
jae 0x1402f7513
mov dword [rsp + 0xe8], 1
jmp 0x1402f751e
mov dword [rsp + 0xe8], 0
mov eax, dword [rsp + 0x48]
dec eax
sub eax, dword [rsp + 0x70]
cmp eax, 3
jb 0x1402f753a
mov dword [rsp + 0xe4], 1
jmp 0x1402f7545
mov dword [rsp + 0xe4], 0
mov eax, dword [rsp + 0xe4]
mov ecx, dword [rsp + 0xe8]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x1402f75e4
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x288]
call fcn.1402f8850
mov dword [rsp + 0x1a0], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x168]
call fcn.1402f8850
mov ecx, dword [rsp + 0x1a0]
cmp ecx, eax
jne 0x1402f75e4
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x168]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x288]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x158]
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0x1c0]
mov r8, qword [rsp + 0x290]
mov rdx, rax
call fcn.1402e5140
add eax, dword [rsp + 0x38]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x298], 2
jne 0x1402f76f1
mov eax, dword [rsp + 0x60]
dec eax
mov ecx, dword [rsp + 0x84]
mov edx, dword [rsp + 0x7c]
add edx, ecx
mov ecx, edx
mov edx, dword [rsp + 0x34]
sub edx, ecx
mov ecx, edx
cmp eax, ecx
jae 0x1402f7620
mov dword [rsp + 0xf0], 1
jmp 0x1402f762b
mov dword [rsp + 0xf0], 0
mov eax, dword [rsp + 0x48]
dec eax
sub eax, dword [rsp + 0x70]
cmp eax, 3
jb 0x1402f7647
mov dword [rsp + 0xec], 1
jmp 0x1402f7652
mov dword [rsp + 0xec], 0
mov eax, dword [rsp + 0xec]
mov ecx, dword [rsp + 0xf0]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x1402f76f1
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x288]
call fcn.1402f8850
mov dword [rsp + 0x1a4], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x168]
call fcn.1402f8850
mov ecx, dword [rsp + 0x1a4]
cmp ecx, eax
jne 0x1402f76f1
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x168]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x288]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x158]
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0x1d0]
mov r8, qword [rsp + 0x290]
mov rdx, rax
call fcn.1402e5140
add eax, dword [rsp + 0x38]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
cmp rax, qword [rsp + 0x88]
jbe 0x1402f77c5
mov eax, dword [rsp + 0x50]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x2a8]
mov ecx, dword [rsp + 0x64]
sub ecx, eax
mov eax, ecx
inc eax
mov ecx, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x270]
mov dword [rdx + rcx*8], eax
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x270]
mov edx, dword [rsp + 0x50]
mov dword [rcx + rax*8 + 4], edx
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x104]
cmp dword [rsp + 0x50], eax
jbe 0x1402f7767
mov dword [rsp + 0xf8], 1
jmp 0x1402f7772
mov dword [rsp + 0xf8], 0
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x288]
add rcx, rax
mov rax, rcx
cmp rax, qword [rsp + 0x290]
jne 0x1402f779b
mov dword [rsp + 0xf4], 1
jmp 0x1402f77a6
mov dword [rsp + 0xf4], 0
mov eax, dword [rsp + 0xf4]
mov ecx, dword [rsp + 0xf8]
or ecx, eax
mov eax, ecx
test eax, eax
je 0x1402f77c5
mov eax, dword [rsp + 0x3c]
jmp 0x1402f8194
jmp 0x1402f731e
cmp dword [rsp + 0x2b8], 3
jne 0x1402f7a29
mov eax, dword [rsp + 0x2b8]
cmp qword [rsp + 0x88], rax
jae 0x1402f7a29
mov r8, qword [rsp + 0x288]
mov rdx, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x278]
call fcn.1402f6690
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x110]
cmp dword [rsp + 0x68], eax
jb 0x1402f7828
mov dword [rsp + 0x100], 1
jmp 0x1402f7833
mov dword [rsp + 0x100], 0
mov eax, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
cmp eax, 0x40000
jae 0x1402f7853
mov dword [rsp + 0xfc], 1
jmp 0x1402f785e
mov dword [rsp + 0xfc], 0
mov eax, dword [rsp + 0xfc]
mov ecx, dword [rsp + 0x100]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x1402f7a29
cmp dword [rsp + 0x298], 0
je 0x1402f7896
cmp dword [rsp + 0x298], 2
je 0x1402f7896
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x68], eax
jb 0x1402f78d7
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0xc0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x238], rax
mov r8, qword [rsp + 0x290]
mov rdx, qword [rsp + 0x238]
mov rcx, qword [rsp + 0x288]
call fcn.1402d66e0
mov qword [rsp + 0xb0], rax
jmp 0x1402f792b
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x170]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x240], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x1c0]
mov r8, qword [rsp + 0x290]
mov rdx, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x288]
call fcn.1402e5140
mov qword [rsp + 0xb0], rax
mov eax, dword [rsp + 0x2b8]
cmp qword [rsp + 0xb0], rax
jb 0x1402f7a29
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
add eax, 3
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x270]
mov dword [rdx + rcx], eax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x270]
mov edx, dword [rsp + 0xb0]
mov dword [rcx + rax + 4], edx
mov dword [rsp + 0x3c], 1
mov eax, dword [rsp + 0x104]
cmp qword [rsp + 0xb0], rax
jbe 0x1402f79b5
mov dword [rsp + 0x10c], 1
jmp 0x1402f79c0
mov dword [rsp + 0x10c], 0
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x288]
add rcx, rax
mov rax, rcx
cmp rax, qword [rsp + 0x290]
jne 0x1402f79ed
mov dword [rsp + 0x108], 1
jmp 0x1402f79f8
mov dword [rsp + 0x108], 0
mov eax, dword [rsp + 0x108]
mov ecx, dword [rsp + 0x10c]
or ecx, eax
mov eax, ecx
test eax, eax
je 0x1402f7a29
mov eax, dword [rsp + 0x34]
inc eax
mov rcx, qword [rsp + 0x278]
mov dword [rcx + 0x2c], eax
mov eax, 1
jmp 0x1402f8194
mov rax, qword [rsp + 0x210]
mov rcx, qword [rsp + 0x218]
mov edx, dword [rsp + 0x34]
mov dword [rax + rcx*4], edx
jmp 0x1402f7a4c
mov eax, dword [rsp + 0x54]
dec eax
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x1402f7e05
mov eax, dword [rsp + 0x110]
cmp dword [rsp + 0x30], eax
jb 0x1402f7e05
mov eax, dword [rsp + 0x74]
mov ecx, dword [rsp + 0x30]
and ecx, eax
mov eax, ecx
shl eax, 1
mov eax, eax
mov rcx, qword [rsp + 0x1b8]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x90]
cmp qword [rsp + 0xa0], rax
jae 0x1402f7ab0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x220], rax
jmp 0x1402f7ac0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x220], rax
mov rax, qword [rsp + 0x220]
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x298], 0
je 0x1402f7af3
cmp dword [rsp + 0x298], 2
je 0x1402f7af3
mov eax, dword [rsp + 0x30]
add rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x48]
cmp rax, rcx
jb 0x1402f7b5c
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xc0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x150], rax
mov eax, dword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x150]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x288]
add rdx, rcx
mov rcx, rdx
mov r8, qword [rsp + 0x290]
mov rdx, rax
call fcn.1402d66e0
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1402f7bfd
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x170]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x150]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x288]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x158]
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0x1c0]
mov r8, qword [rsp + 0x290]
mov rdx, rax
call fcn.1402e5140
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x30]
add rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x48]
cmp rax, rcx
jb 0x1402f7bfd
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xc0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x40], rax
jbe 0x1402f7d03
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x78]
sub ecx, eax
mov eax, ecx
mov eax, eax
cmp qword [rsp + 0x40], rax
jbe 0x1402f7c35
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
add eax, 3
mov ecx, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x270]
mov dword [rdx + rcx*8], eax
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x270]
mov edx, dword [rsp + 0x40]
mov dword [rcx + rax*8 + 4], edx
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
cmp qword [rsp + 0x40], 0x1000
jbe 0x1402f7c96
mov dword [rsp + 0x118], 1
jmp 0x1402f7ca1
mov dword [rsp + 0x118], 0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x288]
add rcx, rax
mov rax, rcx
cmp rax, qword [rsp + 0x290]
jne 0x1402f7ccb
mov dword [rsp + 0x114], 1
jmp 0x1402f7cd6
mov dword [rsp + 0x114], 0
mov eax, dword [rsp + 0x114]
mov ecx, dword [rsp + 0x118]
or ecx, eax
mov eax, ecx
test eax, eax
je 0x1402f7d03
cmp dword [rsp + 0x298], 2
jne 0x1402f7cfe
mov dword [rsp + 0x54], 0
jmp 0x1402f7e05
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x150]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x288]
add rdx, rcx
mov rcx, rdx
movzx ecx, byte [rcx]
cmp eax, ecx
jge 0x1402f7d9e
mov rax, qword [rsp + 0x160]
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x11c]
cmp dword [rsp + 0x30], eax
ja 0x1402f7d70
lea rax, [rsp + 0x1a8]
mov qword [rsp + 0x160], rax
jmp 0x1402f7e05
mov rax, qword [rsp + 0x178]
add rax, 4
mov qword [rsp + 0x160], rax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x178]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x30], eax
jmp 0x1402f7e00
mov rax, qword [rsp + 0x180]
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x11c]
cmp dword [rsp + 0x30], eax
ja 0x1402f7dd8
lea rax, [rsp + 0x1a8]
mov qword [rsp + 0x180], rax
jmp 0x1402f7e05
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x180], rax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x178]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x30], eax
jmp 0x1402f7a42
mov rax, qword [rsp + 0x180]
mov dword [rax], 0
mov rax, qword [rsp + 0x160]
mov dword [rax], 0
cmp dword [rsp + 0x298], 2
jne 0x1402f817e
cmp dword [rsp + 0x54], 0
je 0x1402f817e
mov r8d, dword [rsp + 0x2b8]
mov edx, dword [rsp + 0x1ac]
mov rcx, qword [rsp + 0x288]
call fcn.1402f6530
mov qword [rsp + 0x248], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 0x60]
mov rcx, qword [rsp + 0x248]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 0x70]
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xa0], rax
jmp 0x1402f7eb5
mov eax, dword [rsp + 0x54]
dec eax
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x1402f817e
mov eax, dword [rsp + 0x7c]
cmp dword [rsp + 0x4c], eax
jbe 0x1402f817e
mov eax, dword [rsp + 0x98]
mov ecx, dword [rsp + 0x4c]
and ecx, eax
mov eax, ecx
shl eax, 1
mov eax, eax
mov rcx, qword [rsp + 0x250]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x230], rax
mov rax, qword [rsp + 0x90]
cmp qword [rsp + 0xa0], rax
jae 0x1402f7f19
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x228], rax
jmp 0x1402f7f29
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x228], rax
mov rax, qword [rsp + 0x228]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x1c8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x1d8], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x1d8]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x288]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x158]
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0x1d0]
mov r8, qword [rsp + 0x290]
mov rdx, rax
call fcn.1402e5140
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x4c]
add rax, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x80]
cmp rax, rcx
jb 0x1402f7fe4
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0xc0]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x84]
add rax, rcx
mov qword [rsp + 0x1d8], rax
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x58], rax
jbe 0x1402f80eb
mov eax, dword [rsp + 0x84]
mov ecx, dword [rsp + 0x4c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x78]
sub ecx, eax
mov eax, ecx
mov eax, eax
cmp qword [rsp + 0x58], rax
jbe 0x1402f802f
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
add eax, 3
mov ecx, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x270]
mov dword [rdx + rcx*8], eax
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x270]
mov edx, dword [rsp + 0x58]
mov dword [rcx + rax*8 + 4], edx
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
cmp qword [rsp + 0x58], 0x1000
jbe 0x1402f8090
mov dword [rsp + 0x124], 1
jmp 0x1402f809b
mov dword [rsp + 0x124], 0
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x288]
add rcx, rax
mov rax, rcx
cmp rax, qword [rsp + 0x290]
jne 0x1402f80c5
mov dword [rsp + 0x120], 1
jmp 0x1402f80d0
mov dword [rsp + 0x120], 0
mov eax, dword [rsp + 0x120]
mov ecx, dword [rsp + 0x124]
or ecx, eax
mov eax, ecx
test eax, eax
je 0x1402f80eb
jmp 0x1402f817e
mov eax, dword [rsp + 0x1b0]
cmp dword [rsp + 0x4c], eax
ja 0x1402f80fd
jmp 0x1402f817e
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x1d8]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x288]
add rdx, rcx
mov rcx, rdx
movzx ecx, byte [rcx]
cmp eax, ecx
jge 0x1402f8154
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xa0], rax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x230]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x4c], eax
jmp 0x1402f8179
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x90], rax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x230]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x4c], eax
jmp 0x1402f7eab
mov eax, dword [rsp + 0x78]
sub eax, 8
mov rcx, qword [rsp + 0x278]
mov dword [rcx + 0x2c], eax
mov eax, dword [rsp + 0x3c]
add rsp, 0x268
ret