Function at 0x140021c00
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 [0x140093008]
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 0x140021c70
lea rcx, str.discoverVmType___transport_type_invalid._Aborting_discovery.
call fcn.140003010
jmp 0x140021e72
lea rcx, str.Starting_VM_type_discovery...
mov qword [rsp + 0x220], rbx
call fcn.140003050
mov ecx, edi
sub ecx, 1
je 0x140021d3e
cmp ecx, 1
je 0x140021cac
mov ebx, 0xfffffffe
lea rcx, str.AppletsManager::discoverVmType____failure_in_TEE_Transport_Create____teeCommStatus___d_n
mov edx, ebx
call fcn.140003010
jmp 0x140021e6a
lea rax, [0x14002f080]
xor ebx, ebx
mov qword [rsp + 0x20], rax
lea rax, [0x14002f160]
mov qword [rsp + 0x28], rax
lea rax, [0x14002f3a0]
mov qword [rsp + 0x30], rax
lea rax, [0x14002f500]
mov qword [rsp + 0x38], rax
lea ecx, [rbx + 0x28]
lea rax, [0x14002f680]
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x40], rax
call fcn.14004ed6c
mov rcx, rax
mov rbx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
mov qword [0x1400966c8], 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 0x140021de9
lea esi, [rax + 2]
lea rcx, str.BHv2_detected.
jmp 0x140021e17
lea rax, [0x14002ed00]
xor ebx, ebx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
lea rax, [0x14002ed40]
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [0x14002eec0]
mov r8d, 0x198
mov qword [rsp + 0x30], rax
lea rax, [0x14002ef40]
mov qword [rsp + 0x38], rax
lea rax, [0x14002eff0]
mov qword [rsp + 0x40], rax
call fcn.1400426d0
mov ecx, 0x202
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140021db0
mov dword [rsp + 0x48], 1
jmp 0x140021dce
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 0x140021d11
mov edx, ebx
lea rcx, str.AppletsManager::discoverVmType____failure_in_TEE_Transport_Create____teeCommStatus___d_n
call fcn.140003010
jmp 0x140021e6a
xor r8d, r8d
lea r9, [rsp + 0x50]
lea rcx, [rsp + 0x20]
mov edx, 0x2710
cmp edi, 1
je 0x140021e05
mov edx, 0x2712
call qword [rsp + 0x28]
test eax, eax
jne 0x140021e3e
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 0x140021e4a
mov edx, eax
lea rcx, str.AppletsManager::discoverVmType____failure_in_pfnDisconnect____teeCommStatus___d_n
call fcn.140003050
jmp 0x140021e4a
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 0x140021e6a
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.14003d770
lea r11, [rsp + 0x210]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret