Function at 0x140021ab0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x140092008]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov edi, ecx
mov qword [rsp + 0x50], 0xffffffffffffffff
xor ecx, ecx
mov esi, 0xffffffff
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rcx
test edi, edi
jne 0x140021b20
lea rcx, str.discoverVmType___transport_type_invalid._Aborting_discovery.
call fcn.140003010
jmp 0x140021d22
lea rcx, str.Starting_VM_type_discovery...
mov qword [rsp + 0x220], rbx
call fcn.140003050
mov ecx, edi
sub ecx, 1
je 0x140021bee
cmp ecx, 1
je 0x140021b5c
mov ebx, 0xfffffffe
lea rcx, str.AppletsManager::discoverVmType____failure_in_TEE_Transport_Create____teeCommStatus___d_n
mov edx, ebx
call fcn.140003010
jmp 0x140021d1a
lea rax, [0x14002ee60]
xor ebx, ebx
mov qword [rsp + 0x20], rax
lea rax, [0x14002ef40]
mov qword [rsp + 0x28], rax
lea rax, [0x14002f180]
mov qword [rsp + 0x30], rax
lea rax, [0x14002f2e0]
mov qword [rsp + 0x38], rax
lea ecx, [rbx + 0x28]
lea rax, [0x14002f460]
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x40], rax
call fcn.14004e41c
mov rcx, rax
mov rbx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
mov qword [0x1400956c8], rbx
mov dword [rsp + 0x48], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x2711
lea rcx, [rsp + 0x20]
call qword [rsp + 0x28]
test eax, eax
jne 0x140021c99
lea esi, [rax + 2]
lea rcx, str.BHv2_detected.
jmp 0x140021cc7
lea rax, [0x14002eae0]
xor ebx, ebx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
lea rax, [0x14002eb20]
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [0x14002eca0]
mov r8d, 0x198
mov qword [rsp + 0x30], rax
lea rax, [0x14002ed20]
mov qword [rsp + 0x38], rax
lea rax, [0x14002edd0]
mov qword [rsp + 0x40], rax
call fcn.140041d80
mov ecx, 0x202
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140021c60
mov dword [rsp + 0x48], 1
jmp 0x140021c7e
xorps xmm0, xmm0
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x48], ebx
mov ebx, esi
movdqu xmmword [rsp + 0x38], xmm0
test ebx, ebx
je 0x140021bc1
mov edx, ebx
lea rcx, str.AppletsManager::discoverVmType____failure_in_TEE_Transport_Create____teeCommStatus___d_n
call fcn.140003010
jmp 0x140021d1a
xor r8d, r8d
lea r9, [rsp + 0x50]
lea rcx, [rsp + 0x20]
mov edx, 0x2710
cmp edi, 1
je 0x140021cb5
mov edx, 0x2712
call qword [rsp + 0x28]
test eax, eax
jne 0x140021cee
lea esi, [rax + 1]
lea rcx, str.BHv1_detected.
call fcn.140003050
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call qword [rsp + 0x30]
test eax, eax
je 0x140021cfa
mov edx, eax
lea rcx, str.AppletsManager::discoverVmType____failure_in_pfnDisconnect____teeCommStatus___d_n
call fcn.140003050
jmp 0x140021cfa
lea rcx, str.AppletsManager::discoverVmType____Couldnt_connect_to_either_BHv1_or_BHv2.
call fcn.140003010
lea rcx, [rsp + 0x20]
call qword [rsp + 0x20]
test eax, eax
je 0x140021d1a
mov edx, eax
lea rcx, str.AppletsManager::discoverVmType____failure_in_pfnTeardown____teeCommStatus___d_n
mov esi, 0xffffffff
call fcn.140003050
mov rbx, qword [rsp + 0x220]
mov eax, esi
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.14003ce20
lea r11, [rsp + 0x210]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret