Function at 0x1400a9620
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x318], rbx
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r14, r9
mov rdi, rcx
mov qword [rsp + 0x40], rcx
mov qword [rbp - 0x68], r9
movzx r13d, word [0x140456be8]
xor esi, esi
mov qword [rbp - 0x60], rsi
mov r12d, esi
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x1400a9905
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
lea rax, str.9hnc
cmp word [str.9hnc], si
jne 0x1400a96b2
mov r8d, esi
jmp 0x1400a96c0
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x1400a96b6
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14004db90
lea rcx, [rsp + 0x48]
call fcn.14007d390
call fcn.14007e670
mov r15, rax
mov rbx, qword [r14]
mov rcx, qword [r14 + 8]
sub rcx, rbx
movabs rax, 0x7b301ecc07b301ed
imul rcx
sar rdx, 6
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
je 0x1400a9905
cmp rbx, qword [r14 + 8]
je 0x1400a9905
nop dword [rax]
nop dword [rax + rax]
cmp dword [0x140455b64], 0
jne 0x1400a9895
movzx eax, r13w
cmp dword [rbx], eax
jne 0x1400a9884
mov qword [rbp - 0x60], rsi
cmp qword [rbx + 0x40], 8
jb 0x1400a974a
mov rax, qword [rbx + 0x28]
jmp 0x1400a974e
lea rax, [rbx + 0x28]
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, [0x140334198]
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.14004e9f0
lea rcx, [rbp - 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400a9884
mov edx, 1
lea r8d, [rdx + 2]
lea rcx, [rbp - 0x50]
call fcn.140052070
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400a97b8
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x50]
lea rdx, [0x14007d250]
mov rcx, rax
call fcn.140052330
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp - 0x60]
test rax, rax
je 0x1400a987f
add r12, rax
mov ecx, 0x478
call fcn.140125dd0
mov rdi, rax
xor edx, edx
mov r8d, 0x478
mov rcx, rax
call fcn.1402767a0
mov rcx, qword [rbp - 0x60]
mov qword [rdi + 0x28], rcx
mov dword [rdi + 0x38], reloc.WS2_32.dll_recv
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rsi
mov word [rsp + 0x68], si
cmp word [rbp - 0x50], 0
jne 0x1400a9812
mov r8, rsi
jmp 0x1400a982b
lea rax, [rbp - 0x50]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400a9820
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x68]
call fcn.14004db90
mov qword [rbp - 0x78], rdi
lea rdx, [rsp + 0x68]
lea rcx, [r15 + 0x75]
call fcn.140056330
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x48]
lea rcx, [r15 + 0x75]
call fcn.1400563b0
nop
mov r8, qword [rbp - 0x80]
cmp r8, 8
jb 0x1400a987f
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.14004e100
mov rdi, qword [rsp + 0x40]
add rbx, 0x85
cmp rbx, qword [r14 + 8]
jne 0x1400a9720
test r12, r12
je 0x1400a9905
mov dword [r15 + 0x71], esi
mov qword [r15 + 0x68], r12
call fcn.14007e550
mov rbx, rax
mov byte [rax + 0x50], 1
mov byte [r15 + 0x70], 1
mov qword [rax + 0x55], r15
mov dword [rax + 0x4c], esi
mov dword [rax + 8], 8
lea rdx, str.9hnc
cmp word [str.9hnc], 0
je 0x1400a98e0
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rdx + rsi*2], 0
jne 0x1400a98d6
lea rcx, [rax + 0xc]
mov r8, rsi
call fcn.14004db90
xor r9d, r9d
mov r8, rbx
mov edx, 0x4ca
mov rcx, qword [0x140456df8]
call qword [sym.imp.USER32.dll_PostMessageW]
nop
mov rcx, r14
call fcn.1400ae0b0
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x318]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret