Function at 0x14004ae20
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 - 0x38]
sub rsp, 0x138
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov qword [rbp - 0x50], r9
mov r13, r8
mov rdi, rdx
mov r15, rcx
mov qword [rbp - 0x48], rdx
xor esi, esi
mov dword [rsp + 0x20], esi
lea ecx, [rsi + 0x40]
call fcn.1401219f8
mov rbx, rax
mov qword [rsp + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], sil
lea r14, [rax + 0x20]
movups xmmword [r14], xmm0
lea r12, [r14 + 0x10]
mov qword [r12], rsi
mov qword [r14 + 0x18], 7
mov word [r14], si
mov rsi, 0xffffffffffffffff
mov r8, rsi
lea rax, str._file
inc r8
cmp byte [rax + r8], 0
jne 0x14004aeb0
mov rdx, rax
mov rcx, rbx
call fcn.14000a7d0
cmp qword [r14 + 0x18], 7
jbe 0x14004aecf
mov r14, qword [r14]
mov qword [r12], 0
xor r12d, r12d
mov word [r14], r12w
mov qword [rsp + 0x28], rbx
lea rdx, [rsp + 0x28]
mov rcx, r13
call fcn.1400b1e90
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.1400b0970
nop
mov rdx, qword [rbx]
test rdx, rdx
je 0x14004af3e
add rdx, 0x10
lea rcx, [rsp + 0x50]
call fcn.140008470
mov dword [rsp + 0x20], 0x100
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.14001b2a0
mov ebx, 0x180
lea rcx, [rsp + 0x50]
call fcn.140009880
jmp 0x14004af48
mov qword [rsp + 0x28], r12
mov ebx, 0x80
or ebx, 0x40
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.14001b210
or ebx, 0x20
mov dword [rsp + 0x20], ebx
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.1400b0970
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], 7
mov word [rbp - 0x20], r12w
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x30]
call fcn.14001b670
nop
and ebx, 0xffffffdf
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0x30]
call fcn.140009880
cmp qword [rbp - 0x10], 0
jne 0x14004b070
lea rcx, [r15 + 0xa8]
cmp qword [rcx + 0x18], 7
jbe 0x14004afc6
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, [0x140190230]
test rax, rax
cmovne rdx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r12
mov r8, rsi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14004aff0
lea rcx, [rbp - 0x40]
call fcn.14000c0c0
bts ebx, 9
mov dword [rsp + 0x20], ebx
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x40]
call fcn.140025030
nop
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, rax
call fcn.140025030
nop
lea rcx, [rbp - 0x20]
cmp rcx, rax
je 0x14004b052
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 7
jbe 0x14004b045
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.14000a690
nop
lea rcx, [rbp - 0x70]
call fcn.140009810
nop
lea rcx, [rsp + 0x70]
call fcn.140009810
nop
lea rcx, [rbp - 0x40]
call fcn.140009810
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rdx, qword [rbp - 0x20]
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], r12
mov r8, rsi
inc r8
cmp word [rdx + r8*2], 0
jne 0x14004b090
lea rcx, [rbp]
call fcn.14000c0c0
nop
mov r14d, 4
mov rax, qword gs:[0x58]
add r14, qword [rax]
mov eax, dword [r14]
cmp dword [0x1401cb6d0], eax
jle 0x14004b168
lea rcx, [0x1401cb6d0]
call fcn.1401221ac
cmp dword [0x1401cb6d0], 0xffffffff
jne 0x14004b168
lea rdx, str.Upload
xorps xmm0, xmm0
movups xmmword [0x1401cb6d8], xmm0
mov qword [0x1401cb6e8], r12
mov qword [0x1401cb6f0], 7
mov word [0x1401cb6d8], r12w
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r12
mov r8, rsi
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x14004b120
lea rcx, [rbp - 0x40]
call fcn.14000c1a0
nop
lea rdx, [0x1401cb6d8]
lea rcx, [rbp - 0x40]
call fcn.14001b670
nop
lea rcx, [rbp - 0x40]
call fcn.140009880
nop
lea rcx, [0x14016f700]
call fcn.140121c94
nop
lea rcx, [0x1401cb6d0]
call fcn.140122140
lea r13, [0x1401cb700]
mov eax, dword [r14]
cmp dword [0x1401cb6f8], eax
jle 0x14004b216
lea rcx, [0x1401cb6f8]
call fcn.1401221ac
cmp dword [0x1401cb6f8], 0xffffffff
jne 0x14004b216
lea rdx, [0x1401921a8]
xorps xmm0, xmm0
movups xmmword [0x1401cb700], xmm0
mov qword [0x1401cb710], r12
mov qword [0x1401cb718], 7
mov word [0x1401cb700], r12w
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r12
nop
inc rsi
cmp byte [rdx + rsi], 0
jne 0x14004b1d0
mov r8, rsi
lea rcx, [rbp - 0x40]
call fcn.14000c1a0
nop
mov rdx, r13
lea rcx, [rbp - 0x40]
call fcn.14001b670
nop
lea rcx, [rbp - 0x40]
call fcn.140009880
nop
lea rcx, [0x14016f6f0]
call fcn.140121c94
nop
lea rcx, [0x1401cb6f8]
call fcn.140122140
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
or ebx, 1
mov dword [rsp + 0x20], ebx
mov edx, dword [r15 + 0xc8]
test edx, edx
jne 0x14004b2c6
lea r8, [0x1401cb6d8]
lea rdx, [rsp + 0x50]
mov rsi, qword [rbp - 0x50]
mov rcx, rsi
call fcn.140024af0
nop
lea r8, [rbp]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140024af0
nop
mov r8, r13
cmp qword [0x1401cb718], 7
cmova r8, qword [0x1401cb700]
lea rdx, [rbp - 0x70]
mov rcx, rax
call fcn.140025030
nop
cmp rdi, rax
je 0x14004b2ac
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 7
jbe 0x14004b2a0
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.14000a690
nop
lea rcx, [rbp - 0x70]
call fcn.140009810
nop
lea rcx, [rsp + 0x70]
call fcn.140009810
nop
jmp 0x14004b45e
lea rcx, [rbp - 0x70]
call fcn.14000abe0
bts ebx, 0xa
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x40], 0
bts ebx, 0xb
mov dword [rsp + 0x20], ebx
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x20]
call fcn.14001b440
mov r8d, 1
lea rdx, [0x14018f60c]
lea rcx, [rbp - 0x40]
call fcn.140009a20
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 ebx, 0xc
mov dword [rsp + 0x20], ebx
lea r9, [rbp - 0x70]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14000d130
bts ebx, 0xd
mov dword [rsp + 0x20], ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r12w
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.14001b670
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
lea rcx, [rbp]
call fcn.14000a690
nop
lea rcx, [rsp + 0x30]
call fcn.140009810
nop
lea rcx, [rsp + 0x70]
call fcn.140009880
nop
lea rcx, [rsp + 0x50]
call fcn.140009880
btr ebx, 0xb
mov dword [rsp + 0x20], ebx
lea rcx, [rbp - 0x40]
call fcn.140009880
nop
lea rcx, [rbp - 0x70]
call fcn.140009880
lea r8, [0x1401cb6d8]
lea rdx, [rsp + 0x50]
mov rsi, qword [rbp - 0x50]
mov rcx, rsi
call fcn.140024af0
nop
lea r8, [rbp]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140024af0
nop
mov r8, r13
cmp qword [0x1401cb718], 7
cmova r8, qword [0x1401cb700]
lea rdx, [rbp - 0x70]
mov rcx, rax
call fcn.140025030
nop
cmp rdi, rax
je 0x14004b449
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 7
jbe 0x14004b43d
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.14000a690
nop
lea rcx, [rbp - 0x70]
call fcn.140009810
nop
lea rcx, [rsp + 0x70]
call fcn.140009810
nop
lea rcx, [rsp + 0x50]
call fcn.140009810
cmp qword [r15 + 0xb8], 0
je 0x14004b479
inc dword [r15 + 0xc8]
cmp byte [rbp + 0xa0], 0
je 0x14004b64e
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14004b493
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14004b64e
mov edx, dword [0x1401cacc8]
inc edx
mov dword [0x1401cacc8], edx
lea rcx, [rsp + 0x70]
call fcn.14000abe0
or ebx, 2
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x40], 0
or ebx, 4
mov dword [rsp + 0x20], ebx
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x20]
call fcn.14001b440
mov r8d, 1
lea rdx, [0x14018f60c]
lea rcx, [rbp - 0x40]
call fcn.140009a20
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
or ebx, 8
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.14000d130
or ebx, 0x10
mov dword [rsp + 0x20], ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r12w
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.14001b670
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
lea rcx, [rbp]
call fcn.14000a690
nop
lea rcx, [rsp + 0x30]
call fcn.140009810
nop
lea rcx, [rbp - 0x70]
call fcn.140009880
nop
lea rcx, [rsp + 0x50]
call fcn.140009880
and ebx, 0xfffffffb
mov dword [rsp + 0x20], ebx
lea rcx, [rbp - 0x40]
call fcn.140009880
nop
lea rcx, [rsp + 0x70]
call fcn.140009880
lea r8, [0x1401cb6d8]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140024af0
nop
lea r8, [rbp]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140024af0
nop
mov r8, r13
cmp qword [0x1401cb718], 7
cmova r8, qword [0x1401cb700]
lea rdx, [rbp - 0x70]
mov rcx, rax
call fcn.140025030
nop
cmp rdi, rax
je 0x14004b62a
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 7
jbe 0x14004b61e
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.14000a690
nop
lea rcx, [rbp - 0x70]
call fcn.140009810
nop
lea rcx, [rsp + 0x70]
call fcn.140009810
nop
lea rcx, [rsp + 0x50]
call fcn.140009810
jmp 0x14004b486
lea rcx, [rbp]
call fcn.140009810
nop
lea rcx, [rbp - 0x20]
call fcn.140009810
mov rax, rdi
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1401219d0
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret