Function at 0x140374420
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
je 0x140374304
xorps xmm0, xmm0
mov qword [rsp + 0x50], 0
movups xmmword [rdx], xmm0
movsd xmm0, qword [rsp + 0x50]
movsd qword [rdx + 0x10], xmm0
mov eax, dword [0x1405a2a00]
nop
test eax, eax
je 0x140374404
cmp qword [rcx + 0x18], 8
jb 0x14037431d
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x110199
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x78], rax
cmp rax, 0xffffffffffffffff
jne 0x1403743d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
ja 0x140374371
movabs rdx, 0x2000000020800c
bt rdx, rax
jb 0x140374390
lea ecx, [rax - 0x43]
cmp ecx, 0x38
ja 0x140374389
movabs rdx, 0x100000000100001
bt rdx, rcx
jb 0x140374390
cmp eax, 0xa1
jne 0x1403743a5
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
lea r9, str.boost::filesystem::remove_all
mov r8, rsi
mov rdx, rdi
mov ecx, eax
call fcn.1403769c0
nop
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.140374900
mov rdi, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
jmp 0x140374420
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rdi, rdx
mov r15, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor r14d, r14d
mov qword [rsp + 0x40], r14
mov r12d, r14d
lea r13, [0x14055f2b0]
lea rbx, [0x14055f2f8]
mov rcx, r15
cmp qword [r15 + 0x18], 8
jb 0x140374470
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
je 0x14037481f
and eax, 0x410
cmp eax, 0x10
jne 0x1403747f1
mov qword [rbp + 0x60], r14
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 0x10]
mov rdx, r15
lea rcx, [rbp + 0x60]
call fcn.14036eeb0
mov rdx, qword [rsp + 0x40]
test dl, 1
je 0x140374728
mov r9d, dword [rsp + 0x30]
cmp rdx, 1
jne 0x1403744d7
test r9d, r9d
setne al
test al, al
je 0x140374728
mov dword [rsp + 0x68], reloc.WS2_32.dll_sendto
mov qword [rsp + 0x70], r13
cmp rdx, 1
jne 0x140374577
mov rcx, r13
call fcn.14036e210
mov rcx, rax
mov eax, dword [rsp + 0x68]
mov dword [rbp - 0x78], eax
mov qword [rbp - 0x70], rcx
mov rax, qword [rsp + 0x40]
cmp rax, 1
jne 0x140374524
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsp + 0x48], xmm0
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
jmp 0x140374550
test rax, rax
jne 0x140374536
mov edx, r14d
mov rcx, rbx
mov qword [rsp + 0x50], rbx
jmp 0x14037454c
mov rcx, qword [rsp + 0x38]
call fcn.14036e210
mov rcx, rax
mov edx, dword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], edx
mov rax, qword [rcx]
lea r8, [rbp - 0x78]
call qword [rax + Ordinal_41]
test al, al
jne 0x1403746a9
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
mov r8d, dword [rbp - 0x78]
lea rdx, [rsp + 0x48]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
jmp 0x1403745bc
lea rcx, [0x14055f3c8]
test rdx, rdx
cmovne rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea r8, [rsp + 0x68]
mov edx, r9d
call qword [rax + Ordinal_26]
test al, al
jne 0x1403746a9
mov rcx, r13
mov rax, qword [rsp + 0x70]
test rax, rax
cmovne rcx, rax
mov rax, qword [rcx]
mov r8d, dword [rsp + 0x68]
lea rdx, [rsp + 0x30]
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x1403746a9
mov dword [rsp + 0x78], WSACleanup
mov qword [rbp - 0x80], r13
mov rax, qword [rsp + 0x40]
cmp rax, 1
jne 0x140374664
mov rcx, r13
call fcn.14036e210
mov rcx, rax
mov eax, dword [rsp + 0x78]
mov dword [rbp - 0x68], eax
mov qword [rbp - 0x60], rcx
mov rax, qword [rsp + 0x40]
cmp rax, 1
jne 0x140374615
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsp + 0x58], xmm0
mov rcx, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
jmp 0x140374641
test rax, rax
jne 0x140374627
mov edx, r14d
mov rcx, rbx
mov qword [rsp + 0x60], rbx
jmp 0x14037463d
mov rcx, qword [rsp + 0x38]
call fcn.14036e210
mov rcx, rax
mov edx, dword [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x58], edx
mov rax, qword [rcx]
lea r8, [rbp - 0x68]
call qword [rax + Ordinal_41]
test al, al
jne 0x1403746a9
mov rcx, qword [rbp - 0x60]
mov rax, qword [rcx]
mov r8d, dword [rbp - 0x68]
lea rdx, [rsp + 0x58]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
jmp 0x1403746a5
lea rcx, [0x14055f3c8]
test rax, rax
cmovne rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea r8, [rsp + 0x78]
mov edx, dword [rsp + 0x30]
call qword [rax + Ordinal_26]
test al, al
jne 0x1403746a9
mov rcx, r13
mov rax, qword [rbp - 0x80]
test rax, rax
cmovne rcx, rax
mov rax, qword [rcx]
mov r8d, dword [rsp + 0x78]
lea rdx, [rsp + 0x30]
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
je 0x14037470a
mov rbx, qword [rbp + 0x60]
test rbx, rbx
je 0x1403746d5
mov eax, 0xffffffff
lock xadd dword [rbx], eax
cmp eax, 1
jne 0x1403746d5
test rbx, rbx
je 0x1403746d5
mov rcx, rbx
call fcn.14036e080
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc r12d
cmp r12d, 5
jb 0x14037445c
movups xmm0, xmmword [rsp + 0x30]
movsd xmm1, qword [rsp + 0x40]
test rdi, rdi
je 0x1403748c4
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
mov rax, 0xffffffffffffffff
jmp 0x140374878
movups xmm0, xmmword [rsp + 0x30]
movsd xmm1, qword [rsp + 0x40]
test rdi, rdi
je 0x140374893
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
jmp 0x140374785
mov qword [rbp + 0x68], r14
nop dword [rax]
mov rbx, qword [rbp + 0x60]
test rbx, rbx
je 0x1403747c9
cmp qword [rbx + 0x40], 0
je 0x1403747c9
lea rcx, [rbx + 0x10]
mov rdx, rdi
call 0x140374420
add r14, rax
test rdi, rdi
je 0x140374768
mov rcx, rdi
call fcn.140016240
test al, al
jne 0x140374785
mov rdx, rdi
lea rcx, [rbp + 0x60]
call fcn.14036f590
test rdi, rdi
je 0x140374730
mov rcx, rdi
call fcn.140016240
test al, al
je 0x140374730
mov rbx, qword [rbp + 0x60]
test rbx, rbx
je 0x14037486d
mov eax, 0xffffffff
lock xadd dword [rbx], eax
cmp eax, 1
jne 0x14037486d
test rbx, rbx
je 0x14037486d
mov rcx, rbx
call fcn.14036e080
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rax, 0xffffffffffffffff
jmp 0x140374878
test rbx, rbx
je 0x1403747f1
mov eax, 0xffffffff
lock xadd dword [rbx], eax
cmp eax, 1
jne 0x1403747f1
test rbx, rbx
je 0x1403747f1
mov rcx, rbx
call fcn.14036e080
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov r8, rdi
mov edx, esi
mov rcx, r15
call fcn.1403750e0
test rdi, rdi
je 0x140374817
mov rcx, qword [rdi + 0x10]
test cl, 1
je 0x140374817
cmp rcx, 1
jne 0x14037486d
cmp dword [rdi], 0
jne 0x14037486d
movzx eax, al
add rax, r14
jmp 0x140374878
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
ja 0x14037483a
movabs rdx, 0x2000000020800c
bt rdx, rax
jb 0x140374876
lea ecx, [rax - 0x43]
cmp ecx, 0x38
ja 0x140374852
movabs rdx, 0x100000000100001
bt rdx, rcx
jb 0x140374876
cmp eax, 0xa1
je 0x140374876
lea r9, str.boost::filesystem::remove_all
mov r8, rdi
mov rdx, r15
mov ecx, eax
call fcn.1403769c0
mov rax, 0xffffffffffffffff
jmp 0x140374878
xor eax, eax
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movaps xmmword [rbp - 0x50], xmm0
movsd qword [rbp - 0x40], xmm1
lea r9, [rbp - 0x50]
mov r8, r15
lea rdx, str.boost::filesystem::remove_all
lea rcx, [rbp - 0x30]
call fcn.140376350
lea rdx, [0x140543768]
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
movaps xmmword [rbp - 0x50], xmm0
movsd qword [rbp - 0x40], xmm1
lea r9, [rbp - 0x50]
mov r8, r15
lea rdx, str.boost::filesystem::remove_all:_path_cannot_be_opened_as_a_directory
lea rcx, [rbp - 0x30]
call fcn.140376350
lea rdx, [0x140543768]
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3