Function at 0x140007f20
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 [0x14001c228]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov eax, dword [0x14001c2a0]
mov rbp, rdx
mov edx, eax
mov r13, r8
inc eax
mov rsi, rcx
mov dword [0x14001c2a0], eax
test edx, edx
jne 0x140008000
lea rcx, [rsp + 0x20]
call fcn.14000c9a0
test eax, eax
jne 0x1400080b6
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14001c4d8], eax
call fcn.140008a60
test eax, eax
jne 0x1400081f5
xor r9d, r9d
lea rcx, [rsp + 0x28]
xor r8d, r8d
xor edx, edx
call fcn.140008820
test eax, eax
je 0x140007faa
mov eax, 0x4e22
jmp 0x1400081f5
mov rcx, qword [rsp + 0x28]
lea rdx, str.apr_initialize
call fcn.140008b80
mov ecx, 2
lea rdx, [rsp + 0x40]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x1400081f5
movzx eax, word [rsp + 0x40]
cmp al, 2
jne 0x1400080b0
shr ax, 8
test al, al
jne 0x1400080b0
mov rcx, qword [rsp + 0x28]
call fcn.14000c760
mov rcx, qword [rsp + 0x28]
call fcn.14000cfe0
cmp dword [0x14001c29c], 0
jne 0x1400081f3
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 [0x14001c29c], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
test rax, rax
je 0x14000807c
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
je 0x14000807c
mov r8d, dword [rsp + 0x20]
mov rdx, rax
mov rcx, rbp
call fcn.14000c770
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 rcx, r14
movzx edx, word [rcx]
test dx, dx
jne 0x14000809f
cmp word [rcx + 2], dx
je 0x1400080c0
lea eax, [rbx + 1]
add rcx, 2
test dx, dx
cmovne eax, ebx
mov ebx, eax
jmp 0x140008091
call qword [sym.imp.WSOCK32.dll_WSACleanup]
mov eax, 0x11
jmp 0x1400081f5
sub rcx, r14
add rcx, 2
sar rcx, 1
mov qword [rsp + 0x30], rcx
lea rcx, [rcx + rcx*2]
inc rcx
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.14000cbb0
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 0x140008167
mov ebp, ebx
mov edx, r15d
mov rcx, rdi
cmp byte [rdi], dl
je 0x14000813b
nop word [rax + rax]
lea rcx, [rcx + 1]
inc edx
cmp byte [rcx], r15b
jne 0x140008130
inc edx
movsxd rbx, edx
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 0x140008120
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 0x1400081a4
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 0x1400081e3
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.140010690
add rsp, 0x210
pop r13
pop rsi
pop rbp
ret