Function at 0x10001dd0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x228
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov qword [r11 - 8], rsi
mov qword [r11 - 0x10], rdi
mov qword [r11 - 0x18], r12
mov qword [r11 - 0x20], r13
mov rax, qword [0x100b4478]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov r12, rdx
mov rbx, rcx
xor r13d, r13d
mov ebp, r13d
mov dword [rsp + 0x40], r13d
mov edx, reloc.WS2_32.dll_ntohs
mov qword [r11 - 0x150], rdx
mov r8, r13
mov qword [r11 - 0x158], r13
mov byte [rsp + 0xc0], bpl
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
cmp rcx, 0xfffffffffffffffe
jbe 0x10001e6f
call fcn.1003c2a0
mov rdx, qword [rsp + 0xd8]
mov r8, qword [rsp + 0xd0]
cmp rdx, rdi
jae 0x10001e8e
mov rdx, rdi
lea rcx, [rsp + 0xb8]
call fcn.10003690
mov rdx, qword [rsp + 0xd8]
jmp 0x10001eb5
test rdi, rdi
jne 0x10001eb5
mov qword [rsp + 0xd0], r13
lea rax, [rsp + 0xc0]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0xc0]
mov byte [rax], bpl
jmp 0x10001f00
test rdi, rdi
je 0x10001f00
lea rcx, [rsp + 0xc0]
cmp rdx, 0x10
cmovae rcx, qword [rsp + 0xc0]
mov r9, rdi
mov r8, rbx
call fcn.100224a0
mov qword [rsp + 0xd0], rdi
lea rax, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 0x10
cmovae rax, qword [rsp + 0xc0]
mov byte [rax + rdi], bpl
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x90], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x88], r13
mov byte [rsp + 0x78], 0
mov r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x70]
call fcn.10003170
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x98]
call fcn.10005bf0
nop
lea rcx, [rsp + 0x48]
cmp rcx, rax
je 0x10001f74
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.10002fc0
nop
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x10001f86
call fcn.10022490
cmp dword [rsp + 0x40], 0
je 0x10002082
mov rsi, qword [rsp + 0x50]
test rsi, rsi
jne 0x10001fa0
mov rbx, r13
jmp 0x10001faa
mov rbx, qword [rsp + 0x58]
sub rbx, rsi
jne 0x10001fb4
call fcn.10022300
mov rsi, qword [rsp + 0x50]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10002082
mov byte [rsp + 0xe0], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0xe1]
call fcn.10025bb0
lea r8, [0x100a158c]
mov edx, 0x104
lea rcx, [rsp + 0xe0]
call fcn.100223e0
mov r8, r12
mov edx, 0x104
lea rcx, [rsp + 0xe0]
call fcn.10022580
lea r8, [0x100a158c]
mov edx, 0x104
lea rcx, [rsp + 0xe0]
call fcn.10022580
lea rcx, [rsp + 0xe0]
call fcn.100011e0
mov ebp, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x10002091
call fcn.10022490
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
cmp qword [rsp + 0xd8], 0x10
jb 0x100020bc
mov rcx, qword [rsp + 0xc0]
call fcn.10022490
mov eax, ebp
jmp 0x100020be
mov eax, ebp
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.10021bf0
mov rbx, qword [rsp + 0x240]
mov rbp, qword [rsp + 0x248]
mov rsi, qword [rsp + 0x220]
mov rdi, qword [rsp + 0x218]
mov r12, qword [rsp + 0x210]
mov r13, qword [rsp + 0x208]
add rsp, 0x228
ret