Function at 0x4be406
Capabilities:
Connect socket
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x110
movzx eax, byte [edx + 0x48]
mov esi, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x2c], ecx
test eax, eax
je 0x4be457
cmp eax, 3
jne 0x4beadc
lea eax, [esi + 0x44]
lea edx, [esi + 0x28]
mov dword [esp + 0x1c], eax
movzx eax, byte [esi + 0x44]
mov dword [esp + 0x28], edx
test eax, eax
je 0x4be4bf
cmp eax, 3
jne 0x4beaee
mov eax, dword [esi + 0x40]
jmp 0x4be9d7
mov ebx, dword [esi + 0x20]
mov dword [esi + 0x24], ebx
movzx eax, word [esi + 0x12]
cmp word [esi], 0
mov word [esp + 0x78], ax
movsd xmm0, qword [esi + 2]
movsd xmm1, qword [esi + 0xa]
movsd qword [esp + 0x70], xmm1
movsd qword [esp + 0x68], xmm0
je 0x4be4ca
mov eax, dword [esi + 0x14]
movups xmm0, xmmword [esp + 0x6a]
lea edx, [esp + 0x9c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x18]
movzx esi, word [esi + 0x1c]
mov dword [esp], eax
push 0x19
pop ecx
xor eax, eax
mov edi, edx
rol si, 8
rep stosd dword es:[edi], eax
movups xmmword [edx - 0x14], xmm0
mov eax, dword [esp]
mov dword [edx - 4], eax
push 0x1c
pop edx
mov ax, 0x17
jmp 0x4be4f0
mov edi, dword [esi + 0x28]
mov ebx, dword [esi + 0x2c]
jmp 0x4be561
push 0x10
pop edx
movzx esi, word [esp + 0x6c]
mov eax, dword [esp + 0x68]
lea edi, [esp + 0x88]
rol si, 8
mov dword [esp + 4], eax
push 0x1e
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov ax, 2
lea ecx, [esp + 0x80]
mov word [ecx], ax
mov eax, dword [esp + 4]
mov word [ecx + 2], si
mov dword [ecx + 4], eax
mov dword [ecx + 0x80], edx
push edx
push ecx
push ebx
call dword [sym.imp.ws2_32.dll_connect]
mov esi, dword [esp + 0xc]
test eax, eax
je 0x4be543
call sub.kernel32.dll_GetLastError
lea edi, [esp + 0x30]
mov ebx, eax
and dword [edi], 0
mov ecx, edi
mov dword [edi + 4], eax
call fcn.0042d298
cmp al, 0xd
jne 0x4be7a9
push edi
call fcn.0043fc78
pop eax
mov edi, dword [esi + 0x24]
lea eax, [esi + 0x28]
xor ebx, ebx
mov dword [esp + 0x28], eax
lea eax, [esi + 0x44]
mov dword [esp + 0x1c], eax
mov dword [esi + 0x28], edi
and dword [esi + 0x2c], 0
mov byte [esi + 0x44], 0
mov ecx, 0x62af04
call fcn.0051189f
lea ecx, [eax + 0x78]
mov edx, 0x62af04
mov dword [esp + 0x20], edi
mov esi, eax
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], ecx
call fcn.0051057c
lea ecx, [esi + 0x88]
call fcn.0050f599
cmp byte [eax + 0x1c], 0
mov edi, eax
movzx eax, dl
mov dword [esp + 8], eax
je 0x4be5d0
lea ebx, [esp + 0x30]
push 0x27
pop edx
mov ecx, ebx
push 0x38
push str.A_Tokio_1.x_context_was_found__but_it_is_being_shutdown.mark_pending_called_when_the_timer_entry_is_in_an_invalid_state
call fcn.004fb8ac
pop eax
pop ecx
cmp byte [ebx], 4
jne 0x4be646
mov ebx, dword [esp + 0x34]
jmp 0x4be659
push 0x40
pop edx
mov ecx, 0x80
call fcn.0049c41a
mov ebx, eax
xor eax, eax
inc eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
and dword [ebx + 0x40], 0
mov byte [ebx + 0x44], 0
and dword [ebx + 0x48], 0
and dword [ebx + 0x4c], 0
and dword [ebx + 0x50], 0
and dword [ebx + 0x58], 0
and dword [ebx + 0x60], 0
and dword [ebx + 0x64], 0
and dword [ebx + 0x68], 0
lock inc dword [ebx]
jle 0x4beada
lea eax, [ebx + 0x40]
mov dword [esp + 0x58], eax
mov ecx, dword [edi + 0x14]
cmp ecx, eax
je 0x4beb00
mov edx, dword [esp + 8]
mov dword [ebx + 0x64], ecx
and dword [ebx + 0x60], 0
test ecx, ecx
je 0x4be638
mov dword [ecx + 0x20], eax
mov dword [edi + 0x14], eax
cmp dword [edi + 0x18], 0
jne 0x4be65d
mov dword [edi + 0x18], eax
jmp 0x4be65d
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
cmp bl, 4
jne 0x4be7bd
mov ebx, eax
mov edx, dword [esp + 8]
mov ecx, edi
mov dword [esp + 0x50], ebx
call fcn.0051059e
cmp dword [esp], 0
mov dword [esp + 0x48], esi
je 0x4be6a5
xor eax, eax
mov dword [esp], 0
mov ebx, 0xc00
inc eax
lea ecx, [esp + 0x50]
movzx esi, al
call fcn.0050eac8
cmp esi, 4
jne 0x4be69e
mov edi, dword [esp]
mov esi, dword [esp + 0xc]
jmp 0x4be9b9
or ebx, esi
jmp 0x4be7cb
mov eax, dword [esp + 0x18]
lea edi, [esp + 0x80]
mov ecx, edi
mov eax, dword [eax]
lea esi, [eax + 0xc]
lea edx, [eax + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x54], esi
call fcn.0044a35f
mov ecx, edi
mov edx, 0x5cd85c
call fcn.0044a9e4
mov dword [esp + 0x10], eax
mov byte [esp + 0x14], dl
lea edi, [eax + 8]
mov dword [esp + 8], ebx
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4be6f7
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ecx*4 - 4]
mov eax, dword [eax]
cmp eax, 0x20
jbe 0x4be721
mov edx, dword [esi]
lea ebx, [esp + 0x80]
mov ecx, ebx
push edi
call fcn.0044b2ea
pop eax
cmp byte [ebx], 4
je 0x4be721
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 8]
cmp al, 4
jne 0x4be96b
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4beb19
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + ecx*4 - 4]
lock inc dword [ebx]
jle 0x4beada
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
call fcn.0051059e
mov edx, dword [esp + 4]
lea edi, [esp + 0x58]
mov dword [esp], ebx
mov dword [esp + 0x10], ebx
mov ecx, edi
push 0x48000022
call fcn.0044b444
pop eax
cmp dword [edi], 0
je 0x4be7e2
push 0xfffffffffffffff4
pop esi
lea edi, [esp + 0x30]
test esi, esi
je 0x4be950
mov edx, dword [esp + 4]
mov ecx, edi
push dword [esi + 0x5cda44]
call fcn.0044b444
mov eax, dword [esp + 8]
add esp, 4
add esi, 4
cmp dword [esp + 0x30], 0
jne 0x4be775
mov ebx, dword [esp + 0x34]
cmp ebx, eax
je 0x4be775
jmp 0x4be7e6
mov ecx, dword [esi + 0x24]
mov dword [esp], ebx
xor ebx, ebx
call fcn.004b6ff4
xor edi, edi
jmp 0x4bea34
mov edx, dword [esp + 8]
mov ecx, edi
mov dword [esp], eax
call fcn.0051059e
lea ecx, [esp + 0x4c]
call fcn.004428ee
lea ecx, [esp + 0x20]
call fcn.00510fef
jmp 0x4bea22
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 8]
add eax, 0x40
mov dword [esp + 4], eax
lea eax, [esp + 0x80]
mov esi, dword [eax]
push 0x60
pop ecx
push 8
pop edx
call fcn.0049c41a
mov ecx, dword [esp]
mov edi, eax
xor eax, eax
inc eax
lea edx, [edi + 8]
mov dword [edi], eax
mov dword [edi + 4], eax
and dword [edi + 8], 0
mov byte [edi + 0xc], 0
and dword [edi + 0x10], 0
mov dword [edi + 0x14], esi
and dword [edi + 0x18], 0
and dword [edi + 0x20], 0
and dword [edi + 0x1c], 0
and dword [edi + 0x28], 0
and dword [edi + 0x24], 0
and dword [edi + 0x30], 0
and dword [edi + 0x2c], 0
and dword [edi + 0x38], 0
and dword [edi + 0x34], 0
and dword [edi + 0x40], 0
and dword [edi + 0x3c], 0
and dword [edi + 0x44], 0
lea esi, [esp + 0x80]
mov dword [edi + 0x48], ecx
mov dword [edi + 0x4c], ebx
and dword [edi + 0x54], 0
and dword [edi + 0x50], 0
and word [edi + 0x58], 0
mov ecx, esi
call fcn.00422fc5
mov ecx, esi
mov edx, 0x5cda08
call fcn.0044a602
mov ecx, dword [esp + 4]
mov dword [eax + 0x48], 0x19d
and dword [eax + 0x3c], 0
movzx edx, dl
mov dword [eax + 0x38], ecx
mov ecx, eax
call fcn.0051059e
mov esi, dword [esp + 0x18]
lock inc dword [esi]
jle 0x4beada
lock inc dword [edi]
jle 0x4beada
mov eax, dword [esp + 4]
lea ebx, [esi + 8]
mov edx, edi
mov dword [esp + 0x80], esi
mov ecx, ebx
mov dword [esp + 0x88], eax
mov byte [esp + 0x8c], 3
mov dword [esp + 0x84], edi
call fcn.0044b261
lea edi, [esp + 0x30]
mov edx, ebx
mov ecx, edi
call fcn.0044b2a0
cmp byte [edi], 4
je 0x4be8fe
mov eax, dword [esp + 0x30]
cmp al, 4
jne 0x4be991
mov eax, dword [esp + 0x84]
mov ebx, dword [esp + 0x88]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
push 0x10
pop ecx
push 4
pop edx
call fcn.0049c41a
mov edx, dword [esp + 4]
mov ecx, dword [esp]
mov edi, eax
mov dword [eax], esi
mov dword [eax + 8], ebx
mov dword [edi + 4], edx
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x24]
call fcn.0044b4b5
mov dword [esp + 0x24], edi
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 8]
jmp 0x4be9b9
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
lea eax, [esp + 0x10]
push eax
call fcn.00449e5c
pop eax
xor ebx, ebx
xor eax, eax
jmp 0x4be681
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x84]
mov esi, eax
call fcn.0051059e
mov eax, esi
mov esi, dword [esp + 0xc]
cmp al, 4
je 0x4be74d
jmp 0x4be9ad
mov ebx, dword [esp + 0x34]
lea ecx, [esp + 0x80]
mov esi, eax
call fcn.0044b48f
mov eax, esi
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 8]
cmp al, 4
je 0x4be9b9
cmp al, 4
jne 0x4beaca
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x30], edx
mov dword [esi + 0x38], eax
lea eax, [esi + 0x30]
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], eax
mov edx, dword [eax + 4]
lea edi, [esp + 0x80]
mov ecx, edi
push dword [ebp + 8]
call fcn.00511fdf
pop eax
mov eax, dword [edi]
cmp eax, 2
jne 0x4bea05
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
inc ecx
mov byte [eax], 3
mov al, 3
jmp 0x4bea4f
test eax, eax
je 0x4bea5c
mov eax, dword [esp + 0x88]
mov ebx, dword [esp + 0x84]
mov dword [esp], eax
lea ecx, [esi + 0x30]
call fcn.004b6dce
xor edi, edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov byte [eax], 1
call fcn.004be3ec
mov edx, dword [esp + 0x2c]
mov eax, dword [esp]
xor ecx, ecx
mov dword [edx + 4], edi
mov dword [edx + 0xc], eax
mov dword [edx + 8], ebx
mov dword [edx + 0x10], esi
mov esi, dword [esp + 0xc]
mov al, 1
mov dword [edx], ecx
mov byte [esi + 0x48], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esi + 0x30]
call fcn.005117af
lea ecx, [esp + 0x30]
mov eax, dword [eax]
mov dword [esp + 0x80], 4
and dword [ecx], 0
push edi
push ecx
push 0x1007
push 0xffff
push eax
call dword [sym.imp.ws2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x4beabd
mov eax, dword [esp + 0x30]
xor ebx, ebx
test eax, eax
mov dword [esp], eax
sete bl
shl ebx, 2
test ebx, ebx
je 0x4bea1a
mov eax, dword [esi + 0x38]
mov edi, dword [esi + 0x30]
mov ebx, dword [esi + 0x34]
mov esi, dword [esi + 0x3c]
mov dword [esp], eax
jmp 0x4bea24
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ebx, ebx
jmp 0x4bea17
mov dword [esp], ebx
mov ebx, eax
and ebx, 0xffffff00
jmp 0x4be681
ud2
push 0x23
pop edx
mov ecx, str._async_fn__resumed_after_completionunable_to_find_any_user_specified_roots_in_the_final_cert_chainC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_util_0.7.10_srcutilpoll_buf.rs
push 0x620e54
call fcn.0059ef30
push 0x23
pop edx
mov ecx, str._async_fn__resumed_after_completionunable_to_find_any_user_specified_roots_in_the_final_cert_chainC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_util_0.7.10_srcutilpoll_buf.rs
push 0x620e64
call fcn.0059ef30
lea eax, [esp + 0x80]
add edi, 0x14
lea edx, [esp + 0x58]
and dword [eax], 0
mov ecx, edi
push eax
call fcn.005a4ebd
lea ecx, [esp + 0x54]
lea eax, [esp + 0x58]
mov dword [eax], ecx
lea ecx, [esp + 0x10]
mov dword [eax + 4], 0x44a399
mov dword [eax + 8], ecx
push 2
pop edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x88], edx
push 0x20
pop ecx
mov dword [esp + 0x90], ecx
and dword [esp + 0x94], 0
push 4
pop esi
mov bl, 3
mov dword [esp + 0x98], esi
mov dword [eax + 0xc], 0x44aa17
mov byte [esp + 0x9c], bl
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], 1
mov dword [esp + 0xb8], esi
lea ecx, [esp + 0x30]
lea esi, [esp + 0x80]
mov byte [esp + 0xbc], bl
mov dword [ecx], 0x5cd8b8
mov dword [ecx + 4], edx
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], edx
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov edx, 0x5cd8c8
call fcn.0059ede0