Function at 0x140002210
Capabilities:
Initialize winsock library
Read file on windows
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1ce0
call fcn.140037820
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1d30], rbx
mov rax, qword [0x14004e300]
xor rax, rsp
mov qword [rsp + 0x1cd0], rax
mov rbp, rdx
mov r12d, ecx
mov qword [rsp + 0x80], rdx
mov dword [0x140056420], ecx
call fcn.140001690
xor r13d, r13d
cmp eax, r13d
je 0x140002282
cmp r12d, 1
jne 0x140002282
mov edx, r12d
lea rcx, [0x140056480]
call fcn.1400016f8
cmp qword [0x140056460], r13
jne 0x1400022f3
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 0x202
lea rdx, [rsp + 0x90]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r8d, r8d
mov edx, 0x1f400
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x140056460], rax
call fcn.14000a198
cmp qword [0x140056460], r13
jne 0x1400022f3
mov rdx, qword [rbp]
sub rdx, 0x18
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
cmp eax, r13d
jg 0x1400022ec
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140002777
mov edi, 0xa94
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0x230]
call fcn.140024b80
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
or rbx, 0xffffffffffffffff
cmp rax, rbx
jne 0x140002366
mov rdx, qword [rbp]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
cmp eax, r13d
jg 0x14000235f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140002777
mov dword [rsp + 0x64], r13d
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x64]
mov r8d, edi
lea rdx, [rsp + 0x230]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, r13d
jne 0x1400023dd
mov dword [rsp + 0x6c], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x6c]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rdx, qword [rbp]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
cmp eax, r13d
jg 0x1400023d6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140002777
mov dword [rsp + 0x44], r13d
mov r14d, r13d
lea rdx, [rsp + 0x44]
mov ecx, r12d
call fcn.14000a394
mov rdi, rax
mov qword [rsp + 0x50], rax
mov word [rsp + 0x14d0], r13w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x14d2]
call fcn.140024b80
mov r15d, r13d
xor ecx, ecx
cmp dword [rsp + 0x44], ecx
jle 0x140002711
lea rax, [rdi + 0x24]
mov qword [rsp + 0x58], rax
movsxd rax, r13d
imul rax, rax, 0x274
add rdi, rax
cmp dword [rsp + 0xcc0], 2
jne 0x14000245f
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xa40]
mov rcx, rdi
call fcn.140001eb0
jmp 0x1400024a2
cmp dword [rsp + 0xcc0], ecx
jne 0x14000247f
xor r9d, r9d
lea r8, [rsp + 0x230]
xor edx, edx
mov rcx, rdi
call fcn.140001eb0
jmp 0x1400024a2
cmp dword [rsp + 0xcc0], 1
jne 0x140002638
lea r9, [rsp + 0xc40]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140001eb0
xor ecx, ecx
cmp eax, ecx
je 0x140002638
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0xcd0]
call fcn.140024b80
mov dword [rsp + 0x74], 0x400
xor r14d, r14d
mov dword [rsp + 0x60], r14d
lea rcx, [rdi + 0x14]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x74]
lea rdx, [rsp + 0xcd0]
call sub.WS2_32.dll_WSCGetProviderPath
call fcn.140014600
mov ecx, r14d
cmp rax, r14
setne cl
cmp ecx, r14d
je 0x1400026a4
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x48], rdi
call fcn.140001690
cmp eax, r14d
je 0x1400025da
cmp r12d, 1
jne 0x1400025da
xor eax, eax
mov rcx, rbx
lea rdi, [rsp + 0xcd0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0xcd0]
lea rcx, [rsp + 0x48]
call fcn.140007a14
lea rcx, [rsp + 0x48]
call fcn.140005198
lea r8, str.windows_syswow64_
lea rdx, str._system32_
lea rcx, [rsp + 0x48]
call fcn.140004e8c
mov rdi, qword [rsp + 0x48]
movsxd r14, dword [rdi - 0x10]
cmp dword [rdi - 8], r12d
jle 0x140002599
mov edx, dword [rdi - 0x10]
lea rcx, [rsp + 0x48]
call fcn.1400078d0
mov rdi, qword [rsp + 0x48]
mov r8, r14
add r8, r8
mov rdx, rdi
lea rcx, [rsp + 0xcd0]
call fcn.140024e60
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call fcn.140022788
xor r14d, r14d
cmp eax, r14d
jl 0x140002655
cmp eax, dword [rdi - 0xc]
jg 0x140002655
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], r14w
mov rax, qword [rsp + 0x58]
mov edx, dword [rax]
mov ecx, r12d
call fcn.140008dd8
xor ecx, ecx
cmp eax, ecx
sete r14b
cmp r14d, 1
jne 0x140002660
cmp r15d, r14d
je 0x14000261c
lea rcx, [rsp + 0x14d0]
lea rdx, [rsp + 0xcd0]
mov r8d, 0x800
call fcn.140024e60
xor ecx, ecx
mov r15d, r14d
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
cmp eax, ecx
jg 0x140002638
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor ecx, ecx
inc r13d
add qword [rsp + 0x58], 0x274
cmp r13d, dword [rsp + 0x44]
jge 0x1400026af
mov rdi, qword [rsp + 0x50]
jmp 0x140002430
mov ecx, 0x80070057
call fcn.140007c44
int3
xor r13d, r13d
mov dword [rsp + 0x68], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
lea r8d, [r13 + 4]
lea rdx, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r15d, r13d
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
cmp eax, r13d
jg 0x140002705
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400026b2
mov ecx, 0x80004005
call fcn.140007c44
int3
xor r13d, r13d
cmp r15d, r13d
je 0x14000270c
mov dword [rsp + 0x70], 1
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, 0x800
lea rdx, [rsp + 0x14d0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x50]
jmp 0x140002711
mov rdi, qword [rsp + 0x50]
jmp 0x140002711
mov rdi, qword [rsp + 0x50]
mov rcx, qword [0x140056460]
cmp rcx, r13
je 0x140002728
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp rsi, r13
je 0x140002736
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140001690
cmp eax, r13d
je 0x140002755
cmp r12d, 1
jne 0x140002755
xor edx, edx
lea rcx, [0x140056480]
call fcn.1400016f8
nop
mov rdx, qword [rbp]
sub rdx, 0x18
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
cmp ecx, r13d
jg 0x140002774
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r14d
mov rcx, qword [rsp + 0x1cd0]
xor rcx, rsp
call fcn.140021c70
mov rbx, qword [rsp + 0x1d30]
add rsp, 0x1ce0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret