Function at 0x140045b20
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 [0x140189090]
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.140097430
nop
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.1400988a0
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140097430
nop
mov rdx, qword [rbx]
test rdx, rdx
je 0x140045bdd
add rdx, 0x10
lea rcx, [rbp - 0x48]
call fcn.140007d50
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.140097430
lea esi, [r12 + 0x18]
lea rcx, [rbp - 0x48]
call fcn.1400091f0
jmp 0x140045be7
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.14001b1e0
or esi, 2
mov dword [rsp + 0x20], esi
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140097430
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.14001b5c0
nop
and esi, 0xfffffffd
mov dword [rsp + 0x20], esi
lea rcx, [rsp + 0x50]
call fcn.1400091f0
mov rbx, 0xffffffffffffffff
cmp qword [rbp - 0x18], 0
jne 0x140045d21
lea rcx, [r14 + 0xa8]
cmp qword [rcx + 0x18], 8
jb 0x140045c69
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, [0x14015b7e0]
test rax, rax
cmovne rdx, rax
mov qword [rbp - 0x48], r12
movdqa xmm0, xmmword [0x140166ab0]
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 0x140045ca0
lea rcx, [rbp - 0x48]
call fcn.140009050
or esi, 0x20
mov dword [rsp + 0x20], esi
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x48]
call fcn.140024fb0
nop
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140024fb0
nop
lea rcx, [rbp - 0x28]
cmp rcx, rax
je 0x140045d02
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140045cf5
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140009050
nop
lea rcx, [rsp + 0x70]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x30]
call fcn.140008fe0
nop
lea rcx, [rbp - 0x48]
call fcn.140008fe0
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
mov qword [rbp - 8], r12
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rbp + 8], xmm0
mov word [rbp - 8], r12w
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140045d45
mov r8, rbx
lea rcx, [rbp - 8]
call fcn.140009050
nop
mov ebx, 4
mov rax, qword gs:[0x58]
add rbx, qword [rax]
mov eax, dword [rbx]
cmp dword [0x14018df50], eax
jle 0x140045e0f
lea rcx, [0x14018df50]
call fcn.1400f90bc
cmp dword [0x14018df50], 0xffffffff
jne 0x140045e0f
mov qword [0x14018df58], r12
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [0x14018df68], xmm0
mov word [0x14018df58], r12w
mov qword [rbp - 0x48], r12
movdqa xmm0, xmmword [0x140166ac0]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
mov r8d, 6
lea rdx, str.Upload
lea rcx, [rbp - 0x48]
call fcn.140009250
nop
lea rdx, [0x14018df58]
lea rcx, [rbp - 0x48]
call fcn.14001b5c0
nop
lea rcx, [rbp - 0x48]
call fcn.1400091f0
nop
lea rcx, [0x14013a6d0]
call fcn.1400f8c80
nop
lea rcx, [0x14018df50]
call fcn.1400f905c
lea r13, [0x14018df80]
mov eax, dword [rbx]
cmp dword [0x14018df78], eax
jle 0x140045eb6
lea rcx, [0x14018df78]
call fcn.1400f90bc
cmp dword [0x14018df78], 0xffffffff
jne 0x140045eb6
mov qword [0x14018df80], r12
mov qword [0x14018df90], r12
mov qword [0x14018df98], 7
mov word [0x14018df80], r12w
mov qword [rbp - 0x48], r12
movdqa xmm0, xmmword [0x140166ac0]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
mov r8d, 5
lea rdx, [0x14015d838]
lea rcx, [rbp - 0x48]
call fcn.140009250
nop
mov rdx, r13
lea rcx, [rbp - 0x48]
call fcn.14001b5c0
nop
lea rcx, [rbp - 0x48]
call fcn.1400091f0
nop
lea rcx, [0x14013a6c0]
call fcn.1400f8c80
nop
lea rcx, [0x14018df78]
call fcn.1400f905c
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 0x140045f64
lea r8, [0x14018df58]
lea rdx, [rbp - 0x48]
mov rcx, r15
call fcn.140024c30
nop
lea r8, [rbp - 8]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140024c30
nop
mov r8, r13
cmp qword [0x14018df98], 8
cmovae r8, qword [0x14018df80]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140024fb0
nop
cmp rdi, rax
je 0x140045f45
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140045f39
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140009050
nop
lea rcx, [rsp + 0x70]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x50]
call fcn.140008fe0
nop
lea rcx, [rbp - 0x48]
jmp 0x1400460f4
lea rcx, [rbp - 0x70]
call fcn.1400013a0
mov rbx, rax
mov qword [rbp - 0x48], r12
movdqa xmm0, xmmword [0x140166ac0]
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.14001b3f0
mov r8d, 1
lea rdx, [0x140157a5c]
lea rcx, [rbp - 0x48]
call fcn.1400093b0
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.14000c5b0
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.14001b5c0
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.140009050
nop
lea rcx, [rsp + 0x30]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x70]
call fcn.1400091f0
nop
lea rcx, [rsp + 0x50]
call fcn.1400091f0
and esi, 0xffffffbf
mov dword [rsp + 0x20], esi
lea rcx, [rbp - 0x48]
call fcn.1400091f0
nop
lea rcx, [rbp - 0x70]
call fcn.1400091f0
lea r8, [0x14018df58]
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.140024c30
nop
lea r8, [rbp - 8]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140024c30
nop
mov r8, r13
cmp qword [0x14018df98], 8
cmovae r8, qword [0x14018df80]
lea rdx, [rbp - 0x70]
mov rcx, rax
call fcn.140024fb0
nop
cmp rdi, rax
je 0x1400460da
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400460ce
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140009050
nop
lea rcx, [rbp - 0x70]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x70]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x50]
call fcn.140008fe0
cmp qword [r14 + 0xb8], 0
je 0x14004610a
inc dword [r14 + 0xc8]
cmp byte [rbp + 0x90], 0
je 0x1400462e3
nop word [rax + rax]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14004612d
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1400462e3
mov edx, dword [0x14018d670]
inc edx
mov dword [0x14018d670], 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.14001b3f0
mov r8d, 1
lea rdx, [0x140157a5c]
lea rcx, [rbp - 0x48]
call fcn.1400093b0
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.14000c5b0
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.14001b5c0
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.140009050
nop
lea rcx, [rsp + 0x30]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x70]
call fcn.1400091f0
nop
lea rcx, [rsp + 0x50]
call fcn.1400091f0
btr esi, 9
mov dword [rsp + 0x20], esi
lea rcx, [rbp - 0x48]
call fcn.1400091f0
nop
lea rcx, [rbp - 0x70]
call fcn.1400091f0
lea r8, [0x14018df58]
lea rdx, [rbp - 0x48]
mov rcx, r15
call fcn.140024c30
nop
lea r8, [rbp - 8]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140024c30
nop
mov r8, r13
cmp qword [0x14018df98], 8
cmovae r8, qword [0x14018df80]
lea rdx, [rbp - 0x70]
mov rcx, rax
call fcn.140024fb0
nop
cmp rdi, rax
je 0x1400462c0
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400462b4
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140009050
nop
lea rcx, [rbp - 0x70]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x70]
call fcn.140008fe0
nop
lea rcx, [rbp - 0x48]
call fcn.140008fe0
jmp 0x140046120
lea rcx, [rbp - 8]
call fcn.140008fe0
nop
lea rcx, [rbp - 0x28]
call fcn.140008fe0
mov rax, rdi
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.1400f89b0
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret