Function at 0x1400a56a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x678
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_1635], rax
mov rax, qword [rsp + 0x718]
mov r12, qword [rsp + reloc.MFC80U.DLL_Ordinal_1792]
mov rdi, qword [rsp + 0x6f8]
mov rsi, qword [rsp + 0x720]
mov rbx, qword [rsp + 0x6f0]
mov rbp, qword [rsp + 0x708]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x728]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x100], rax
mov rax, qword [r12]
mov r13, rdi
mov rcx, r12
mov dword [rsp + 0x30], r9d
mov r14, r8
mov r15, rdx
mov qword [rsp + 0xf8], rsi
mov dword [rsp + 0x40], 1
sub r13, rbx
call qword [rax + 0x60]
movzx ecx, ax
mov rax, r13
cqo
idiv rcx
xor eax, eax
test rdx, rdx
jne 0x1400a576c
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x60]
movzx ecx, ax
mov rax, rbx
sub rax, rdi
cqo
idiv rcx
test rdx, rdx
je 0x1400a5770
xor eax, eax
mov dword [rsp + 0x40], eax
call fcn.140049400
mov qword [rsp + 0x48], rax
call fcn.1400d6a30
mov qword [rsp + 0x38], rax
xor eax, eax
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x6e8]
cmp qword [rsp + 0x6e0], rax
jle 0x1400a5b7c
cmp rbx, rdi
jne 0x1400a5b7c
mov rax, qword [r14]
mov edx, 0x32
mov rcx, r14
call qword [rax + 0x50]
lea rcx, [rsp + 0x262]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + 0x260], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x260]
mov edx, reloc.MFC80U.DLL_Ordinal_512
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x260]
repne scasw ax, word [rdi]
mov rax, qword [str.paextend.txt]
lea rcx, [rsp + 0x260]
mov qword [rdi - 2], rax
mov rax, qword [0x1402e3f68]
mov qword [rdi + 6], rax
mov rax, qword [0x1402e3f70]
mov qword [rdi + 0xe], rax
mov eax, dword [0x1402e3f78]
mov dword [rdi + 0x16], eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, 0
cmp eax, 0xffffffff
mov ecx, 1
mov qword [rsp + 0xf0], rdi
cmovne ecx, edi
test ecx, ecx
mov dword [rsp + 0x98], ecx
je 0x1400a589a
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x30]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x60]
test eax, eax
jne 0x1400a589a
mov r9d, dword [r15 + 0x10]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x28], rax
mov rax, qword [r15 + 0x18]
mov r8, r14
mov rdx, r15
mov qword [rsp + 0x20], rax
call fcn.1400a47e0
mov dword [rsi], eax
jmp 0x1400a5909
mov dword [rsi], edi
call fcn.140049470
lea rcx, str...optcore.cpp
mov rbx, qword [rax]
mov edx, 0x697
mov rdi, rax
call fcn.1400a0fc0
lea rdx, str._s:_Extend_partition_without_using_System_Control_Code.
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
cmp dword [rsp + 0x98], 0
je 0x1400a5901
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x30]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x60]
mov ecx, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x6f0]
test eax, eax
mov eax, 1
cmovne ecx, eax
mov dword [rsp + 0x50], ecx
jmp 0x1400a590e
mov rbx, qword [rsp + 0x6f0]
mov eax, 1
cmp dword [rsi], 0
jne 0x1400a5b2f
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x80]
cmp ax, word [rsp + 0x710]
je 0x1400a5afc
mov rax, qword [r14]
mov edx, 0x2e
mov rcx, r14
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x48]
movzx r8d, word [rsp + 0x710]
mov rax, qword [rcx]
mov rdx, qword [r15 + 0x30]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x48]
mov r8d, dword [r15 + 0x10]
mov rax, qword [rcx]
lea rdx, [r15 + 0x30]
mov r9, rbx
call qword [rax]
test eax, eax
jne 0x1400a59d0
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x30]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x60]
test eax, eax
jne 0x1400a59d0
call fcn.140049470
movzx edi, word [rsp + 0x710]
lea rcx, str...optcore.cpp
mov rsi, qword [rax]
mov edx, 0x6ac
mov rbx, rax
call fcn.1400a0fc0
lea rdx, str._s:_Failed_to_lock_volume___c:_
mov r9d, edi
mov r8, rax
mov rcx, rbx
call qword [rsi + 0x10]
mov rbx, qword [rsp + 0x6f0]
mov rsi, qword [rsp + 0xf8]
lea rcx, [rsp + 0x110]
xor edx, edx
mov r8d, Ordinal_332
call sub.ntdll.dll_memset
mov rax, qword [r15 + 0x18]
mov edx, dword [r15 + 0x10]
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_280], rax
mov rax, qword [r12]
mov rcx, r12
mov dword [rsp + 0x110], edx
call qword [rax + 0x60]
mov rcx, rbp
mov word [rsp + 0x13c], ax
mov rax, qword [rsp + 0x6e8]
mov qword [rsp + 0x120], rax
mov rax, qword [rbp]
call qword [rax + 0x40]
mov rcx, r12
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_296], rax
mov rax, qword [rsp + 0x6e0]
mov qword [rsp + 0x130], rax
mov rax, qword [r12]
call qword [rax + 0xc0]
mov rcx, r12
mov dword [rsp + 0x138], eax
mov rax, qword [r12]
call qword [rax + 0x30]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0xa0]
mov rcx, r12
mov word [rsp + reloc.MFC80U.DLL_Ordinal_320], ax
mov rax, qword [r12]
call qword [rax + 0x30]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0xa8]
mov rcx, r12
mov word [rsp + 0x13e], ax
mov rax, qword [r12]
call qword [rax + 0x58]
mov rcx, r12
mov rdi, rax
mov rax, qword [r12]
call qword [rax + 0x50]
lea rdx, str.__c:__s_
lea rcx, [rsp + 0x142]
movzx r8d, ax
mov r9, rdi
call qword [sym.imp.MSVCR80.dll__swprintf]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x110]
mov rax, qword [rcx]
xor edi, edi
xor r9d, r9d
mov r8, r14
mov dword [rsp + 0x20], edi
call qword [rax + 0x68]
test eax, eax
mov dword [rsi], eax
je 0x1400a5b7e
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax + 0x40]
jmp 0x1400a5b7e
call fcn.140049470
lea rcx, str...optcore.cpp
mov edx, 0x6c7
mov rbx, qword [rax]
mov rdi, rax
call fcn.1400a0fc0
lea rdx, str._s:_Failed_to_Extend_System_Partition.
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
xor eax, eax
jmp 0x1400a64bb
mov rdx, qword [rsp + 0x100]
mov rdi, qword [rsp + 0xf0]
mov rcx, r12
mov dword [rdx], eax
mov rax, qword [r12]
mov rdx, rdi
call qword [rax + reloc.MFC80U.DLL_Ordinal_336]
mov rax, qword [r12]
lea rdx, [rdi - 1]
mov rcx, r12
call qword [rax + Ordinal_265]
mov rcx, qword [rsp + 0x58]
mov r8, r12
mov rdx, r15
call fcn.1400c4410
mov eax, 1
jmp 0x1400a64bb
xor edi, edi
call fcn.140049400
mov edx, dword [r15 + 0x10]
mov r9d, 0x80000000
mov rcx, rax
mov rax, qword [rax]
mov r8, rbx
call qword [rax + 0xc0]
cmp rax, 0xffffffffffffffff
je 0x1400a5bc3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [r15 + 0x30], 0xffffffffffffffff
je 0x1400a5bce
cmp dword [rsp + 0x50], 0
jne 0x1400a5bc3
mov qword [r15 + 0x30], 0xffffffffffffffff
mov dword [rsi], edi
cmp qword [r15 + 0x30], 0xffffffffffffffff
jne 0x1400a5c70
cmp dword [rsi], 0
jne 0x1400a5c70
call fcn.140049400
mov r8d, dword [r15 + 0x10]
lea rdx, [r15 + 0x30]
mov rcx, rax
mov qword [rsp + 0x58], rax
mov rax, qword [rax]
mov r9, rbx
call qword [rax]
test eax, eax
jne 0x1400a5c70
mov rcx, qword [rsp + 0x58]
movzx r8d, word [rsp + 0x710]
mov rdx, qword [r15 + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x58]
mov r8d, dword [r15 + 0x10]
mov rax, qword [rcx]
lea rdx, [r15 + 0x30]
mov r9, rbx
call qword [rax]
test eax, eax
jne 0x1400a5c70
call fcn.140049470
movzx edi, word [rsp + 0x710]
lea rcx, str...optcore.cpp
mov rsi, qword [rax]
mov edx, 0x6f4
mov rbx, rax
call fcn.1400a0fc0
lea rdx, str._s:_Failed_to_lock_volume___c:_
mov r9d, edi
mov r8, rax
mov rcx, rbx
call qword [rsi + 0x10]
mov rbx, qword [rsp + 0x6f0]
mov rsi, qword [rsp + 0xf8]
mov rax, qword [rsp + 0x6e0]
mov rcx, qword [rsp + 0x6e8]
mov rdi, qword [rsp + 0x6f8]
cmp rax, rcx
jle 0x1400a5f64
cmp rdi, rbx
je 0x1400a5f61
mov rax, qword [r14]
mov edx, 0x50
mov rcx, r14
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x48]
movzx r8d, word [rsp + 0x710]
mov rax, qword [rcx]
mov rdx, qword [r15 + 0x30]
call qword [rax + 0x28]
xor edx, edx
lea rcx, [rsp + 0xa0]
lea r8d, [rdx + 0x50]
call sub.ntdll.dll_memset
test r13, r13
jns 0x1400a5cdb
neg r13
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x68]
cmp r13, rax
mov r13d, dword [rsp + 0x30]
jge 0x1400a5d89
test r13d, r13d
jne 0x1400a5d89
cmp dword [rsp + 0x40], r13d
je 0x1400a5d89
mov eax, dword [r15 + 0x10]
mov rcx, rbp
mov dword [rsp + 0x68], eax
mov rax, qword [rbp]
call qword [rax + 0x60]
mov rcx, rbp
mov word [rsp + 0x90], ax
mov rax, qword [rbp]
call qword [rax + 0x40]
mov rcx, rbp
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], rax
mov rax, qword [rbp]
mov qword [rsp + 0x70], rbx
call qword [rax + 0x88]
mov rcx, rbp
mov qword [rsp + 0x88], rax
mov rax, qword [rbp]
call qword [rax + 0xc0]
mov rbx, qword [rsp + 0x38]
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x94], eax
mov rax, qword [rbx]
xor r9d, r9d
mov r8, r14
mov rcx, rbx
mov dword [rsp + 0x20], r13d
call qword [rax + 0x78]
jmp 0x1400a5e29
mov eax, dword [r15 + 0x10]
mov rcx, rbp
mov qword [rsp + 0xc0], rdi
mov dword [rsp + 0xb8], eax
mov dword [rsp + 0xa0], eax
mov rax, qword [rbp]
mov qword [rsp + 0xa8], rbx
call qword [rax + 0x68]
mov rcx, rbp
mov qword [rsp + 0xb0], rax
mov rax, qword [rbp]
call qword [rax + 0x60]
mov rcx, rbp
movzx edx, ax
mov rax, qword [rbp]
mov dword [rsp + 0xd0], edx
call qword [rax + 0xc0]
mov rcx, rbp
mov dword [rsp + 0xd4], eax
mov rax, qword [rbp]
call qword [rax + 0x40]
movsxd rcx, dword [rsp + 0xd0]
mov rbx, qword [rsp + 0x38]
cqo
xor r9d, r9d
mov r8, r14
idiv rcx
lea rdx, [rsp + 0xa0]
mov rcx, rbx
mov qword [rsp + 0xc8], rax
xor eax, eax
mov dword [rsp + 0xe8], eax
mov rax, qword [rbx]
call qword [rax + 0x70]
mov dword [rsi], eax
mov rax, qword [rsp + 0x60]
mov ecx, 1
mov dword [rax], ecx
cmp dword [rsi], 0
je 0x1400a64b9
mov rax, qword [r14]
lea edx, [rcx + 0xf]
mov rcx, r14
call qword [rax + 0x50]
lea rcx, [rsp + 0x110]
xor edx, edx
mov r8d, Ordinal_332
call sub.ntdll.dll_memset
mov edx, dword [r15 + 0x10]
mov rax, qword [r12]
mov rcx, r12
mov dword [rsp + 0x110], edx
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_280], rdi
call qword [rax + 0x60]
mov rcx, rbp
mov word [rsp + 0x13c], ax
mov rax, qword [rsp + 0x6e8]
mov qword [rsp + 0x120], rax
mov rax, qword [rbp]
call qword [rax + 0x40]
mov rcx, r12
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_296], rax
mov rax, qword [rsp + 0x6e0]
mov qword [rsp + 0x130], rax
mov rax, qword [r12]
call qword [rax + 0xc0]
mov rcx, r12
mov dword [rsp + 0x138], eax
mov rax, qword [r12]
call qword [rax + 0x30]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0xa0]
mov rcx, r12
mov word [rsp + reloc.MFC80U.DLL_Ordinal_320], ax
mov rax, qword [r12]
call qword [rax + 0x30]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0xa8]
mov rcx, r12
mov word [rsp + 0x13e], ax
mov rax, qword [r12]
call qword [rax + 0x58]
mov rcx, r12
mov rdi, rax
mov rax, qword [r12]
call qword [rax + 0x50]
lea rdx, str.__c:__s_
lea rcx, [rsp + 0x142]
movzx r8d, ax
mov r9, rdi
call qword [sym.imp.MSVCR80.dll__swprintf]
mov rax, qword [rbx]
lea rdx, [rsp + 0x110]
mov r9d, r13d
mov r8, r14
mov rcx, rbx
mov dword [rsp + 0x20], 0
call qword [rax + 0x68]
mov dword [rsi], eax
jmp 0x1400a64b9
cmp rax, rcx
jge 0x1400a6347
cmp rdi, rbx
mov rax, qword [r14]
mov rcx, r14
je 0x1400a620c
mov edx, 0x1e
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x48]
movzx r8d, word [rsp + 0x710]
mov rax, qword [rcx]
mov rdx, qword [r15 + 0x30]
call qword [rax + 0x28]
lea rcx, [rsp + 0x110]
xor edx, edx
mov r8d, Ordinal_332
call sub.ntdll.dll_memset
mov rax, qword [r15 + 0x18]
mov edx, dword [r15 + 0x10]
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_280], rax
mov rax, qword [r12]
mov rcx, r12
mov dword [rsp + 0x110], edx
call qword [rax + 0x60]
mov rcx, rbp
mov word [rsp + 0x13c], ax
mov rax, qword [rsp + 0x6e8]
mov qword [rsp + 0x120], rax
mov rax, qword [rbp]
call qword [rax + 0x40]
mov rcx, r12
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_296], rax
mov rax, qword [rsp + 0x6e0]
mov qword [rsp + 0x130], rax
mov rax, qword [r12]
call qword [rax + 0xc0]
mov rcx, r12
mov dword [rsp + 0x138], eax
mov rax, qword [r12]
call qword [rax + 0x30]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0xa0]
mov rcx, r12
mov word [rsp + reloc.MFC80U.DLL_Ordinal_320], ax
mov rax, qword [r12]
call qword [rax + 0x30]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0xa8]
mov rcx, r12
mov word [rsp + 0x13e], ax
mov rax, qword [r12]
call qword [rax + 0x58]
mov rdx, qword [r12]
mov rcx, r12
mov rdi, rax
call qword [rdx + 0x50]
lea rdx, str.__c:__s_
lea rcx, [rsp + 0x142]
mov r9, rdi
movzx r8d, ax
call qword [sym.imp.MSVCR80.dll__swprintf]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x110]
mov rax, qword [rcx]
xor r9d, r9d
mov r8, r14
mov dword [rsp + 0x20], 0
call qword [rax + 0x68]
test eax, eax
mov dword [rsi], eax
je 0x1400a64b9
mov rax, qword [r14]
mov edx, 0x42
mov rcx, r14
call qword [rax + 0x50]
xor edx, edx
lea rcx, [rsp + 0xa0]
lea r8d, [rdx + 0x50]
call sub.ntdll.dll_memset
test r13, r13
jns 0x1400a60e0
neg r13
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x68]
cmp r13, rax
mov r13d, dword [rsp + 0x30]
jge 0x1400a6196
test r13d, r13d
jne 0x1400a6196
cmp dword [rsp + 0x40], r13d
je 0x1400a6196
mov eax, dword [r15 + 0x10]
mov rcx, rbp
mov dword [rsp + 0x68], eax
mov rax, qword [rbp]
call qword [rax + 0x60]
mov rcx, r12
mov word [rsp + 0x90], ax
mov rax, qword [r12]
call qword [rax + 0x40]
mov rdi, qword [rsp + 0x6f8]
mov rcx, r12
mov qword [rsp + 0x80], rax
mov rax, qword [r12]
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], rbx
call qword [rax + 0x88]
mov rcx, r12
mov qword [rsp + 0x88], rax
mov rax, qword [r12]
call qword [rax + 0xc0]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x94], eax
mov rax, qword [rcx]
xor r9d, r9d
mov r8, r14
mov dword [rsp + 0x20], 0
call qword [rax + 0x78]
jmp 0x1400a64ab
mov eax, dword [r15 + 0x10]
mov rdi, qword [rsp + 0x6f8]
mov rcx, rbp
mov dword [rsp + 0xb8], eax
mov dword [rsp + 0xa0], eax
mov rax, qword [rbp]
mov qword [rsp + 0xc0], rdi
mov qword [rsp + 0xa8], rbx
call qword [rax + 0x68]
mov qword [rsp + 0xb0], rax
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x60]
mov rcx, rbp
movzx edx, ax
mov rax, qword [rbp]
mov dword [rsp + 0xd0], edx
call qword [rax + 0xc0]
mov rcx, r12
mov dword [rsp + 0xd4], eax
mov rax, qword [r12]
call qword [rax + 0x40]
mov r9d, r13d
jmp 0x1400a6477
mov edx, 0x60
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x48]
movzx r8d, word [rsp + 0x710]
mov rax, qword [rcx]
mov rdx, qword [r15 + 0x30]
call qword [rax + 0x28]
lea rcx, [rsp + 0x110]
xor edx, edx
mov r8d, Ordinal_332
call sub.ntdll.dll_memset
mov rax, qword [r15 + 0x18]
mov edx, dword [r15 + 0x10]
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_280], rax
mov rax, qword [r12]
mov rcx, r12
mov dword [rsp + 0x110], edx
call qword [rax + 0x60]
mov rcx, rbp
mov word [rsp + 0x13c], ax
mov rax, qword [rsp + 0x6e8]
mov qword [rsp + 0x120], rax
mov rax, qword [rbp]
call qword [rax + 0x40]
mov rcx, r12
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_296], rax
mov rax, qword [rsp + 0x6e0]
mov qword [rsp + 0x130], rax
mov rax, qword [r12]
call qword [rax + 0xc0]
mov rcx, r12
mov dword [rsp + 0x138], eax
mov rax, qword [r12]
call qword [rax + 0x30]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0xa0]
mov rcx, r12
mov word [rsp + reloc.MFC80U.DLL_Ordinal_320], ax
mov rax, qword [r12]
call qword [rax + 0x30]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0xa8]
mov rcx, r12
mov word [rsp + 0x13e], ax
mov rax, qword [r12]
call qword [rax + 0x58]
mov rdx, qword [r12]
mov rcx, r12
mov rdi, rax
call qword [rdx + 0x50]
lea rdx, str.__c:__s_
lea rcx, [rsp + 0x142]
mov r9, rdi
movzx r8d, ax
call qword [sym.imp.MSVCR80.dll__swprintf]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x110]
mov rax, qword [rcx]
xor r9d, r9d
mov r8, r14
mov dword [rsp + 0x20], 0
call qword [rax + 0x68]
mov dword [rsi], eax
jmp 0x1400a64b9
jne 0x1400a64b9
cmp rdi, rbx
je 0x1400a64b9
mov rax, qword [r14]
mov edx, 0x60
mov rcx, r14
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x48]
movzx r8d, word [rsp + 0x710]
mov rax, qword [rcx]
mov rdx, qword [r15 + 0x30]
call qword [rax + 0x28]
xor edx, edx
lea rcx, [rsp + 0xa0]
lea r8d, [rdx + 0x50]
call sub.ntdll.dll_memset
test r13, r13
jns 0x1400a6397
neg r13
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x68]
cmp r13, rax
jge 0x1400a640e
mov r13d, dword [rsp + 0x30]
test r13d, r13d
jne 0x1400a640e
cmp dword [rsp + 0x40], r13d
je 0x1400a640e
mov eax, dword [r15 + 0x10]
mov rcx, rbp
mov dword [rsp + 0x68], eax
mov rax, qword [rbp]
call qword [rax + 0x60]
mov rcx, rbp
mov word [rsp + 0x90], ax
mov rax, qword [rbp]
call qword [rax + 0x40]
mov rcx, rbp
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], rax
mov rax, qword [rbp]
mov qword [rsp + 0x70], rbx
call qword [rax + 0x88]
mov rcx, rbp
mov qword [rsp + 0x88], rax
mov rax, qword [rbp]
jmp 0x1400a6166
mov eax, dword [r15 + 0x10]
mov rcx, rbp
mov qword [rsp + 0xc0], rdi
mov dword [rsp + 0xb8], eax
mov dword [rsp + 0xa0], eax
mov rax, qword [rbp]
mov qword [rsp + 0xa8], rbx
call qword [rax + 0x68]
mov rcx, rbp
mov qword [rsp + 0xb0], rax
mov rax, qword [rbp]
call qword [rax + 0x60]
mov rcx, rbp
movzx edx, ax
mov rax, qword [rbp]
mov dword [rsp + 0xd0], edx
call qword [rax + 0xc0]
mov rcx, rbp
mov dword [rsp + 0xd4], eax
mov rax, qword [rbp]
call qword [rax + 0x40]
xor r9d, r9d
movsxd rcx, dword [rsp + 0xd0]
cqo
mov r8, r14
idiv rcx
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0xc8], rax
xor eax, eax
mov dword [rsp + 0xe8], eax
mov rax, qword [rcx]
call qword [rax + 0x70]
mov dword [rsi], eax
mov rax, qword [rsp + 0x60]
mov ecx, 1
mov dword [rax], ecx
mov eax, dword [rsi]
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.140161080
add rsp, 0x678
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret