Function at 0x18002e4a0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x2f0
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rbx, rcx
mov rcx, rdx
mov rbp, rdx
call fcn.180039cb0
xor esi, esi
or r8, 0xffffffffffffffff
mov dword [rsp + 0x38], eax
test eax, eax
js 0x18002e9f5
lea ecx, [rax + 1]
cmp word [rbp + rcx*2], si
je 0x18002e9f5
mov eax, eax
mov qword [rsp + 0x40], rax
cmp word [rbp + rax*2], si
lea rax, [rbp + rax*2]
je 0x18002e50e
add rax, 2
inc esi
cmp word [rax], 0
jne 0x18002e502
lea edi, [rsi + 1]
mov eax, 2
mul rdi
cmovo rax, r8
mov rcx, rax
call fcn.180077f70
lea rcx, [rdi + rdi]
mov qword [rsp + 0x50], rcx
mov r8, rcx
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp + rcx*2]
mov rcx, rax
mov qword [rsp + 0x20], rax
call fcn.1800785c0
xor r11d, r11d
mov eax, r11d
mov dword [rsp + 0x30], eax
cmp word [rbp], ax
je 0x18002e570
mov rcx, rbp
nop dword [rax + rax]
add rcx, 2
inc eax
cmp word [rcx], r11w
jne 0x18002e560
mov dword [rsp + 0x30], eax
lea edi, [rax + 1]
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rdi
cmovo rax, rcx
mov rcx, rax
call fcn.180077f70
lea r8, [rdi + rdi]
mov rdx, rbp
mov rcx, rax
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
call fcn.1800785c0
mov edi, dword [rsp + 0x38]
cmp edi, dword [rsp + 0x30]
jae 0x18002e5cd
mov rdx, qword [rsp + 0x40]
mov eax, edi
xor ecx, ecx
mov word [rdx + rdi*2], cx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x48], eax
mov r11, qword [rsp + 0x20]
cmp esi, 6
jbe 0x18002e5f2
mov eax, esi
lea rdx, [0x1800f2d50]
lea rcx, [r11 + rax*2 - 0xc]
call fcn.18002d430
test al, al
jne 0x18002e69c
xor eax, eax
mov ecx, eax
lea rax, str.:_DATA
nop dword [rax]
add rax, 2
inc ecx
cmp word [rax], 0
jne 0x18002e600
mov dword [rsp + 0x28], ecx
test ecx, ecx
je 0x18002e683
add ecx, esi
mov eax, ecx
shr eax, 1
lea eax, [rax + rcx + 0x10]
and eax, 0xfffffff0
dec eax
cmp eax, esi
jb 0x18002e722
cmp eax, 0x40000000
jae 0x18002e722
lea ecx, [rax + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180077f70
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x20]
mov rcx, rax
mov rdi, rax
call fcn.1800785c0
mov rcx, qword [rsp + 0x20]
call fcn.18007702c
mov ecx, dword [rsp + 0x28]
mov r11, rdi
mov qword [rsp + 0x20], rdi
mov edi, dword [rsp + 0x38]
lea r8d, [rcx + 1]
mov eax, esi
lea rdx, str.:_DATA
lea rcx, [r11 + rax*2]
add r8, r8
call fcn.1800785c0
mov rsi, qword [rsp + 0x40]
movzx eax, word [rsi]
cmp ax, 0x61
jb 0x18002e6b0
cmp ax, 0x7a
jbe 0x18002e6c0
cmp ax, 0x41
jb 0x18002e73c
cmp ax, 0x5a
ja 0x18002e73c
cmp word [rsi + 2], 0x3a
jne 0x18002e73c
cmp edi, 2
je 0x18002e6d8
cmp edi, 3
jne 0x18002e73c
cmp word [rsi + 4], 0x5c
jne 0x18002e73c
xor esi, esi
lea rcx, [rbx + 0x28]
mov qword [rbx], rsi
mov dword [rbx + 0xc], esi
mov dword [rbx + 8], esi
mov dword [rbx + 0x14], esi
mov dword [rbx + 0x10], esi
mov dword [rbx + 0x1c], esi
mov dword [rbx + 0x18], esi
mov dword [rbx + 0x20], esi
mov byte [rbx + 0x24], sil
mov byte [rbx + 0x25], sil
mov rax, qword [rcx]
mov dword [rcx + 8], esi
mov word [rax], si
cmp edi, 2
jne 0x18002e751
lea rax, [rsp + 0x40]
cmp rax, rcx
je 0x18002e751
lea rdx, [rsp + 0x40]
call fcn.18002da00
jmp 0x18002e751
lea rdx, [0x18010cca8]
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x28], 0x13329ad
call fcn.1800797b8
int3
mov rdx, rsi
mov rcx, rbx
call fcn.18002e4a0
test al, al
je 0x18002e9dd
xor esi, esi
and dword [rbx + 0x20], 0xfffffbef
mov ebp, dword [rsp + 0x30]
or rcx, 0xffffffffffffffff
mov qword [rbx], rsi
mov qword [rsp + 0x50], rcx
mov rsi, rcx
lea edi, [rbp + 1]
mov eax, 2
mul rdi
cmovo rax, rcx
mov rcx, rax
call fcn.180077f70
mov rdx, qword [rsp + 0x40]
lea r8, [rdi + rdi]
mov rcx, rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x64], ebp
mov rdi, rax
call fcn.1800785c0
mov ecx, 8
call fcn.180077f70
mov dword [rsp + 0x74], 3
mov rbp, rax
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x70], eax
mov word [rbp], ax
cmp rsi, 0xffffffffffffffff
je 0x18002e876
mov rax, qword [0x1801180b8]
test rax, rax
je 0x18002e8cb
lea rdx, [rsp + 0x80]
mov rcx, rsi
call rax
test eax, eax
je 0x18002e988
mov rdi, qword [rsp + 0x80]
xor eax, eax
mov qword [rsp + 0x28], rdi
mov esi, eax
cmp word [rsp + 0x88], ax
je 0x18002e85d
lea rax, [rsp + 0x88]
nop dword [rax]
add rax, 2
inc esi
cmp word [rax], 0
jne 0x18002e820
cmp esi, 3
jbe 0x18002e85d
lea ecx, [rsi + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180077f70
mov rcx, rbp
mov rdi, rax
call fcn.18007702c
mov rbp, rdi
lea r8d, [rsi + 1]
lea rdx, [rsp + 0x88]
mov rcx, rbp
add r8, r8
call fcn.1800785c0
jmp 0x18002e8a3
lea r8, [rsp + 0x68]
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.18002e270
mov rbp, qword [rsp + 0x68]
test al, al
je 0x18002e97e
mov rax, qword [rsp + 0x78]
mov esi, dword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x20]
mov rcx, rbp
call fcn.18002d370
test al, al
jne 0x18002e8db
mov rcx, rbp
call fcn.18007702c
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
jmp 0x18002e7a3
mov ecx, 0x78
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x18002e988
cmp esi, 7
jbe 0x18002e8f0
lea eax, [rsi - 6]
cmp eax, esi
jae 0x18002e8f0
xor ecx, ecx
mov esi, eax
mov word [rbp + rax*2], cx
mov ecx, dword [rbx + 0x30]
mov eax, dword [rbx + 0x34]
sub eax, ecx
cmp esi, eax
jbe 0x18002e914
add ecx, esi
mov eax, ecx
shr eax, 1
lea edx, [rax + rcx + 0x10]
lea rcx, [rbx + 0x28]
and edx, 0xfffffff0
dec edx
call fcn.18002d560
mov edx, dword [rbx + 0x30]
mov rax, qword [rbx + 0x28]
lea r8d, [rsi + 1]
lea rcx, [rax + rdx*2]
add r8, r8
mov rdx, rbp
call fcn.1800785c0
add dword [rbx + 0x30], esi
mov rax, qword [rsp + 0x28]
mov rcx, rbp
mov qword [rbx], rax
mov byte [rbx + 0x24], 1
call fcn.18007702c
mov rax, qword [rsp + 0x58]
mov rcx, rax
call fcn.18007702c
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x18002e963
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x40]
call fcn.18007702c
mov rcx, qword [rsp + 0x20]
call fcn.18007702c
mov al, 1
jmp 0x18002edff
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
sete al
test al, al
jne 0x18002e9d0
mov rcx, rbp
call fcn.18007702c
mov rcx, rdi
call fcn.18007702c
cmp rsi, 0xffffffffffffffff
je 0x18002e9b7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x40]
call fcn.18007702c
mov rcx, qword [rsp + 0x20]
call fcn.18007702c
jmp 0x18002edfd
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x18002e998
mov rcx, rsi
call fcn.18007702c
mov rcx, qword [rsp + 0x20]
call fcn.18007702c
xor esi, esi
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], r8
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov r8, rbx
call fcn.18002e100
test al, al
jne 0x18002ead4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
cmp eax, 2
je 0x18002ea3b
cmp eax, 0x35
je 0x18002ea3b
cmp eax, 0x43
je 0x18002ea3b
cmp eax, 0x7b
je 0x18002ea3b
cmp eax, 0xa1
jne 0x18002edec
movzx eax, word [rbp]
mov edx, esi
cmp ax, 0x5c
je 0x18002ea4d
cmp ax, 0x2f
jne 0x18002ea79
movzx ecx, word [rbp + 2]
cmp cx, 0x5c
je 0x18002ea5d
cmp cx, 0x2f
jne 0x18002ea79
cmp word [rbp + 4], 0x3f
jne 0x18002ea79
movzx ecx, word [rbp + 6]
cmp cx, 0x5c
je 0x18002ea74
cmp cx, 0x2f
jne 0x18002ea79
mov edx, 4
cmp ax, 0x5c
je 0x18002ea85
cmp ax, 0x2f
jne 0x18002eaec
cmp word [rbp + 2], 0
jne 0x18002eaec
mov rcx, rbp
call fcn.18002e3e0
mov edx, eax
cmp eax, 0xffffffff
je 0x18002edec
test al, 0x10
je 0x18002edec
mov dword [rbx + 0x20], esi
mov qword [rbx], rsi
mov dword [rbx + 0xc], esi
mov dword [rbx + 8], esi
mov dword [rbx + 0x14], esi
mov dword [rbx + 0x10], esi
mov dword [rbx + 0x1c], esi
mov dword [rbx + 0x18], esi
mov byte [rbx + 0x24], 0
mov byte [rbx + 0x25], 0
mov rax, qword [rbx + 0x28]
mov dword [rbx + 0x30], esi
mov word [rax], si
mov dword [rbx + 0x20], edx
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x18002eae5
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
jmp 0x18002edff
mov eax, edx
lea rdi, [rbp + rax*2]
movzx eax, word [rbp + rax*2]
cmp ax, 0x61
jb 0x18002eb04
cmp ax, 0x7a
jbe 0x18002eb18
cmp ax, 0x41
jb 0x18002ebb8
cmp ax, 0x5a
ja 0x18002ebb8
cmp word [rdi + 2], 0x3a
jne 0x18002ebb8
movzx eax, word [rdi + 4]
cmp ax, 0x5c
je 0x18002eb37
cmp ax, 0x2f
jne 0x18002ebb8
lea eax, [rdx + 3]
cmp word [rbp + rax*2], 0
jne 0x18002ebb8
mov rcx, rbp
call fcn.18002e3e0
cmp eax, 0xffffffff
je 0x18002edec
test al, 0x10
je 0x18002edec
lea rcx, [rbx + 0x28]
mov rdx, rdi
mov qword [rbx], rsi
mov dword [rbx + 0xc], esi
mov dword [rbx + 8], esi
mov dword [rbx + 0x14], esi
mov dword [rbx + 0x10], esi
mov dword [rbx + 0x1c], esi
mov dword [rbx + 0x18], esi
mov byte [rbx + 0x24], 0
mov byte [rbx + 0x25], 0
mov dword [rbx + 0x20], eax
call fcn.18002d960
cmp dword [rbx + 0x30], 2
jbe 0x18002eb9c
mov rax, qword [rbx + 0x28]
mov dword [rbx + 0x30], 2
mov word [rax + 4], si
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x18002eae5
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
jmp 0x18002edff
mov rcx, rbp
call fcn.180039b20
test eax, eax
je 0x18002edec
mov eax, eax
lea rax, [rbp + rax*2]
mov qword [rsp + 0x40], rax
cmp word [rax], 0
je 0x18002edec
mov rcx, rax
call fcn.1800399b0
test eax, eax
jns 0x18002edec
lea rcx, [rsp + 0x50]
mov rdx, rbp
call fcn.18002d860
mov esi, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
cmp esi, ecx
jne 0x18002ec8f
mov eax, ecx
shr eax, 1
lea esi, [rax + rcx + 0x10]
and esi, 0xfffffff0
dec esi
cmp esi, ecx
jb 0x18002ec75
cmp esi, 0x40000000
jae 0x18002ec75
lea ecx, [rsi + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180077f70
mov r8d, dword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
inc r8d
mov rcx, rax
mov rdx, rdi
add r8, r8
mov qword [rsp + 0x30], rax
call fcn.1800785c0
mov rcx, rdi
call fcn.18007702c
mov rdi, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x58]
jmp 0x18002ec99
lea rdx, [0x18010cca8]
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x28], 0x13329ad
call fcn.1800797b8
int3
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x30], rdi
mov eax, ecx
inc ecx
xor r11d, r11d
mov edx, 0x5c
mov dword [rsp + 0x38], ecx
mov word [rdi + rax*2], dx
mov eax, ecx
mov word [rdi + rcx*2], r11w
mov qword [rsp + 0x50], rax
cmp esi, ecx
jne 0x18002ed2f
mov eax, ecx
shr eax, 1
lea eax, [rax + rcx + 0x10]
and eax, 0xfffffff0
dec eax
cmp eax, ecx
jb 0x18002eda0
cmp eax, 0x40000000
jae 0x18002eda0
lea edx, [rax + 1]
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rdx
cmovo rax, rcx
mov rcx, rax
call fcn.180077f70
mov r8d, dword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
inc r8d
mov rdx, rsi
mov rcx, rax
add r8, r8
mov rdi, rax
call fcn.1800785c0
mov rcx, rsi
call fcn.18007702c
mov ecx, dword [rsp + 0x38]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rdi
inc ecx
mov edx, 0x2a
mov r8, rbx
mov word [rdi + rax*2], dx
xor eax, eax
mov rdx, rdi
mov word [rdi + rcx*2], ax
lea rcx, [rsp + 0x20]
xor sil, sil
call fcn.18002e100
test al, al
je 0x18002edc2
mov rsi, qword [rbx + 0x28]
lea rax, [rbx + 0x28]
lea rdi, [0x1800f2d68]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
jne 0x18002edba
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call fcn.18002d960
mov rcx, qword [rsp + 0x30]
call fcn.18007702c
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x18002eae5
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
jmp 0x18002edff
lea rdx, [0x18010cca8]
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x28], 0x13329ad
call fcn.1800797b8
int3
mov rdi, qword [rsp + 0x30]
mov sil, 1
mov rcx, rbp
call fcn.18002e3e0
mov edx, eax
test sil, sil
jne 0x18002ee22
cmp eax, 0xffffffff
je 0x18002edda
test al, 0x10
jne 0x18002ee22
mov ecx, dword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call fcn.18007702c
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x18002edfd
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.180076a70
mov rbx, qword [rsp + 0x320]
add rsp, 0x2f0
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
cmp edx, 0xffffffff
lea rcx, [rbx + 0x28]
mov qword [rbx], rax
mov dword [rbx + 0xc], eax
mov dword [rbx + 8], eax
mov dword [rbx + 0x14], eax
mov dword [rbx + 0x10], eax
mov dword [rbx + 0x1c], eax
mov dword [rbx + 0x18], eax
mov byte [rbx + 0x24], al
mov byte [rbx + 0x25], al
mov eax, reloc.WS2_32.dll_recv
cmovne eax, edx
mov rdx, qword [rsp + 0x40]
mov dword [rbx + 0x20], eax
call fcn.18002d960
mov rcx, rdi
jmp 0x18002ed82