Function at 0x140045420
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 [0x14018a090]
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.140098070
nop
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.1400994e0
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140098070
nop
mov rdx, qword [rbx]
test rdx, rdx
je 0x1400454dd
add rdx, 0x10
lea rcx, [rbp - 0x48]
call fcn.140007be0
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], r12
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rdx, qword [rbp - 0x48]
lea rcx, [rsp + 0x28]
call fcn.140098070
lea esi, [r12 + 0x18]
lea rcx, [rbp - 0x48]
call fcn.140009080
jmp 0x1400454e7
mov qword [rsp + 0x28], r12
mov esi, 8
or esi, 4
mov dword [rsp + 0x20], esi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.14001b0b0
or esi, 2
mov dword [rsp + 0x20], esi
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140098070
nop
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x50]
call fcn.14001b490
nop
and esi, 0xfffffffd
mov dword [rsp + 0x20], esi
lea rcx, [rsp + 0x50]
call fcn.140009080
mov rbx, 0xffffffffffffffff
cmp qword [rbp - 0x18], 0
jne 0x140045621
lea rcx, [r14 + 0xa8]
cmp qword [rcx + 0x18], 8
jb 0x140045569
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, [0x14015c818]
test rax, rax
cmovne rdx, rax
mov qword [rbp - 0x48], r12
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r12w
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400455a0
lea rcx, [rbp - 0x48]
call fcn.140008ee0
or esi, 0x20
mov dword [rsp + 0x20], esi
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x48]
call fcn.140024880
nop
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140024880
nop
lea rcx, [rbp - 0x28]
cmp rcx, rax
je 0x140045602
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400455f5
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140008ee0
nop
lea rcx, [rsp + 0x70]
call fcn.140008e70
nop
lea rcx, [rsp + 0x30]
call fcn.140008e70
nop
lea rcx, [rbp - 0x48]
call fcn.140008e70
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
mov qword [rbp - 8], r12
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rbp + 8], xmm0
mov word [rbp - 8], r12w
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140045645
mov r8, rbx
lea rcx, [rbp - 8]
call fcn.140008ee0
nop
mov ebx, 4
mov rax, qword gs:[0x58]
add rbx, qword [rax]
mov eax, dword [rbx]
cmp dword [0x14018ef50], eax
jle 0x14004570f
lea rcx, [0x14018ef50]
call fcn.1400f9c6c
cmp dword [0x14018ef50], 0xffffffff
jne 0x14004570f
mov qword [0x14018ef58], r12
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [0x14018ef68], xmm0
mov word [0x14018ef58], r12w
mov qword [rbp - 0x48], r12
movdqa xmm0, xmmword [0x140167e50]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
mov r8d, 6
lea rdx, str.Upload
lea rcx, [rbp - 0x48]
call fcn.1400090e0
nop
lea rdx, [0x14018ef58]
lea rcx, [rbp - 0x48]
call fcn.14001b490
nop
lea rcx, [rbp - 0x48]
call fcn.140009080
nop
lea rcx, [0x14013b690]
call fcn.1400f9830
nop
lea rcx, [0x14018ef50]
call fcn.1400f9c0c
lea r13, [0x14018ef80]
mov eax, dword [rbx]
cmp dword [0x14018ef78], eax
jle 0x1400457b6
lea rcx, [0x14018ef78]
call fcn.1400f9c6c
cmp dword [0x14018ef78], 0xffffffff
jne 0x1400457b6
mov qword [0x14018ef80], r12
mov qword [0x14018ef90], r12
mov qword [0x14018ef98], 7
mov word [0x14018ef80], r12w
mov qword [rbp - 0x48], r12
movdqa xmm0, xmmword [0x140167e50]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
mov r8d, 5
lea rdx, [0x14015e888]
lea rcx, [rbp - 0x48]
call fcn.1400090e0
nop
mov rdx, r13
lea rcx, [rbp - 0x48]
call fcn.14001b490
nop
lea rcx, [rbp - 0x48]
call fcn.140009080
nop
lea rcx, [0x14013b680]
call fcn.1400f9830
nop
lea rcx, [0x14018ef78]
call fcn.1400f9c0c
mov qword [rdi], r12
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 + 0xc8]
test edx, edx
jne 0x140045864
lea r8, [0x14018ef58]
lea rdx, [rbp - 0x48]
mov rcx, r15
call fcn.140024500
nop
lea r8, [rbp - 8]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140024500
nop
mov r8, r13
cmp qword [0x14018ef98], 8
cmovae r8, qword [0x14018ef80]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140024880
nop
cmp rdi, rax
je 0x140045845
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140045839
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140008ee0
nop
lea rcx, [rsp + 0x70]
call fcn.140008e70
nop
lea rcx, [rsp + 0x50]
call fcn.140008e70
nop
lea rcx, [rbp - 0x48]
jmp 0x1400459f4
lea rcx, [rbp - 0x70]
call fcn.1400013a0
mov rbx, rax
mov qword [rbp - 0x48], r12
movdqa xmm0, xmmword [0x140167e50]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
or esi, 0x40
mov dword [rsp + 0x20], esi
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.14001b2c0
mov r8d, 1
lea rdx, [0x140158a9c]
lea rcx, [rbp - 0x48]
call fcn.140009240
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.14000c360
bts esi, 8
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x30], r12
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.14001b490
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
lea rcx, [rbp - 8]
call fcn.140008ee0
nop
lea rcx, [rsp + 0x30]
call fcn.140008e70
nop
lea rcx, [rsp + 0x70]
call fcn.140009080
nop
lea rcx, [rsp + 0x50]
call fcn.140009080
and esi, 0xffffffbf
mov dword [rsp + 0x20], esi
lea rcx, [rbp - 0x48]
call fcn.140009080
nop
lea rcx, [rbp - 0x70]
call fcn.140009080
lea r8, [0x14018ef58]
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.140024500
nop
lea r8, [rbp - 8]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140024500
nop
mov r8, r13
cmp qword [0x14018ef98], 8
cmovae r8, qword [0x14018ef80]
lea rdx, [rbp - 0x70]
mov rcx, rax
call fcn.140024880
nop
cmp rdi, rax
je 0x1400459da
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400459ce
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140008ee0
nop
lea rcx, [rbp - 0x70]
call fcn.140008e70
nop
lea rcx, [rsp + 0x70]
call fcn.140008e70
nop
lea rcx, [rsp + 0x50]
call fcn.140008e70
cmp qword [r14 + 0xb8], 0
je 0x140045a0a
inc dword [r14 + 0xc8]
cmp byte [rbp + 0x90], 0
je 0x140045be3
nop word [rax + rax]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140045a2d
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140045be3
mov edx, dword [0x14018e670]
inc edx
mov dword [0x14018e670], edx
lea rcx, [rbp - 0x70]
call fcn.1400013a0
mov rbx, rax
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x48], 0
bts esi, 9
mov dword [rsp + 0x20], esi
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.14001b2c0
mov r8d, 1
lea rdx, [0x140158a9c]
lea rcx, [rbp - 0x48]
call fcn.140009240
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.14000c360
bts esi, 0xb
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x30], r12
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.14001b490
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
lea rcx, [rbp - 8]
call fcn.140008ee0
nop
lea rcx, [rsp + 0x30]
call fcn.140008e70
nop
lea rcx, [rsp + 0x70]
call fcn.140009080
nop
lea rcx, [rsp + 0x50]
call fcn.140009080
btr esi, 9
mov dword [rsp + 0x20], esi
lea rcx, [rbp - 0x48]
call fcn.140009080
nop
lea rcx, [rbp - 0x70]
call fcn.140009080
lea r8, [0x14018ef58]
lea rdx, [rbp - 0x48]
mov rcx, r15
call fcn.140024500
nop
lea r8, [rbp - 8]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140024500
nop
mov r8, r13
cmp qword [0x14018ef98], 8
cmovae r8, qword [0x14018ef80]
lea rdx, [rbp - 0x70]
mov rcx, rax
call fcn.140024880
nop
cmp rdi, rax
je 0x140045bc0
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140045bb4
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140008ee0
nop
lea rcx, [rbp - 0x70]
call fcn.140008e70
nop
lea rcx, [rsp + 0x70]
call fcn.140008e70
nop
lea rcx, [rbp - 0x48]
call fcn.140008e70
jmp 0x140045a20
lea rcx, [rbp - 8]
call fcn.140008e70
nop
lea rcx, [rbp - 0x28]
call fcn.140008e70
mov rax, rdi
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.1400f9560
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret