Function at 0x1400070d0
Capabilities:
Accept command line arguments
Allocate thread local storage
Initialize winsock library
Query environment variable

Disassembly:
push rbp
push rsi
push r13
sub rsp, 0x210
mov rax, qword [0x14001b1f0]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov eax, dword [0x14001b308]
mov rbp, rdx
mov edx, eax
mov r13, r8
inc eax
mov rsi, rcx
mov dword [0x14001b308], eax
test edx, edx
jne 0x1400071b0
lea rcx, [rsp + 0x20]
call fcn.14000dbf0
test eax, eax
jne 0x14000726a
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14001b598], eax
call fcn.140008200
test eax, eax
jne 0x1400073b5
xor r9d, r9d
lea rcx, [rsp + 0x28]
xor r8d, r8d
xor edx, edx
call fcn.140007fc0
test eax, eax
je 0x14000715a
mov eax, 0x4e22
jmp 0x1400073b5
mov rcx, qword [rsp + 0x28]
lea rdx, str.apr_initialize
call fcn.140008370
mov ecx, 2
lea rdx, [rsp + 0x40]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x1400073b5
movzx eax, word [rsp + 0x40]
cmp al, 2
jne 0x140007264
shr ax, 8
test al, al
jne 0x140007264
mov rcx, qword [rsp + 0x28]
call fcn.14000d9a0
mov rcx, qword [rsp + 0x28]
call fcn.14000e230
cmp dword [0x14001b304], 0
jne 0x1400073b3
mov qword [rsp + 0x248], rbx
mov ebx, 1
mov qword [rsp + 0x208], rdi
mov qword [rsp + 0x200], r12
mov qword [rsp + 0x1f8], r14
mov qword [rsp + 0x1f0], r15
mov dword [0x14001b304], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
test rax, rax
je 0x14000722c
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
je 0x14000722c
mov r8d, dword [rsp + 0x20]
mov rdx, rax
mov rcx, rbp
call fcn.14000d9b0
mov rcx, rdi
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov r14, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll___p__environ]
mov r15, rax
mov rdx, r14
movzx r8d, word [rdx]
test r8w, r8w
jne 0x140007252
cmp word [rdx + 2], r8w
je 0x140007274
lea eax, [rbx + 1]
add rdx, 2
test r8w, r8w
cmovne eax, ebx
mov ebx, eax
jmp 0x140007241
call qword [sym.imp.WSOCK32.dll_WSACleanup]
mov eax, setsockopt
jmp 0x1400073b5
sub rdx, r14
add rdx, 2
sar rdx, 1
mov qword [rsp + 0x30], rdx
lea rcx, [rdx*2 + 1]
add rcx, rdx
mov qword [rsp + 0x28], rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea r9, [rsp + 0x28]
mov rcx, r14
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov r8, rax
mov rdi, rax
call fcn.14000de00
lea ecx, [rbx + 1]
movsxd r12, ecx
shl r12, 3
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [r15], rax
mov rsi, rax
xor r15d, r15d
test ebx, ebx
jle 0x140007327
mov ebp, ebx
nop dword [rax + rax]
mov eax, r15d
mov rcx, rdi
cmp byte [rdi], al
je 0x1400072fb
nop word [rax + rax]
lea rcx, [rcx + 1]
inc eax
cmp byte [rcx], r15b
jne 0x1400072f0
inc eax
movsxd rbx, eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov qword [rsi], rax
call sub.VCRUNTIME140.dll_memcpy
add rdi, rbx
add rsi, 8
sub rbp, 1
jne 0x1400072e0
mov rcx, qword [rsp + 0x38]
mov qword [rsi], r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rsp + 0x208]
test r13, r13
je 0x140007364
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [r13], rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll___p__environ]
mov rcx, qword [r13]
mov r8, r12
mov rdx, qword [rax]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll___p__wenviron]
mov r14, qword [rsp + 0x1f8]
mov r12, qword [rsp + 0x200]
cmp qword [rax], r15
je 0x1400073a3
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll___p__wenviron]
mov rbx, qword [rax]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll___p__wenviron]
mov rcx, rbx
mov qword [rax], r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x248]
mov r15, qword [rsp + 0x1f0]
xor eax, eax
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140011030
add rsp, 0x210
pop r13
pop rsi
pop rbp
ret