Function at 0x180091db4
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x180101090]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov rbx, rdx
mov r13, rcx
mov r15d, 8
mov rcx, r15
call fcn.18009a960
xor r14d, r14d
cmp rax, r14
je 0x180091e11
lea rcx, [rsp + 0x20]
mov qword [rax], rcx
jmp 0x180091e14
mov rax, r14
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
call fcn.1800273f0
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], r14
mov r12, qword [rbx + 0x28]
mov rdi, qword [r12]
mov rbx, qword [rbx]
cmp rbx, r14
je 0x180091e42
cmp rbx, rbx
je 0x180091e4c
call fcn.18009a80c
mov rax, qword [rsp + 0x48]
cmp rdi, r12
je 0x180091f71
cmp rbx, r14
jne 0x180091e64
call fcn.18009a80c
mov r11, r14
jmp 0x180091e67
mov r11, qword [rbx]
cmp rdi, qword [r11 + 0x28]
jne 0x180091e72
call fcn.18009a80c
cmp qword [rdi + 0x30], r15
jb 0x180091e7e
mov rcx, qword [rdi + 0x18]
jmp 0x180091e82
lea rcx, [rdi + 0x18]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, r14d
je 0x180091eef
cmp rbx, r14
jne 0x180091e9c
call fcn.18009a80c
mov r11, r14
jmp 0x180091e9f
mov r11, qword [rbx]
cmp rdi, qword [r11 + 0x28]
jne 0x180091eaa
call fcn.18009a80c
mov rbp, qword [rsp + 0x48]
lea r9, [rdi + 0x10]
mov r8, qword [rbp + 8]
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.180027840
movabs rcx, 0x666666666666666
mov rdx, qword [rsp + 0x50]
sub rcx, rdx
cmp rcx, 1
jb 0x180091f19
inc rdx
mov qword [rsp + 0x50], rdx
mov qword [rbp + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
cmp rbx, r14
jne 0x180091efe
call fcn.18009a80c
mov r11, r14
jmp 0x180091f01
mov r11, qword [rbx]
cmp rdi, qword [r11 + 0x28]
jne 0x180091f0c
call fcn.18009a80c
mov rdi, qword [rdi]
mov rax, qword [rsp + 0x48]
jmp 0x180091e38
mov qword [rsp + 0x90], socket
mov qword [rsp + 0x88], r14
mov byte [rsp + 0x78], r14b
mov r8d, sendto
lea rdx, str.list_T__too_long
lea rcx, [rsp + 0x70]
call fcn.18000f0f0
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0xa0]
call fcn.1800010b0
lea rdx, [0x1800fe780]
lea rcx, [rsp + 0xa0]
call fcn.18009b1f4
nop
cmp qword [rsp + 0x50], r14
jne 0x180091fed
mov rbx, qword [rax]
mov qword [rax], rax
mov rax, qword [rsp + 0x48]
mov qword [rax + 8], rax
mov qword [rsp + 0x50], r14
mov rcx, qword [rsp + 0x48]
cmp rbx, rcx
je 0x180091fcf
mov edi, 7
mov rsi, qword [rbx]
cmp qword [rbx + 0x30], r15
jb 0x180091fad
mov rcx, qword [rbx + 0x18]
call fcn.18009a864
mov qword [rbx + 0x30], rdi
mov qword [rbx + 0x28], r14
mov word [rbx + 0x18], r14w
mov rcx, rbx
call fcn.18009a864
mov rbx, rsi
mov rcx, qword [rsp + 0x48]
cmp rsi, rcx
jne 0x180091f9b
call fcn.18009a864
mov qword [rsp + 0x48], r14
mov rcx, qword [rsp + 0x20]
call fcn.18009a864
mov eax, 0x44e
jmp 0x180092349
xor edx, edx
mov rcx, r13
call fcn.180050354
mov rcx, r13
call fcn.180051020
mov r9, r13
lea r8, [0x1800d6660]
lea rdx, str.__s__a___s_
lea rcx, [rsp + 0xe0]
call fcn.180053a60
nop
mov rbp, qword [rsp + 0x48]
mov rax, qword [rbp]
mov qword [rsp + 0x68], rax
mov r12, qword [rsp + 0x20]
mov qword [rsp + 0x60], r12
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
or rsi, 0xffffffffffffffff
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
cmp rdi, r14
je 0x180092059
cmp rdi, r12
je 0x18009205e
call fcn.18009a80c
cmp rbx, rbp
je 0x1800920f6
cmp rdi, r14
jne 0x180092076
call fcn.18009a80c
mov r11, r14
jmp 0x180092079
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x180092084
call fcn.18009a80c
cmp qword [rbx + 0x30], r15
jb 0x180092090
mov r8, qword [rbx + 0x18]
jmp 0x180092094
lea r8, [rbx + 0x18]
lea rdx, str.___s_
lea rcx, [rsp + 0x70]
call fcn.180053a60
nop
mov r9, rsi
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.180011750
nop
cmp qword [rsp + 0x90], r15
jb 0x1800920d1
mov rcx, qword [rsp + 0x78]
call fcn.18009a864
cmp rdi, r14
jne 0x1800920e0
call fcn.18009a80c
mov r11, r14
jmp 0x1800920e3
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x1800920ee
call fcn.18009a80c
mov rbx, qword [rbx]
jmp 0x18009204f
mov rcx, r13
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, 7
cmp rax, r14
je 0x18009224b
mov rcx, r13
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov rcx, rax
lea rdx, [0x1800d6148]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, r14d
jne 0x18009224b
lea rax, [rsp + 0xe8]
mov rdx, qword [rsp + 0xe8]
mov r8, qword [rsp + 0x100]
cmp r8, r15
cmovae rax, rdx
lea rbx, str.__md1M
mov rcx, qword [rsp + 0xf8]
cmp rbx, rax
jb 0x1800921af
lea rax, [rsp + 0xe8]
cmp r8, r15
cmovae rax, rdx
lea rax, [rax + rcx*2]
cmp rax, rbx
jbe 0x1800921af
lea rax, [rsp + 0xe8]
cmp r8, r15
cmovae rax, rdx
sub rbx, rax
sar rbx, 1
mov r9, rdi
mov r8, rbx
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0xe0]
call fcn.180011750
jmp 0x18009224b
sub rsi, rcx
cmp rsi, rdi
jbe 0x1800921c0
lea rax, [rcx + 7]
cmp rax, rcx
jae 0x1800921cd
call fcn.180099ecc
mov rcx, qword [rsp + 0xf8]
lea rsi, [rcx + 7]
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0xe0]
call fcn.18000f6e0
cmp al, r14b
je 0x18009224b
lea rcx, [rsp + 0xe8]
mov rdx, qword [rsp + 0x100]
cmp rdx, r15
cmovae rcx, qword [rsp + 0xe8]
mov rax, qword [rsp + 0xf8]
sub rdx, rax
lea rcx, [rcx + rax*2]
add rdx, rdx
mov r9d, 0xe
mov r8, rbx
call fcn.18009a86c
mov qword [rsp + 0xf8], rsi
lea rax, [rsp + 0xe8]
cmp qword [rsp + 0x100], r15
cmovae rax, qword [rsp + 0xe8]
mov word [rax + rsi*2], r14w
mov qword [rsp + 0x90], socket
mov qword [rsp + 0x88], r14
mov byte [rsp + 0x78], r14b
lea rcx, [rsp + 0xe8]
cmp qword [rsp + 0x100], r15
cmovae rcx, qword [rsp + 0xe8]
lea rdx, [rsp + 0x70]
call fcn.180091830
mov esi, eax
cmp qword [rsp + 0x90], 0x10
jb 0x18009229e
mov rcx, qword [rsp + 0x78]
call fcn.18009a864
cmp esi, r14d
je 0x1800922ac
mov rcx, r13
call fcn.180051020
nop
cmp qword [rsp + 0x100], r15
jb 0x1800922c3
mov rcx, qword [rsp + 0xe8]
call fcn.18009a864
mov qword [rsp + 0x100], rdi
mov qword [rsp + 0xf8], r14
mov word [rsp + 0xe8], r14w
mov rax, qword [rsp + 0x48]
mov rbx, qword [rax]
mov qword [rax], rax
mov rax, qword [rsp + 0x48]
mov qword [rax + 8], rax
mov qword [rsp + 0x50], r14
mov rcx, qword [rsp + 0x48]
cmp rbx, rcx
je 0x180092333
mov rbp, qword [rbx]
cmp qword [rbx + 0x30], r15
jb 0x180092311
mov rcx, qword [rbx + 0x18]
call fcn.18009a864
mov qword [rbx + 0x30], rdi
mov qword [rbx + 0x28], r14
mov word [rbx + 0x18], r14w
mov rcx, rbx
call fcn.18009a864
mov rbx, rbp
mov rcx, qword [rsp + 0x48]
cmp rbp, rcx
jne 0x1800922ff
call fcn.18009a864
mov qword [rsp + 0x48], r14
mov rcx, qword [rsp + 0x20]
call fcn.18009a864
mov eax, esi
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.180099fe0
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret