Function at 0x180019170
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x1800eb008]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rdi, rcx
mov rsi, rdx
mov rcx, rdx
call fcn.180021ce0
or r8, 0xffffffffffffffff
mov dword [rsp + 0x40], eax
xor ebx, ebx
mov qword [rsp + 0x48], r8
test eax, eax
js 0x1800195f5
lea ecx, [rax + 1]
cmp word [rsi + rcx*2], bx
je 0x1800195f5
mov ecx, eax
mov dword [rsp + 0x28], ebx
lea rax, [rcx + rcx]
mov ecx, ebx
lea rdx, [rsi + rax]
mov qword [rsp + 0x50], rax
cmp word [rdx], bx
je 0x1800191f0
inc ecx
cmp word [rdx + rcx*2], bx
jne 0x1800191e4
mov dword [rsp + 0x28], ecx
lea ebx, [rcx + 1]
mov eax, 2
mul rbx
cmovo rax, r8
mov rcx, rax
call fcn.180072d68
mov ecx, dword [rsp + 0x28]
lea r8, [rbx + rbx]
mov rdx, qword [rsp + 0x50]
mov dword [rsp + 0x38], ecx
add rdx, rsi
mov dword [rsp + 0x3c], ecx
mov rcx, rax
mov qword [rsp + 0x30], rax
call fcn.18008b7d0
xor eax, eax
mov ecx, eax
mov dword [rsp + 0x24], eax
cmp word [rsi], ax
je 0x18001924c
nop dword [rax]
inc ecx
cmp word [rsi + rcx*2], ax
jne 0x180019240
mov dword [rsp + 0x24], ecx
lea ebx, [rcx + 1]
mov eax, 2
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180072d68
mov qword [rsp + 0x58], rax
lea r8, [rbx + rbx]
mov eax, dword [rsp + 0x24]
mov rdx, rsi
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
call fcn.18008b7d0
mov r11d, dword [rsp + 0x40]
cmp r11d, dword [rsp + 0x24]
jae 0x1800192b3
mov eax, r11d
xor r8d, r8d
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x50]
mov word [rbx + rax], r8w
mov ecx, dword [rsp + 0x28]
cmp ecx, 6
jbe 0x18001932c
mov r10d, ecx
lea r9, [0x1800d5da8]
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff4
lea r10, [rcx + r10*2]
nop dword [rax]
nop word [rax + rax]
movzx edx, word [r10]
lea r10, [r10 + 2]
movzx ecx, byte [r9]
lea r9, [r9 + 1]
cmp dx, cx
je 0x180019321
cmp dx, 0x7f
ja 0x180019328
lea eax, [rdx - 0x41]
cmp ax, 0x19
ja 0x18001930a
lea r8d, [rdx + 0x20]
jmp 0x18001930e
movzx r8d, dx
lea eax, [rcx - 0x41]
cmp al, 0x19
ja 0x180019318
add cl, 0x20
movzx eax, cl
cmp r8w, ax
jne 0x180019328
test dx, dx
jne 0x1800192e0
jmp 0x180019389
mov ecx, dword [rsp + 0x28]
xor eax, eax
lea rdx, str.:_DATA
mov ebx, eax
inc ebx
cmp word [rdx + rbx*2], ax
jne 0x180019337
test ebx, ebx
je 0x180019368
add ecx, ebx
mov eax, ecx
shr eax, 1
lea edx, [rcx + 0x10]
add edx, eax
lea rcx, [rsp + 0x30]
and edx, 0xfffffff0
dec edx
call fcn.1800183b0
mov ecx, dword [rsp + 0x38]
lea rdx, str.:_DATA
mov eax, ecx
lea r8d, [rbx + 1]
mov rcx, qword [rsp + 0x30]
add r8, r8
lea rcx, [rcx + rax*2]
call fcn.18008b7d0
mov r11d, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
movzx ecx, word [rbx]
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x18001939f
sub cx, 0x41
cmp cx, 0x19
ja 0x1800193f0
cmp word [rbx + 2], 0x3a
jne 0x1800193f0
cmp r11d, 2
je 0x1800193b9
cmp r11d, 3
jne 0x1800193f0
cmp word [rbx + 4], 0x5c
jne 0x1800193f0
xor ebx, ebx
lea rcx, [rdi + 0x28]
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
mov dword [rdi + 0x20], ebx
mov word [rdi + 0x24], bx
mov rax, qword [rcx]
mov dword [rcx + 8], ebx
mov word [rax], bx
cmp r11d, 2
jne 0x180019405
lea rdx, [rsp + 0x58]
call fcn.180018820
jmp 0x180019405
mov rdx, rbx
mov rcx, rdi
call fcn.180019170
test al, al
je 0x1800195dd
xor ebx, ebx
and dword [rdi + 0x20], 0xfffffbef
or rcx, 0xffffffffffffffff
mov qword [rdi], rbx
mov eax, 2
mov ebx, dword [rsp + 0x24]
mov qword [rbp - 0x80], rcx
inc ebx
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.180072d68
mov rdx, qword [rsp + 0x58]
lea r8, [rbx + rbx]
mov rsi, rax
mov qword [rbp - 0x78], rax
mov eax, dword [rsp + 0x24]
mov rcx, rsi
mov dword [rbp - 0x70], eax
mov dword [rbp - 0x6c], eax
call fcn.18008b7d0
mov ecx, 8
call fcn.180072d68
mov rcx, qword [rsp + 0x48]
mov rbx, rax
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x74], 3
mov word [rbx], ax
cmp rcx, 0xffffffffffffffff
je 0x1800194b4
mov rax, qword [0x1800f08d8]
test rax, rax
je 0x1800194fd
lea rdx, [rbp - 0x60]
call rax
test eax, eax
je 0x180019584
mov rax, qword [rbp - 0x60]
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x78], rax
call fcn.180018780
jmp 0x1800194da
lea r8, [rsp + 0x68]
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.180018f40
test al, al
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x48], rax
je 0x18001957f
mov rsi, qword [rbp - 0x78]
mov rbx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.180018220
test al, al
jne 0x18001950a
mov rcx, rbx
call fcn.18007294c
jmp 0x180019453
mov ecx, 0x78
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x180019584
mov esi, dword [rsp + 0x70]
cmp esi, 7
jbe 0x180019524
lea eax, [rsi - 6]
cmp eax, esi
jae 0x180019524
xor r8d, r8d
mov esi, eax
mov word [rbx + rax*2], r8w
mov eax, dword [rdi + 0x34]
lea r9, [rdi + 0x28]
mov ecx, dword [r9 + 8]
sub eax, ecx
cmp esi, eax
jbe 0x180019551
add ecx, esi
mov eax, ecx
shr eax, 1
lea edx, [rcx + 0x10]
mov rcx, r9
add edx, eax
and edx, 0xfffffff0
dec edx
call fcn.1800183b0
lea r9, [rdi + 0x28]
mov ecx, dword [r9 + 8]
lea r8d, [rsi + 1]
mov rax, qword [r9]
add r8, r8
mov rdx, rbx
lea rcx, [rax + rcx*2]
call fcn.18008b7d0
add dword [rdi + 0x30], esi
mov rax, qword [rsp + 0x78]
mov qword [rdi], rax
mov byte [rdi + 0x24], 1
mov dil, 1
jmp 0x18001959b
mov rbx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x180019598
lea ecx, [rax - 0x24]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor dil, dil
mov rcx, rbx
call fcn.18007294c
mov rcx, qword [rbp - 0x78]
call fcn.18007294c
mov rax, qword [rsp + 0x48]
cmp rax, 0xffffffffffffffff
je 0x1800195c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x58]
call fcn.18007294c
mov rcx, qword [rsp + 0x30]
call fcn.18007294c
movzx eax, dil
jmp 0x1800196f6
mov rcx, rbx
call fcn.18007294c
mov rcx, qword [rsp + 0x30]
call fcn.18007294c
or r8, 0xffffffffffffffff
xor ebx, ebx
mov qword [rsp + 0x48], r8
lea rcx, [rsp + 0x48]
mov r8, rdi
mov rdx, rsi
call fcn.180018dd0
test al, al
jne 0x1800196e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
cmp eax, 2
je 0x18001963b
cmp eax, 0x35
je 0x18001963b
cmp eax, 0x43
je 0x18001963b
cmp eax, 0x7b
je 0x18001963b
cmp eax, 0xa1
jne 0x1800198e3
movzx eax, word [rsi]
mov edx, ebx
cmp ax, 0x5c
je 0x18001964c
cmp ax, 0x2f
jne 0x180019678
movzx ecx, word [rsi + 2]
cmp cx, 0x5c
je 0x18001965c
cmp cx, 0x2f
jne 0x180019678
cmp word [rsi + 4], 0x3f
jne 0x180019678
movzx ecx, word [rsi + 6]
cmp cx, 0x2f
je 0x180019673
cmp cx, 0x5c
jne 0x180019678
mov edx, 4
cmp ax, 0x5c
je 0x180019688
cmp ax, 0x2f
jne 0x180019718
cmp word [rsi + 2], 0
jne 0x180019718
mov rcx, rsi
call fcn.1800190b0
mov ecx, eax
cmp eax, 0xffffffff
je 0x1800198e3
test cl, 0x10
je 0x1800198e3
mov dword [rdi + 0x20], ebx
mov qword [rdi], rbx
mov qword [rdi + 8], 0
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0
mov word [rdi + 0x24], 0
mov rax, qword [rdi + 0x28]
mov dword [rdi + 0x30], ebx
mov word [rax], bx
mov dword [rdi + 0x20], ecx
mov bl, 1
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x1800196f3
call qword [sym.imp.KERNEL32.dll_FindClose]
movzx eax, bl
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.180072920
mov rbx, qword [rsp + 0x340]
add rsp, 0x310
pop rdi
pop rsi
pop rbp
ret
mov eax, edx
movzx ecx, word [rsi + rax*2]
lea rbx, [rsi + rax*2]
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x180019735
sub cx, 0x41
cmp cx, 0x19
ja 0x1800197b1
cmp word [rbx + 2], 0x3a
jne 0x1800197b1
movzx eax, word [rbx + 4]
cmp ax, 0x2f
je 0x18001974c
cmp ax, 0x5c
jne 0x1800197b1
lea eax, [rdx + 3]
cmp word [rsi + rax*2], 0
jne 0x1800197b1
mov rcx, rsi
call fcn.1800190b0
cmp eax, 0xffffffff
je 0x1800198e3
test al, 0x10
je 0x1800198e3
xor esi, esi
mov dword [rdi + 0x20], eax
mov rdx, rbx
mov qword [rdi], rsi
lea rcx, [rdi + 0x28]
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
mov word [rdi + 0x24], si
call fcn.180018780
cmp dword [rdi + 0x30], 2
jbe 0x1800196e0
mov rax, qword [rdi + 0x28]
mov dword [rdi + 0x30], 2
mov word [rax + 4], si
jmp 0x1800196e0
mov rcx, rsi
call fcn.180021b80
test eax, eax
je 0x1800198e3
mov eax, eax
cmp word [rsi + rax*2], 0
lea rax, [rsi + rax*2]
mov qword [rsp + 0x50], rax
je 0x1800198e3
mov rcx, rax
call fcn.180021a10
test eax, eax
jns 0x1800198e3
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.180018680
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
cmp edx, ecx
jne 0x180019820
mov eax, ecx
lea edx, [rcx + 0x10]
shr eax, 1
lea rcx, [rsp + 0x30]
add edx, eax
and edx, 0xfffffff0
dec edx
call fcn.1800183b0
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r8d, 0x5c
mov eax, ecx
inc ecx
mov dword [rsp + 0x38], ecx
mov word [rbx + rax*2], r8w
xor r8d, r8d
mov word [rbx + rcx*2], r8w
cmp edx, ecx
jne 0x180019865
mov eax, ecx
lea edx, [rcx + 0x10]
shr eax, 1
lea rcx, [rsp + 0x30]
add edx, eax
and edx, 0xfffffff0
dec edx
call fcn.1800183b0
mov ecx, dword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov eax, ecx
mov edx, 0x2a
inc ecx
mov r8, rdi
mov word [rbx + rax*2], dx
xor eax, eax
mov word [rbx + rcx*2], ax
mov rdx, rbx
lea rcx, [rsp + 0x48]
mov byte [rsp + 0x20], al
call fcn.180018dd0
test al, al
je 0x1800198b6
mov rdx, qword [rdi + 0x28]
lea rcx, [rdi + 0x28]
movzx eax, word [rdx]
cmp ax, word [0x1800d5dc0]
jne 0x1800198b1
movzx eax, word [rdx + 2]
cmp ax, word [0x1800d5dc2]
je 0x180019911
mov byte [rsp + 0x20], 1
mov rcx, rsi
call fcn.1800190b0
cmp byte [rsp + 0x20], 0
mov ecx, eax
jne 0x1800198ea
cmp eax, 0xffffffff
je 0x1800198d1
test cl, 0x10
jne 0x1800198ea
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbx
call fcn.18007294c
xor bl, bl
jmp 0x1800196e2
xor eax, eax
mov qword [rdi], rax
cmp ecx, 0xffffffff
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov word [rdi + 0x24], ax
mov eax, reloc.WS2_32.dll_recv
cmovne eax, ecx
lea rcx, [rdi + 0x28]
mov dword [rdi + 0x20], eax
mov rdx, qword [rsp + 0x50]
call fcn.180018780
mov rcx, rbx
call fcn.18007294c
jmp 0x1800196e0