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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400a31a0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
cmp qword [rcx + 0x18], 0x10
jb 0x1400036a9
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140003705
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400036ee
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400036e9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400039ac
mov rcx, r8
call fcn.14002dc64
xor r15d, r15d
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], recvfrom
mov byte [rbx], r15b
jmp 0x1400038f0
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
xor r15d, r15d
test rcx, rcx
jne 0x140003761
cmp rdx, 0x10
jb 0x14000374b
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140003746
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400039ac
mov rcx, r8
call fcn.14002dc64
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], recvfrom
mov byte [rbx], 0
xor al, al
jmp 0x1400038f2
mov rax, rbx
cmp rdx, 0x10
jb 0x14000376d
mov rax, qword [rbx]
add rcx, rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14000377c
mov rax, qword [rbx]
cmp rax, rcx
je 0x140003791
cmp byte [rax], 0x2f
jne 0x140003789
mov byte [rax], 0x5c
inc rax
cmp rax, rcx
jne 0x140003781
mov rdi, r15
nop dword [rax]
nop dword [rax + rax]
mov rsi, rbx
mov r14, qword [rbx + 0x18]
cmp r14, 0x10
jb 0x1400037b0
mov rsi, qword [rbx]
mov rbp, qword [rbx + 0x10]
cmp rdi, rbp
jae 0x1400037d7
mov r8, rbp
sub r8, rdi
lea rcx, [rsi + rdi]
mov edx, 0x5c
call fcn.14004c5a0
test rax, rax
je 0x1400037d7
sub rax, rsi
jmp 0x1400037de
mov rax, 0xffffffffffffffff
mov rdi, rbp
cmp rax, 0xffffffffffffffff
cmovne rdi, rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], socket
mov byte [rsp + 0x28], r15b
mov r8, rdi
cmp rbp, rdi
cmovb r8, rbp
mov rdx, rbx
cmp r14, 0x10
jb 0x140003812
mov rdx, qword [rbx]
lea rcx, [rsp + 0x28]
call fcn.14000c9d0
cmp qword [rsp + 0x38], r15
je 0x14000385d
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000385d
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rcx, qword [rsp + 0x28]
call fcn.140055f74
test eax, eax
jne 0x140003919
inc rdi
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000389d
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003898
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400039a0
call fcn.14002dc64
cmp rdi, qword [rbx + 0x10]
jb 0x1400037a0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400038e1
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400038dc
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400039ac
mov rcx, r8
call fcn.14002dc64
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], recvfrom
mov byte [rbx], 0
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14002dc40
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140003952
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000394d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400039a0
call fcn.14002dc64
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], socket
mov byte [rsp + 0x28], r15b
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000374b
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140003746
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400039a6
jmp 0x140003743
call fcn.140056774
nop
call fcn.140056774
int3
call fcn.140056774
int3