Function at 0x140042700
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x28]
sub rsp, 0x128
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov r15, r9
mov rbx, r8
mov rdi, rdx
mov r14, rcx
mov qword [rbp - 0x50], rdx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
mov qword [rsp + 0x28], r12
lea rdx, str._file
lea rcx, [rsp + 0x28]
call fcn.140087010
nop
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140088500
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140087010
nop
mov rdx, qword [rbx]
test rdx, rdx
je 0x1400427c2
add rdx, 0x10
lea rcx, [rsp + 0x30]
call fcn.1400075e0
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], r12
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.140087010
lea esi, [r12 + 0x18]
lea rcx, [rsp + 0x30]
call fcn.140008a50
jmp 0x1400427cc
mov qword [rsp + 0x28], r12
mov esi, 8
or esi, 4
mov dword [rsp + 0x20], esi
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.14001a3a0
mov rbx, rax
or esi, 2
mov dword [rsp + 0x20], esi
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140087010
nop
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
lea rdx, [rbp - 0x28]
mov rcx, rbx
call fcn.14001a690
nop
and esi, 0xfffffffd
mov dword [rsp + 0x20], esi
lea rcx, [rsp + 0x70]
call fcn.140008a50
mov rbx, 0xffffffffffffffff
cmp qword [rbp - 0x18], 0
jne 0x1400428f4
lea rcx, [r14 + 0xa0]
cmp qword [rcx + 0x18], 8
jb 0x14004284b
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, [0x14014ce5c]
test rax, rax
cmovne rdx, rax
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov r8, rbx
inc r8
cmp word [rdx + r8*2], 0
jne 0x140042873
lea rcx, [rbp - 0x48]
call fcn.1400088b0
or esi, 0x20
mov dword [rsp + 0x20], esi
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x48]
call fcn.140025500
nop
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140025500
nop
lea rcx, [rbp - 0x28]
cmp rcx, rax
je 0x1400428d5
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400428c8
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.1400088b0
nop
lea rcx, [rsp + 0x50]
call fcn.140008840
nop
lea rcx, [rsp + 0x30]
call fcn.140008840
nop
lea rcx, [rbp - 0x48]
call fcn.140008840
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r12w
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140042913
mov r8, rbx
lea rcx, [rbp - 8]
call fcn.1400088b0
nop
mov ebx, 4
mov rax, qword gs:[0x58]
add rbx, qword [rax]
mov eax, dword [rbx]
cmp dword [0x14017bf08], eax
jle 0x1400429d3
lea rcx, [0x14017bf08]
call fcn.1400ea470
cmp dword [0x14017bf08], 0xffffffff
jne 0x1400429d3
mov qword [0x14017bf20], r12
mov qword [0x14017bf28], 7
mov word [0x14017bf10], r12w
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x48], 0
mov r8d, 6
lea rdx, str.Upload
lea rcx, [rbp - 0x48]
call fcn.140008ab0
nop
lea rdx, [0x14017bf10]
lea rcx, [rbp - 0x48]
call fcn.14001a690
nop
lea rcx, [rbp - 0x48]
call fcn.140008a50
nop
lea rcx, [0x14012a590]
call fcn.1400ea034
nop
lea rcx, [0x14017bf08]
call fcn.1400ea410
lea r13, [0x14017bf38]
mov eax, dword [rbx]
cmp dword [0x14017bf30], eax
jle 0x140042a6e
lea rcx, [0x14017bf30]
call fcn.1400ea470
cmp dword [0x14017bf30], 0xffffffff
jne 0x140042a6e
mov qword [0x14017bf48], r12
mov qword [0x14017bf50], 7
mov word [0x14017bf38], r12w
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x48], 0
mov r8d, 5
lea rdx, [0x14014e0e8]
lea rcx, [rbp - 0x48]
call fcn.140008ab0
nop
mov rdx, r13
lea rcx, [rbp - 0x48]
call fcn.14001a690
nop
lea rcx, [rbp - 0x48]
call fcn.140008a50
nop
lea rcx, [0x14012a580]
call fcn.1400ea034
nop
lea rcx, [0x14017bf30]
call fcn.1400ea410
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
or esi, 1
mov dword [rsp + 0x20], esi
mov edx, dword [r14 + 0xc0]
test edx, edx
jne 0x140042b1b
lea r8, [0x14017bf10]
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.140025150
nop
lea r8, [rbp - 8]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140025150
nop
mov r8, r13
cmp qword [0x14017bf50], 8
cmovae r8, qword [0x14017bf38]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140025500
nop
cmp rdi, rax
je 0x140042afb
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140042aef
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.1400088b0
nop
lea rcx, [rsp + 0x70]
call fcn.140008840
nop
lea rcx, [rsp + 0x50]
call fcn.140008840
nop
lea rcx, [rsp + 0x30]
jmp 0x140042c9e
lea rcx, [rbp - 0x70]
call fcn.14004cb10
mov rbx, rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
or esi, 0x40
mov dword [rsp + 0x20], esi
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x28]
call fcn.14001a4c0
mov r8d, 1
lea rdx, [0x14014925c]
lea rcx, [rsp + 0x30]
call fcn.140008c10
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
bts esi, 7
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14000bdf0
bts esi, 8
mov dword [rsp + 0x20], esi
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x70]
call fcn.14001a690
nop
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
lea rcx, [rbp - 8]
call fcn.1400088b0
nop
lea rcx, [rbp - 0x48]
call fcn.140008840
nop
lea rcx, [rsp + 0x70]
call fcn.140008a50
nop
lea rcx, [rsp + 0x50]
call fcn.140008a50
and esi, 0xffffffbf
mov dword [rsp + 0x20], esi
lea rcx, [rsp + 0x30]
call fcn.140008a50
nop
lea rcx, [rbp - 0x70]
call fcn.140008a50
lea r8, [0x14017bf10]
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.140025150
nop
lea r8, [rbp - 8]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140025150
nop
mov r8, r13
cmp qword [0x14017bf50], 8
cmovae r8, qword [0x14017bf38]
lea rdx, [rbp - 0x70]
mov rcx, rax
call fcn.140025500
nop
cmp rdi, rax
je 0x140042c84
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140042c78
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.1400088b0
nop
lea rcx, [rbp - 0x70]
call fcn.140008840
nop
lea rcx, [rsp + 0x70]
call fcn.140008840
nop
lea rcx, [rsp + 0x50]
call fcn.140008840
cmp qword [r14 + 0xb0], 0
je 0x140042cb4
inc dword [r14 + 0xc0]
cmp byte [rbp + 0x90], 0
je 0x140042e7a
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140042cce
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140042e7a
mov edx, dword [0x14017b648]
inc edx
mov dword [0x14017b648], edx
lea rcx, [rbp - 0x70]
call fcn.14004cb10
mov rbx, rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
bts esi, 9
mov dword [rsp + 0x20], esi
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x28]
call fcn.14001a4c0
mov r8d, 1
lea rdx, [0x14014925c]
lea rcx, [rsp + 0x30]
call fcn.140008c10
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
bts esi, 0xa
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14000bdf0
bts esi, 0xb
mov dword [rsp + 0x20], esi
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x70]
call fcn.14001a690
nop
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
lea rcx, [rbp - 8]
call fcn.1400088b0
nop
lea rcx, [rbp - 0x48]
call fcn.140008840
nop
lea rcx, [rsp + 0x70]
call fcn.140008a50
nop
lea rcx, [rsp + 0x50]
call fcn.140008a50
btr esi, 9
mov dword [rsp + 0x20], esi
lea rcx, [rsp + 0x30]
call fcn.140008a50
nop
lea rcx, [rbp - 0x70]
call fcn.140008a50
lea r8, [0x14017bf10]
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.140025150
nop
lea r8, [rbp - 8]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140025150
nop
mov r8, r13
cmp qword [0x14017bf50], 8
cmovae r8, qword [0x14017bf38]
lea rdx, [rbp - 0x70]
mov rcx, rax
call fcn.140025500
nop
cmp rdi, rax
je 0x140042e56
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140042e4a
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.1400088b0
nop
lea rcx, [rbp - 0x70]
call fcn.140008840
nop
lea rcx, [rsp + 0x70]
call fcn.140008840
nop
lea rcx, [rsp + 0x30]
call fcn.140008840
jmp 0x140042cc1
lea rcx, [rbp - 8]
call fcn.140008840
nop
lea rcx, [rbp - 0x28]
call fcn.140008840
mov rax, rdi
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.1400e9d60
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret