Function at 0x1400af520
Capabilities:
Check if file exists
Hide graphical window

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x4d8], rbx
mov rax, qword [0x14028e6b0]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov byte [rsp + 0x43], r9b
mov byte [rsp + 0x44], r8b
mov rdi, rdx
mov qword [rsp + 0x60], rdx
mov rsi, rcx
mov r9d, dword [rbp + 0x3e0]
mov dword [rsp + 0x48], r9d
mov rax, qword [rbp + 0x3e8]
mov qword [rsp + 0x68], rax
mov rbx, qword [rbp + 0x3f0]
cmp qword [rdx + 0x10], 0x103
jb 0x1400af59a
xor eax, eax
jmp 0x1400b0427
call fcn.14000cdd0
mov qword [rsp + 0x58], rax
cmp qword [rdi + 0x18], 8
jb 0x1400af5b0
mov rcx, qword [rdi]
jmp 0x1400af5b3
mov rcx, rdi
xor r9d, r9d
lea r8, [rbp + 0x180]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x1400af593
cmp eax, 0x104
ja 0x1400af593
mov edx, 0x7e
lea rcx, [rbp + 0x180]
call fcn.14018805c
test rax, rax
je 0x1400af603
mov r8d, 0x104
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400af652
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400af652
mov byte [rsp + 0x40], 1
lea rcx, [rbp + 0x180]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400af657
cmp qword [rdi + 0x18], 8
jb 0x1400af63c
mov r8, qword [rdi]
jmp 0x1400af63f
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp + 0x180]
call fcn.14018fc10
jmp 0x1400af657
mov byte [rsp + 0x40], 0
lea rcx, [rsi + 0x97858]
lea rdx, [rbp + 0x180]
call fcn.14006bdf0
xor eax, eax
mov qword [rbp + 0x170], rax
mov qword [rbp + 0x178], rax
mov qword [rbp + 0x178], 7
mov qword [rbp + 0x170], rax
mov word [rbp + 0x160], ax
mov qword [rbp + 0x150], rax
mov qword [rbp + 0x158], rax
mov qword [rbp + 0x158], 7
mov qword [rbp + 0x150], rax
mov word [rbp + 0x140], ax
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp + 0x140]
call fcn.140006dd0
nop
cmp qword [rdi + 0x18], 8
jb 0x1400af6db
mov rdi, qword [rdi]
call fcn.1400417e0
mov rcx, rax
mov rdx, rdi
call fcn.14001f040
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x1400af75f
cmp word [rbp + 0x180], ax
jne 0x1400af705
xor ecx, ecx
mov r8d, ecx
jmp 0x1400af71b
lea rax, [rbp + 0x180]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400af710
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x160]
call fcn.140006f10
lea rdi, [rbp + 0x160]
cmp qword [rbp + 0x178], 8
cmovae rdi, qword [rbp + 0x160]
call fcn.1400417e0
mov rcx, rax
mov rdx, rdi
call fcn.14001f040
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400af7cb
cmp byte [rsp + 0x40], 0
jne 0x1400af7cb
mov rax, qword [rsi + 0x979b0]
test rax, rax
je 0x1400af7c1
cmp byte [rax + 0x3c8], 0
je 0x1400af7c1
mov rax, qword [rsi]
mov edx, 5
mov rcx, qword [rax + 0x18]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, qword [rsi]
cmp byte [rax + 0x98320], 0
jne 0x1400af7aa
mov edx, 2
mov rcx, qword [rsi + 0x979b0]
call fcn.140121410
mov rax, qword [rsi]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 5]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, qword [rsp + 0x50]
jmp 0x1400b03da
lea rdx, [rbp + 0x180]
mov rcx, rsi
call fcn.1400b5020
test al, al
je 0x1400af807
lea rcx, [rbp + 0x180]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400af807
lea rdx, [rbp + 0x180]
mov rcx, rsi
call fcn.1400b3600
xor edi, edi
mov ebx, edi
jmp 0x1400b03dc
lea rdx, [rbp + 0x180]
mov rcx, rsi
call fcn.1400b5230
test al, al
je 0x1400af85b
lea rcx, [rbp + 0x180]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400af85b
lea r8, [rbp + 0x180]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.1400d8400
mov byte [rsi + 0x97ae3], 1
mov edx, 0xac31
mov rcx, rsi
call fcn.1400a4840
xor edi, edi
mov ebx, edi
jmp 0x1400b03dc
mov byte [rsp + 0x42], 0
lea rcx, [rbp + 0x180]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400af882
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.1400d8030
mov byte [rsp + 0x42], 1
mov edx, 0x2a
lea rcx, [rbp + 0x180]
call fcn.1401885c8
test rax, rax
jne 0x1400af8b1
lea edx, [rax + 0x3f]
lea rcx, [rbp + 0x180]
call fcn.1401885c8
test rax, rax
jne 0x1400af8b1
xor dil, dil
jmp 0x1400af8b4
mov dil, 1
mov byte [rsp + 0x41], dil
cmp byte [rsp + 0x40], 0
jne 0x1400afc24
lea rcx, [rbp + 0x180]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400afc24
test dil, dil
jne 0x1400afc24
xor edi, edi
mov qword [rbp + 0xf0], rdi
mov qword [rbp + 0xf8], rdi
mov qword [rbp + 0xf8], 7
mov qword [rbp + 0xf0], rdi
mov word [rbp + 0xe0], di
cmp word [rbp + 0x180], di
jne 0x1400af919
mov r8d, edi
jmp 0x1400af92e
lea rax, [rbp + 0x180]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x1400af924
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0xe0]
call fcn.140006f10
nop
lea rdx, [rbp + 0xe0]
lea rcx, [rbp + 0x120]
call fcn.1400285c0
mov r8, qword [rbp + 0x138]
cmp r8, 8
jb 0x1400af978
inc r8
mov rdx, qword [rbp + 0x120]
lea rcx, [rbp + 0x120]
call fcn.140007680
lea rcx, [rbp + 0xe0]
cmp qword [rbp + 0xf8], 8
cmovae rcx, qword [rbp + 0xe0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400afa90
mov rax, qword [rsi]
lea rcx, [rbp + 0x180]
mov qword [rsp + 0x38], rcx
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], 4
lea rcx, str.Create_new_file
mov qword [rsp + 0x20], rcx
lea r9, str.__STR_REPLACE___doesnt_exist._Create_it_
mov r8, qword [rax + 0x18]
lea rdx, str.CreateNewFileOrNot
lea rcx, [rsi + 0x478]
call fcn.140070e40
cmp eax, 6
jne 0x1400afbc7
call fcn.1400417e0
mov rcx, rax
lea rdx, [rbp + 0x180]
call fcn.14001e2d0
test al, al
jne 0x1400afa4d
mov rax, qword [rsi]
lea rcx, [rbp + 0x180]
mov qword [rsp + 0x38], rcx
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
lea rcx, str.Create_new_file
mov qword [rsp + 0x20], rcx
lea r9, str.Cannot_create_the_file___STR_REPLACE__.
mov r8, qword [rax + 0x18]
lea rdx, str.CreateNewFileError
lea rcx, [rsi + 0x478]
call fcn.140070e40
jmp 0x1400afbc7
mov r8, qword [rbp + 0xf8]
cmp r8, 8
jb 0x1400afa70
inc r8
mov rdx, qword [rbp + 0xe0]
lea rcx, [rbp + 0xe0]
call fcn.140007680
mov qword [rbp + 0xf8], 7
xor eax, eax
mov qword [rbp + 0xf0], rax
mov word [rbp + 0xe0], ax
jmp 0x1400afc24
mov qword [rbp + 0xd0], rdi
mov qword [rbp + 0xd8], rdi
mov qword [rbp + 0xd8], 7
mov qword [rbp + 0xd0], rdi
mov word [rbp + 0xc0], di
mov r8d, 1
lea rdx, [0x1401e1d0c]
lea rcx, [rbp + 0xc0]
call fcn.140006f10
nop
cmp word [rbp + 0x180], 0
jne 0x1400afae0
mov r8, rdi
jmp 0x1400afafb
lea rax, [rbp + 0x180]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400afaf0
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0xc0]
call fcn.140006a00
mov r8d, 0x1c
lea rdx, str.__cannot_be_opened:_nFolder__
lea rcx, [rbp + 0xc0]
call fcn.140006a00
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0xe0]
lea rcx, [rbp + 0xc0]
call fcn.1400068d0
mov r8d, InitCommonControls
lea rdx, str.__doesnt_exist.
lea rcx, [rbp + 0xc0]
call fcn.140006a00
lea rdx, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 8
cmovae rdx, qword [rbp + 0xc0]
mov rax, qword [rsi]
xor r9d, r9d
lea r8, str.Cannot_open_file
mov rcx, qword [rax + 0x18]
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov r8, qword [rbp + 0xd8]
cmp r8, 8
jb 0x1400afbac
inc r8
mov rdx, qword [rbp + 0xc0]
lea rcx, [rbp + 0xc0]
call fcn.140007680
mov qword [rbp + 0xd8], 7
mov qword [rbp + 0xd0], rdi
mov word [rbp + 0xc0], di
jmp 0x1400afbc9
xor edi, edi
cmp byte [rsp + 0x42], 0
je 0x1400afbe0
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.1400d8030
nop
mov r8, qword [rbp + 0xf8]
cmp r8, 8
jb 0x1400afc03
inc r8
mov rdx, qword [rbp + 0xe0]
lea rcx, [rbp + 0xe0]
call fcn.140007680
mov qword [rbp + 0xf8], 7
mov qword [rbp + 0xf0], rdi
mov word [rbp + 0xe0], di
mov rbx, rdi
jmp 0x1400b03dc
mov dword [rbp - 0x70], 0x3f6
mov rax, qword [rsi]
mov rcx, qword [rax + 0x18]
mov qword [rbp - 0x80], rcx
xor eax, eax
mov qword [rbp - 0x78], rax
lea rdx, [rbp - 0x80]
lea rcx, [rsi + 0x97a20]
call fcn.1400dfd00
cmp dword [rsp + 0x48], 0xffffffff
jne 0x1400afc66
lea rdx, [rbp + 0x180]
mov rcx, rsi
call fcn.140082df0
mov dword [rsp + 0x48], eax
cmp byte [rsp + 0x40], 0
je 0x1400afcea
call fcn.1400417e0
mov rcx, rax
mov qword [rsp + 0x28], rbx
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x48]
xor r8d, r8d
lea rdx, [rbp + 0x180]
call fcn.14001f740
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400afe31
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400afd1c
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400afd1c
xor eax, eax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rbx
mov dword [rbp + 0x30], 0x3fa
lea rdx, [rbp + 0x20]
lea rcx, [rsi + 0x97a20]
call fcn.1400dfd00
mov byte [rbx + 0x101], 1
jmp 0x1400afd1c
xor ebx, ebx
call fcn.1400417e0
mov rcx, rax
mov qword [rsp + 0x28], rbx
xor eax, eax
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x48]
xor r8d, r8d
lea rdx, [rbp + 0x180]
call fcn.14001f740
mov rbx, rax
mov qword [rsp + 0x50], rax
test rbx, rbx
je 0x1400afe31
mov byte [rsi + 0x97ae0], 1
call fcn.1400417e0
cmp byte [rsp + 0x43], 0
je 0x1400afd49
mov byte [rbx + 0x54], 1
mov edx, InitCommonControls
mov rcx, rbx
call fcn.14001ede0
mov dword [rbp - 0x70], 0x3ee
mov qword [rbp - 0x78], rbx
lea rdx, [rbp - 0x80]
lea rcx, [rsi + 0x97a20]
call fcn.1400dfd00
xor r9d, r9d
mov r8d, dword [rsi + 0x982fc]
mov rdx, rbx
mov rcx, rsi
call fcn.140088dc0
mov rax, qword [rsi + 0x979b0]
test rax, rax
je 0x1400afdd4
cmp byte [rax + 0x3c8], 0
je 0x1400afdd4
mov rax, qword [rsi]
mov edx, 5
mov rcx, qword [rax + 0x18]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, qword [rsi]
cmp byte [rax + 0x98320], 0
jne 0x1400afdbd
mov edx, 2
mov rcx, qword [rsi + 0x979b0]
call fcn.140121410
mov rax, qword [rsi]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 5]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rbp + 0x180]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov byte [rsi + 0x97990], 1
mov byte [rsi + 0x97ae0], 0
mov dword [rbp - 0x70], 0x3ec
lea rdx, [rbp - 0x80]
lea rcx, [rsi + 0x97a20]
call fcn.1400dfd00
mov rcx, qword [rsi + 0x982c0]
test rcx, rcx
je 0x1400b03c4
add rcx, 0x98
mov r8d, dword [rsi + 0x982fc]
mov rdx, rbx
call fcn.140130700
jmp 0x1400b03c4
movzx eax, byte [rsp + 0x41]
mov rbx, qword [rsp + 0x60]
test al, al
jne 0x1400afec7
cmp qword [rbx + 0x18], 8
jb 0x1400afe4f
mov rcx, qword [rbx]
jmp 0x1400afe52
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1400afec2
mov rax, qword [rsi]
lea rcx, [rsi + 0x478]
lea rdx, [rbp + 0x180]
mov qword [rsp + 0x38], rdx
xor edx, edx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], edx
lea rdx, str.ERROR
mov qword [rsp + 0x20], rdx
lea r9, str.Can_not_open_file___STR_REPLACE__.
mov r8, qword [rax + 0x18]
lea rdx, str.OpenFileError
call fcn.140070e40
mov byte [rsi + 0x97ae0], 0
mov dword [rbp - 0x70], 0x3f7
lea rdx, [rbp - 0x80]
lea rcx, [rsi + 0x97a20]
call fcn.1400dfd00
jmp 0x1400b03bf
movzx eax, byte [rsp + 0x41]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xe0], xmm0
xor edi, edi
mov qword [rbp + 0xf0], rdi
movdqu xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd0], rdi
test al, al
je 0x1400b01f0
cmp qword [rbx + 0x18], 8
jb 0x1400afefe
mov rcx, qword [rbx]
jmp 0x1400aff01
mov rcx, rbx
mov edx, 0x5c
call fcn.1401885c8
test rax, rax
je 0x1400b0302
cmp qword [rbx + 0x18], 8
jb 0x1400aff20
mov rcx, qword [rbx]
jmp 0x1400aff23
mov rcx, rbx
mov rdi, rax
sub rdi, rcx
sar rdi, 1
mov qword [rsp + 0x60], rdi
lea rdx, [rax + 2]
xor eax, eax
mov qword [rbp + 0x110], rax
mov qword [rbp + 0x118], rax
mov qword [rbp + 0x118], 7
mov qword [rbp + 0x110], rax
mov word [rbp + 0x100], ax
cmp word [rdx], ax
jne 0x1400aff68
mov r8d, eax
jmp 0x1400aff7a
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], ax
jne 0x1400aff70
lea rcx, [rbp + 0x100]
call fcn.140006f10
nop
lea rax, [rbp + 0x100]
mov r8, qword [rbp + 0xc0]
mov rcx, qword [rbp + 0xc8]
cmp rax, rcx
jae 0x1400b008b
lea rax, [rbp + 0x100]
cmp r8, rax
ja 0x1400b008b
lea rdi, [rbp + 0x100]
sub rdi, r8
mov r9, qword [rbp + 0xd0]
cmp rcx, r9
jne 0x1400b0046
mov rax, r9
sub rax, rcx
sar rax, 5
cmp rax, 1
jae 0x1400b0046
sub rcx, r8
sar rcx, 5
movabs r10, 0x7ffffffffffffff
mov rax, r10
sub rax, rcx
cmp rax, 1
jae 0x1400b0005
lea rcx, str.vector_T__too_long
call fcn.140145858
int3
lea rdx, [rcx + 1]
sub r9, r8
sar r9, 5
mov rax, r9
shr rax, 1
sub r10, rax
add rax, r9
xor ecx, ecx
cmp r10, r9
cmovae rcx, rax
cmp rcx, rdx
cmovae rdx, rcx
lea rcx, [rbp + 0xc0]
call fcn.140006120
mov rcx, qword [rbp + 0xc8]
mov r8, qword [rbp + 0xc0]
and rdi, 0xffffffffffffffe0
add rdi, r8
test rcx, rcx
je 0x1400b0081
xor edx, edx
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rdx
cmp qword [rcx + 0x18], 8
jb 0x1400b006c
mov rax, qword [rcx]
jmp 0x1400b006f
mov rax, rcx
mov word [rax], dx
mov rdx, rdi
call fcn.140004900
mov rcx, qword [rbp + 0xc8]
mov rdi, qword [rsp + 0x60]
jmp 0x1400b0143
mov r9, qword [rbp + 0xd0]
cmp rcx, r9
jne 0x1400b010b
mov rax, r9
sub rax, rcx
sar rax, 5
cmp rax, 1
jae 0x1400b010b
sub rcx, r8
sar rcx, 5
movabs r10, 0x7ffffffffffffff
mov rax, r10
sub rax, rcx
cmp rax, 1
jae 0x1400b00d1
lea rcx, str.vector_T__too_long
call fcn.140145858
int3
lea rdx, [rcx + 1]
sub r9, r8
sar r9, 5
mov rax, r9
shr rax, 1
sub r10, rax
add rax, r9
xor ecx, ecx
cmp r10, r9
cmovae rcx, rax
cmp rcx, rdx
cmovae rdx, rcx
lea rcx, [rbp + 0xc0]
call fcn.140006120
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x1400b0143
xor edx, edx
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rdx
cmp qword [rcx + 0x18], 8
jb 0x1400b012a
mov rax, qword [rcx]
jmp 0x1400b012d
mov rax, rcx
mov word [rax], dx
lea rdx, [rbp + 0x100]
call fcn.140004900
mov rcx, qword [rbp + 0xc8]
add rcx, 0x20
mov qword [rbp + 0xc8], rcx
lea rcx, [rbp + 0x100]
call fcn.1400037f0
cmp qword [rbx + 0x18], 8
jb 0x1400b0164
mov rbx, qword [rbx]
xor eax, eax
mov qword [rbp + 0x130], rax
mov qword [rbp + 0x138], rax
mov qword [rbp + 0x138], 7
mov qword [rbp + 0x130], rax
mov word [rbp + 0x120], ax
lea r8, [rdi + 1]
mov rdx, rbx
lea rcx, [rbp + 0x120]
call fcn.140006f10
nop
lea rdx, [rbp + 0x120]
cmp qword [rbp + 0x138], 8
cmovae rdx, qword [rbp + 0x120]
mov byte [rsp + 0x28], 0
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x20], al
lea r9, [rbp + 0xe0]
lea r8, [rbp + 0xc0]
mov rcx, rsi
call fcn.140083890
nop
lea rcx, [rbp + 0x120]
call fcn.1400037f0
xor edi, edi
jmp 0x1400b0302
mov qword [rbp + 0x110], rdi
mov qword [rbp + 0x118], rdi
mov qword [rbp + 0x118], 7
mov qword [rbp + 0x110], rdi
mov word [rbp + 0x100], di
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0x100]
call fcn.140006dd0
nop
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x1400b023c
mov rbx, qword [rbx]
cmp word [rbx + rax*2 - 2], 0x5c
je 0x1400b025d
mov r8d, 1
lea rdx, [0x1401d3668]
lea rcx, [rbp + 0x100]
call fcn.140006a00
mov qword [rbp + 0x130], rdi
mov qword [rbp + 0x138], rdi
mov qword [rbp + 0x138], 7
mov qword [rbp + 0x130], rdi
mov word [rbp + 0x120], di
mov r8d, 1
lea rdx, [0x1401e3348]
lea rcx, [rbp + 0x120]
call fcn.140006f10
nop
lea rdx, [rbp + 0x120]
lea rcx, [rbp + 0xc0]
call fcn.140009520
nop
lea rcx, [rbp + 0x120]
call fcn.1400037f0
lea rdx, [rbp + 0x100]
cmp qword [rbp + 0x118], 8
cmovae rdx, qword [rbp + 0x100]
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 1
lea r9, [rbp + 0xe0]
lea r8, [rbp + 0xc0]
mov rcx, rsi
call fcn.140083890
nop
lea rcx, [rbp + 0x100]
call fcn.1400037f0
mov rbx, qword [rbp + 0xe8]
sub rbx, qword [rbp + 0xe0]
sar rbx, 5
cmp rbx, 0xc8
jbe 0x1400b0365
mov rax, qword [rsi]
lea rcx, [rsi + 0x478]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 4
lea rdx, str.Amount_of_files_to_open_is_too_large
mov qword [rsp + 0x20], rdx
lea r9, str._INT_REPLACE__files_are_about_to_be_opened._rAre_you_sure_to_open_them_
mov r8, qword [rax + 0x18]
lea rdx, str.NbFileToOpenImportantWarning
call fcn.140070e40
cmp eax, 6
sete al
test al, al
je 0x1400b03a6
test rbx, rbx
je 0x1400b03a6
nop word [rax + rax]
xor eax, eax
mov rdx, qword [rbp + 0xe0]
add rdx, rdi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call fcn.1400af520
add rdi, 0x20
sub rbx, 1
jne 0x1400b0370
lea rcx, [rbp + 0xc0]
call fcn.140003990
nop
lea rcx, [rbp + 0xe0]
call fcn.140003990
mov rbx, qword [rsp + 0x50]
cmp byte [rsp + 0x42], 0
je 0x1400b03da
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.1400d8030
xor edi, edi
mov r8, qword [rbp + 0x158]
cmp r8, 8
jb 0x1400b03ff
inc r8
mov rdx, qword [rbp + 0x140]
lea rcx, [rbp + 0x140]
call fcn.140007680
mov qword [rbp + 0x158], 7
mov qword [rbp + 0x150], rdi
mov word [rbp + 0x140], di
lea rcx, [rbp + 0x160]
call fcn.1400037f0
mov rax, rbx
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140168660
mov rbx, qword [rsp + 0x4d8]
add rsp, 0x4a0
pop rdi
pop rsi
pop rbp
ret