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

Disassembly:
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x510
lea rdi, [rsp + 0x20]
mov ecx, 0x13c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x520]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x500], rax
mov rax, qword [rsp + 0x520]
movzx eax, word [rax]
test eax, eax
je 0x1400b1db5
mov rax, qword [rsp + 0x528]
movzx eax, word [rax]
test eax, eax
jne 0x1400b1dbc
xor al, al
jmp 0x1400b20a6
cmp dword [rsp + 0x530], 1
je 0x1400b1ddd
cmp dword [rsp + 0x530], 2
je 0x1400b1ddd
mov dword [rsp + 0x4f0], 0
jmp 0x1400b1de8
mov dword [rsp + 0x4f0], 1
movzx eax, byte [rsp + 0x4f0]
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x520]
call fcn.1400b28c0
lea rdx, [rsp + 0x270]
mov rcx, qword [rsp + 0x528]
call fcn.1400b28c0
movzx eax, byte [rsp + 0x538]
test eax, eax
je 0x1400b1e3f
lea rcx, [rsp + 0x40]
call fcn.1400b2a00
movzx eax, al
test eax, eax
jne 0x1400b1e3f
xor al, al
jmp 0x1400b20a6
movzx eax, byte [rsp + 0x538]
test eax, eax
je 0x1400b1edf
mov eax, 2
imul rax, rax, 0
movzx ecx, word [rsp + rax + 0x40]
call fcn.140023800
movzx eax, ax
mov dword [rsp + 0x4f4], eax
mov ecx, 2
imul rcx, rcx, 0
movzx ecx, word [rsp + rcx + 0x270]
call fcn.140023800
movzx eax, ax
mov ecx, dword [rsp + 0x4f4]
cmp ecx, eax
jne 0x1400b1ea3
mov eax, 2
imul rax, rax, 1
movzx eax, word [rsp + rax + 0x40]
cmp eax, 0x3a
je 0x1400b1edf
movzx eax, byte [rsp + 0x20]
xor r9d, r9d
mov r8d, eax
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x40]
call fcn.1400b1d50
movzx eax, al
test eax, eax
jne 0x1400b1ece
xor al, al
jmp 0x1400b20a6
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.1400b2a50
jmp 0x1400b20a6
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x484], eax
cmp dword [rsp + 0x484], 0xffffffff
je 0x1400b1f27
mov eax, dword [rsp + 0x484]
and eax, 0x10
test eax, eax
je 0x1400b1f1e
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400b1f1c
xor al, al
jmp 0x1400b20a6
jmp 0x1400b1f25
xor al, al
jmp 0x1400b20a6
jmp 0x1400b1f4e
movzx eax, byte [rsp + 0x538]
test eax, eax
jne 0x1400b1f4e
lea rcx, [rsp + 0x270]
call fcn.1400445b0
movzx eax, al
test eax, eax
jne 0x1400b1f4e
xor al, al
jmp 0x1400b20a6
movzx eax, byte [rsp + 0x538]
test eax, eax
jne 0x1400b1f6b
lea rdx, [0x140292360]
lea rcx, [rsp + 0x40]
call fcn.1401f81b0
lea rcx, [rsp + 0x40]
call fcn.1401ea000
lea rax, [rax + rax + 2]
mov qword [rsp + 0x4e0], rax
cmp qword [rsp + 0x4e0], 0x20c
jae 0x1400b1f92
jmp 0x1400b1f97
call fcn.1401357e0
xor eax, eax
mov rcx, qword [rsp + 0x4e0]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rsp + 0x270]
call fcn.1401ea000
lea rax, [rax + rax + 2]
mov qword [rsp + 0x4e8], rax
cmp qword [rsp + 0x4e8], 0x20c
jae 0x1400b1fd0
jmp 0x1400b1fd5
call fcn.1401357e0
xor eax, eax
mov rcx, qword [rsp + 0x4e8]
mov word [rsp + rcx + 0x270], ax
lea rax, [rsp + 0x498]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WSOCK32.dll_getservbyport
rep stosb byte [rdi], al
lea rax, [rsp + 0x40]
mov qword [rsp + 0x4a8], rax
lea rax, [rsp + 0x270]
mov qword [rsp + 0x4b0], rax
movzx eax, byte [rsp + 0x538]
test eax, eax
je 0x1400b2031
mov dword [rsp + 0x4f8], 1
jmp 0x1400b203c
mov dword [rsp + 0x4f8], 2
mov eax, dword [rsp + 0x4f8]
mov dword [rsp + 0x4a0], eax
mov eax, 0x614
mov word [rsp + 0x4b8], ax
cmp dword [rsp + 0x530], 2
jne 0x1400b2074
movzx eax, word [rsp + 0x4b8]
or eax, 1
mov word [rsp + 0x4b8], ax
lea rcx, [rsp + 0x498]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x1400b2093
mov dword [rsp + 0x4fc], 1
jmp 0x1400b209e
mov dword [rsp + 0x4fc], 0
movzx eax, byte [rsp + 0x4fc]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WSOCK32.dll_closesocket
call fcn.140134a00
mov rax, rdi
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.140135520
add rsp, 0x510
pop rdi
ret