Function at 0x5702db
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 + 0x4c]
mov ebx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x30], ecx
test eax, eax
je 0x57032c
cmp eax, 3
jne 0x570b34
lea eax, [ebx + 0x48]
lea edx, [ebx + 0x28]
mov dword [esp + 0x10], eax
movzx eax, byte [ebx + 0x48]
mov dword [esp + 0x2c], edx
test eax, eax
je 0x57039a
cmp eax, 3
jne 0x570b48
mov eax, dword [ebx + 0x44]
jmp 0x5709c6
mov esi, dword [ebx + 0x20]
mov dword [ebx + 0x24], esi
movzx eax, word [ebx + 0x12]
cmp word [ebx], 0
mov word [esp + 0x78], ax
movsd xmm0, qword [ebx + 2]
movsd xmm1, qword [ebx + 0xa]
movsd qword [esp + 0x70], xmm1
movsd qword [esp + 0x68], xmm0
je 0x5703a5
mov eax, dword [ebx + 0x14]
lea edx, [esp + 0x9c]
mov ecx, 0x19
movups xmm0, xmmword [esp + 0x6a]
mov edi, edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
movzx ebx, word [ebx + 0x1c]
mov dword [esp + 0x10], eax
xor eax, eax
rol bx, 8
rep stosd dword es:[edi], eax
movups xmmword [edx - 0x14], xmm0
mov cx, 0x17
mov eax, dword [esp + 0x10]
mov dword [edx - 4], eax
mov eax, 0x1c
jmp 0x5703cf
mov esi, dword [ebx + 0x28]
mov edi, dword [ebx + 0x2c]
jmp 0x57044b
mov eax, dword [esp + 0x68]
movzx ebx, word [esp + 0x6c]
lea edi, [esp + 0x88]
mov ecx, 0x1e
mov dword [esp + 4], eax
xor eax, eax
rol bx, 8
rep stosd dword es:[edi], eax
mov eax, 0x10
mov cx, 2
lea edx, [esp + 0x80]
mov word [edx], cx
mov word [edx + 2], bx
mov ebx, dword [esp + 4]
mov dword [edx + 4], ebx
mov dword [edx + 0x80], eax
push eax
push edx
push esi
call dword [sym.imp.ws2_32.dll_connect]
mov edi, dword [esp + 0xc]
test eax, eax
je 0x57042a
call dword [sym.imp.kernel32.dll_GetLastError]
lea esi, [esp + 0x3c]
mov dword [esp + 4], eax
mov ecx, esi
mov dword [esi + 4], eax
mov dword [esi], 0
call fcn.004ba6c0
cmp al, 0xd
jne 0x57070d
push esi
call fcn.0054fbe4
add esp, 4
mov esi, dword [edi + 0x24]
lea eax, [edi + 0x28]
mov dword [esp + 0x2c], eax
lea eax, [edi + 0x48]
mov dword [esp + 0x10], eax
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], 0
mov byte [edi + 0x48], 0
xor edi, edi
mov ecx, 0x7c92f4
call fcn.00607c2a
mov ebx, edx
lea ecx, [edx + 0x10]
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], edx
add ebx, 0x70
test eax, eax
cmovne ebx, ecx
cmp dword [ebx + 0x50], 0
je 0x570b1b
add ebx, 8
mov cl, 1
xor eax, eax
lock cmpxchg byte [ebx + 0x58], cl
lea esi, [ebx + 0x58]
jne 0x5707f8
cmp byte [ebx + 0x70], 0
mov dword [esp + 4], esi
je 0x5704cb
lea esi, [esp + 0x3c]
mov edx, 0x27
mov ecx, esi
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.005a27a2
add esp, 8
cmp byte [esi], 4
jne 0x570571
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 4]
jmp 0x570587
xor eax, eax
mov ecx, 0x80
mov edx, 0x40
mov dword [esp + 0xbc], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xc1], eax
mov dword [esp + 0xbd], eax
mov al, byte [0x803894]
call fcn.004889b0
test eax, eax
je 0x570b5c
xor ecx, ecx
mov edx, eax
lea edi, [eax + 8]
inc ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
lea eax, [esp + 0x80]
mov ecx, 0x12
mov esi, eax
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov dword [edx + 0x50], ecx
mov dword [edx + 0x54], ecx
mov dword [edx + 0x58], ecx
mov dword [edx + 0x60], ecx
lock inc dword [edx]
jle 0x570b17
mov esi, edx
mov edi, edx
add esi, 0x40
mov dword [esp + 0x58], esi
mov edx, dword [ebx + 0x68]
cmp edx, esi
je 0x570b6b
mov ecx, dword [esp + 4]
test edx, edx
mov dword [edi + 0x44], edx
mov dword [edi + 0x40], 0
je 0x570563
mov dword [edx], esi
mov dword [ebx + 0x68], esi
cmp dword [ebx + 0x6c], 0
jne 0x570587
mov dword [ebx + 0x6c], esi
jmp 0x570587
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 4]
cmp al, 4
jne 0x570728
mov edi, edx
xor edx, edx
mov al, 1
lock cmpxchg byte [ecx], dl
jne 0x57096a
cmp dword [esp + 0x1c], 0
mov ecx, 0xc01
je 0x5705be
lock dec dword [edi]
jne 0x5705b5
mov ebx, ecx
mov ecx, edi
mov esi, edx
call fcn.00602c4f
mov ecx, ebx
mov edx, esi
mov ebx, dword [esp + 0xc]
jmp 0x57073e
mov esi, dword [ebx + 0x48]
mov dword [esp + 8], edi
mov edi, dword [esp + 0x18]
lea eax, [esi + 0xc]
lea ebx, [esi + 0x10]
mov dword [esp + 4], eax
mov dword [esp + 0x54], eax
push ebx
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x803890]
test eax, 0x7fffffff
jne 0x570af1
xor eax, eax
mov cl, byte [esi + 0x14]
test cl, cl
jne 0x570b8a
mov dword [esp + 0x20], ebx
mov byte [esp + 0x24], al
lea ebx, [esi + 0x18]
mov dword [esp + 0x14], esi
mov eax, dword [esi + 0x20]
test eax, eax
je 0x57061e
mov ecx, dword [ebx]
mov eax, dword [ecx + eax*4 - 4]
mov eax, dword [eax]
cmp eax, 0x20
jbe 0x57064f
mov eax, dword [esp + 4]
lea ecx, [esp + 0x80]
mov edx, dword [eax]
push ebx
call fcn.004e31f6
add esp, 4
lea eax, [esp + 0x80]
cmp byte [eax], 4
je 0x57064f
mov eax, dword [esp + 0x80]
cmp al, 4
jne 0x570804
mov eax, dword [esi + 0x20]
test eax, eax
je 0x570bb0
mov ecx, dword [ebx]
mov eax, dword [ecx + eax*4 - 4]
mov dword [esp + 4], eax
lock inc dword [eax]
jle 0x570b17
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
call fcn.005aa9d0
lea esi, [esp + 0x58]
mov edx, edi
mov ecx, esi
push 0x48000022
call fcn.004e3378
add esp, 4
cmp dword [esi], 0
je 0x570774
mov esi, 0xfffffff4
lea ecx, [esp + 0x3c]
mov edx, edi
push dword [esi + 0x7662b0]
call fcn.004e3378
add esp, 4
cmp dword [esp + 0x3c], 0
jne 0x5706c6
mov ebx, dword [esp + 0x40]
mov eax, edi
cmp ebx, edi
jne 0x570778
add esi, 4
jne 0x57069d
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 4]
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], eax
lock dec dword [ecx]
jne 0x5706ef
call fcn.004e1b06
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0xc]
mov dword [esp + 4], eax
movzx eax, cl
jmp 0x570830
mov dword [esp + 8], 0
push dword [edi + 0x24]
call dword [sym.imp.ws2_32.dll_closesocket]
mov esi, 2
jmp 0x570a32
mov edi, eax
xor ebx, ebx
mov al, 1
lock cmpxchg byte [ecx], bl
jne 0x570b09
mov ebx, dword [esp + 0xc]
mov ecx, edi
cmp cl, 4
jne 0x57074a
mov edi, edx
jmp 0x5709a1
mov dword [esp + 8], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 4], edx
lea esi, [esp + 0x1c]
call fcn.005eec5d
mov ecx, esi
call fcn.006072e3
push dword [esi - 4]
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x570a1d
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x80]
mov al, byte [0x803894]
mov ecx, 0x60
mov edx, 8
call fcn.004889b0
test eax, eax
je 0x570c66
mov edx, dword [esp + 4]
xor ecx, ecx
mov edi, dword [esp + 8]
inc ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [eax + 8], ecx
mov byte [eax + 0xc], 0
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], esi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], ebx
mov ebx, dword [esp + 0xc]
mov edx, eax
mov dword [eax + 0x54], ecx
mov dword [eax + 0x50], ecx
mov word [eax + 0x58], 0
jmp 0x570841
mov ecx, esi
call fcn.0065481c
jmp 0x570491
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x20]
call fcn.005aa9d0
mov ecx, ebx
mov ebx, dword [esp + 0xc]
movzx eax, cl
cmp eax, 4
je 0x57067a
mov edi, dword [esp + 8]
mov edx, dword [esp + 4]
cmp eax, 4
jne 0x570990
lea eax, [edx + 8]
mov dword [esp + 4], edx
mov dword [esp + 0x28], eax
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x803890]
test eax, 0x7fffffff
jne 0x570afd
xor eax, eax
mov esi, dword [esp + 4]
mov cl, byte [esi + 0xc]
test cl, cl
jne 0x570c37
mov ecx, dword [esp + 0x28]
movzx edx, al
add edi, 0x40
mov dword [esi + 0x50], 0x19d
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], edi
call fcn.005aa9d0
mov eax, dword [esp + 0x14]
lock inc dword [eax]
jle 0x570b17
lock inc dword [esi]
jle 0x570b17
mov edx, esi
mov esi, dword [esp + 0x14]
lea ecx, [esi + 8]
mov dword [esp + 0x80], esi
mov dword [esp + 0x88], edi
mov byte [esp + 0x8c], 3
mov dword [esp + 0x84], edx
mov edi, ecx
call fcn.004e3105
mov al, byte [esi + 0x3c]
test al, al
je 0x5708f8
lea esi, [esp + 0x3c]
mov edx, edi
mov ecx, esi
call fcn.004e29f1
cmp byte [esi], 4
je 0x5708f8
mov eax, dword [esp + 0x3c]
cmp al, 4
jne 0x570976
mov edi, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
test edi, edi
je 0x57098c
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], edx
mov ebx, ecx
mov ecx, 0x10
mov edx, 4
mov dword [esp + 0x14], eax
mov al, byte [0x803894]
call fcn.004889b0
test eax, eax
je 0x570c8b
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x1c]
call fcn.004e33ef
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 8]
mov dword [esp + 0x1c], esi
jmp 0x5709a1
call fcn.006545f5
xor edx, edx
jmp 0x570595
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0x80]
mov edi, eax
call fcn.004e33bf
mov ecx, edi
mov edx, esi
mov edi, dword [esp + 8]
cmp cl, 4
je 0x5709a1
movzx eax, cl
cmp eax, 4
jne 0x570ae4
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov dword [ebx + 0x30], eax
lea eax, [ebx + 0x30]
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x40], esi
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x44], eax
mov edx, dword [eax + 8]
lea esi, [esp + 0x80]
mov ecx, esi
push 1
push dword [ebp + 8]
call fcn.00608958
add esp, 8
mov eax, dword [esi]
cmp eax, 2
jne 0x5709fb
mov eax, dword [esp + 0x10]
mov byte [eax], 3
mov eax, dword [esp + 0x30]
mov dword [eax], 3
mov al, 3
jmp 0x570a4e
test eax, eax
je 0x570a5d
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x88]
mov dword [esp + 8], ecx
lea ecx, [ebx + 0x30]
mov dword [esp + 4], eax
call fcn.005684f3
mov eax, dword [esp + 0x10]
mov esi, 2
mov byte [eax], 1
mov ecx, dword [esp + 0x2c]
call fcn.005702c1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov al, 1
mov ecx, dword [esp + 0xc]
mov byte [ecx + 0x4c], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0x3c]
cmp eax, 0xffffffff
je 0x570c72
lea ecx, [esp + 0x3c]
mov dword [esp + 0x80], 4
mov dword [ecx], 0
push esi
push ecx
push 0x1007
push 0xffff
push eax
call dword [sym.imp.ws2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x570ad7
mov eax, dword [esp + 0x3c]
xor ecx, ecx
test eax, eax
sete cl
shl ecx, 2
test ecx, ecx
je 0x570a0d
mov esi, dword [ebx + 0x30]
mov ecx, ebx
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x38]
mov ebx, dword [ebx + 0x40]
mov edi, dword [ecx + 0x3c]
mov byte [ecx + 0x48], 1
cmp esi, 3
mov dword [esp + 8], eax
mov dword [esp + 4], edx
je 0x5709ed
jmp 0x570a29
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
jmp 0x570a0d
and ecx, 0xffffff00
or ecx, eax
jmp 0x5705a1
call fcn.0065a0d0
xor al, 1
jmp 0x5705f0
call fcn.0065a0d0
xor al, 1
jmp 0x570865
mov esi, edx
call fcn.006545f5
mov edx, esi
jmp 0x570738
ud2
mov ecx, str.A_Tokio_1.x_context_was_found__but_IO_is_disabled._Call__enable_io__on_the_runtime_builder_to_enable_IO.A_Tokio_1.x_context_was_found__but_timers_are_disabled._Call__enable_time__on_the_runtime_builder_to_enable_timers.Oh_no__We_never_placed_the_Core_back__this_is_a_bug_
mov edx, 0x68
push 0x7c92f4
call fcn.00652640
jmp 0x570c86
mov ecx, str._async_fn__resumed_after_completionunable_to_find_any_user_specified_roots_in_the_final_cert_chainC:UsersNop.cargo_registry_srcindex.crates.io_1cd66030c949c28d_tokio_util_0.7.10_srcutilpoll_buf.rs
mov edx, 0x23
push 0x7b829c
jmp 0x570c81
mov ecx, str._async_fn__resumed_after_completionunable_to_find_any_user_specified_roots_in_the_final_cert_chainC:UsersNop.cargo_registry_srcindex.crates.io_1cd66030c949c28d_tokio_util_0.7.10_srcutilpoll_buf.rs
mov edx, 0x23
push 0x7b82ac
jmp 0x570c81
mov ecx, 0x40
mov edx, 0x80
jmp 0x570c95
add ebx, 0x68
mov dword [esp + 0x80], 0
lea edx, [esp + 0x58]
mov ecx, ebx
push eax
call fcn.00660145
jmp 0x570c86
lea esi, [esp + 0x80]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
mov dword [esi], ebx
mov byte [esi + 4], al
push 0x7660c8
push 0x765cc8
push esi
jmp 0x570c5c
lea ecx, [esp + 0x54]
lea eax, [esp + 0x58]
mov edx, 2
lea esi, [esp + 0x80]
mov edi, 4
mov bl, 3
mov dword [eax], ecx
lea ecx, [esp + 0x20]
mov dword [eax + 4], 0x4e1f81
mov dword [esi], edx
mov dword [esi + 8], edx
mov dword [eax + 8], ecx
mov ecx, 0x20
mov dword [eax + 0xc], 0x4e2664
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], edi
mov byte [esi + 0x1c], bl
mov dword [esi + 0x20], edx
mov dword [esi + 0x28], edx
mov dword [esi + 0x30], ecx
lea ecx, [esp + 0x3c]
mov dword [esi + 0x34], 1
mov dword [esi + 0x38], edi
mov byte [esi + 0x3c], bl
mov dword [ecx], 0x766124
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, 0x766134
call fcn.00652150
ud2
mov ecx, dword [esp + 0x28]
lea edi, [esp + 0x80]
mov edx, 0x2b
mov dword [edi], ecx
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov byte [edi + 4], al
push 0x766274
push 0x765cb8
push edi
call fcn.006525c0
add esp, 0xc
ud2
mov ecx, 8
mov edx, 0x60
jmp 0x570c95
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_syncmpmclist.rs
mov edx, 0x2b
push 0x7c9240
call fcn.006522d0
add esp, 4
ud2
mov ecx, 4
mov edx, 0x10
call fcn.00651860
ud2