Function at 0x56f59c
Capabilities:
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x218
call 0x56f5b0
pop eax
mov ebx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
movzx eax, byte [edx + 0x254]
test eax, eax
je 0x56f5f5
cmp eax, 3
jne 0x56f625
lea eax, [ebx + 0x138]
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 0x198]
mov eax, dword [eax*4 + 0x5700d8]
add eax, dword [esp + 0x38]
jmp eax
mov eax, dword [ebx + 0x240]
mov ecx, dword [ebx + 0x244]
xor edi, edi
mov dword [esp + 0xc], 0
mov dword [ebx + 0x248], eax
mov dword [ebx + 0x24c], ecx
mov dword [ebx], 0
mov dword [ebx + 0x250], eax
jmp 0x56f639
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 0x7b7eb0
jmp 0x5700cb
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 0xc]
je 0x56fedf
lea edx, [ecx + 0x20]
mov dword [eax + 8], edx
movsd xmm0, qword [ecx + 0x18]
movzx edx, word [ecx]
movsd qword [esp + 0x10e], xmm0
cmp dx, 2
movsd xmm0, qword [ecx + 0x12]
movsd qword [esp + 0x108], xmm0
movsd xmm0, qword [ecx + 0xa]
movsd qword [esp + 0x100], xmm0
movsd xmm0, qword [ecx + 2]
movsd qword [esp + 0xf8], xmm0
je 0x56fedd
mov word [ebx + 0x10], dx
mov word [esp + 4], dx
test dx, dx
mov edi, 2
movsd xmm0, qword [esp + 0xf8]
movsd xmm1, qword [esp + 0x100]
movsd qword [ebx + 0x12], xmm0
movsd qword [ebx + 0x1a], xmm1
movsd xmm0, qword [esp + 0x108]
movsd qword [ebx + 0x22], xmm0
movsd xmm0, qword [esp + 0x10e]
movsd qword [ebx + 0x28], xmm0
mov eax, dword [ebx + 0x248]
mov ecx, dword [ebx + 0x24c]
mov esi, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [esp], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x1c], eax
mov esi, 0x17
mov eax, dword [0x803244]
cmove esi, edi
cmp eax, 3
jne 0x56feaa
xor eax, eax
push 0x81
push eax
push eax
push 6
push 1
push esi
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x56fefe
mov edi, eax
lea eax, [esp + 0x70]
mov dword [eax], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x56ff48
mov eax, dword [esp]
mov dword [esp + 8], edi
mov esi, dword [eax + 0x38]
cmp esi, 0x3b9aca00
je 0x56f865
mov ecx, edi
mov edi, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x70], 1
mov dword [esp + 0x48], eax
push 4
lea eax, [esp + 0x74]
push eax
push 8
push 0xffff
push ecx
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x56f838
mov ecx, 0x3e8
mov eax, edi
mov dword [esp + 0x70], 1
mul ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x40], edx
mul ecx
mov edi, eax
xor eax, eax
mov ecx, edx
mov edx, 0x431bde83
add edi, dword [esp + 0x40]
adc ecx, eax
mov eax, esi
mov esi, 0
mul edx
mov eax, 0
shr edx, 0x12
add edx, dword [esp + 0x44]
adc edi, eax
adc ecx, eax
setb al
neg edi
sbb esi, esi
movzx eax, al
or esi, edx
xor edx, edx
dec edx
or eax, ecx
lea eax, [esp + 0x20]
cmove edx, esi
xor ecx, ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dword [eax], ecx
push ecx
push ecx
push eax
push ecx
push ecx
push 0xc
lea esi, [esp + 0x88]
push esi
push 0x98000004
mov edi, dword [esp + 0x28]
push edi
call dword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x56f862
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, eax
shl eax, 0x18
jmp 0x56f847
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, eax
shl eax, 0x18
lea esi, [esp + 0x70]
shr ecx, 8
shld ecx, eax, 8
shl eax, 8
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
push esi
call fcn.0054fbe4
add esp, 4
mov eax, dword [esp]
cmp word [esp + 4], 0
je 0x56f8a9
cmp byte [eax + 0x46], 0
je 0x56f90d
movups xmm0, xmmword [eax + 0x47]
lea edx, [esp + 0x8c]
xor esi, esi
xor eax, eax
mov ecx, 0x19
mov edi, edx
rep stosd dword es:[edi], eax
movups xmmword [edx - 0x14], xmm0
mov dword [edx - 4], esi
mov dword [edx - 0x1c], 0x17
mov dword [edx - 0x18], esi
mov dword [edx + 0x64], 0x1c
jmp 0x56f8d6
cmp byte [eax + 0x41], 0
je 0x56f952
mov esi, dword [eax + 0x42]
lea edx, [esp + 0x78]
xor eax, eax
mov ecx, 0x1e
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx - 8], 2
mov dword [edx - 4], esi
mov dword [edx + 0x78], 0x10
mov edi, dword [esp + 8]
lea esi, [esp + 0x20]
lea eax, [esp + 0x70]
mov ecx, esi
mov edx, edi
push eax
call fcn.005a2cb3
add esp, 4
cmp byte [esi], 4
je 0x56f9c6
mov eax, dword [esp + 0x20]
cmp al, 4
je 0x56f9c6
mov ecx, dword [esp + 0x24]
jmp 0x56fff0
lea edx, [esp + 0x8c]
xor esi, esi
xor eax, eax
mov ecx, 0x19
mov word [esp + 0x20], 0
mov edi, edx
mov dword [esp + 0x2e], esi
mov dword [esp + 0x2a], esi
mov dword [esp + 0x26], esi
mov dword [esp + 0x22], esi
rep stosd dword es:[edi], eax
mov eax, 0x1c
mov cx, 0x17
mov dword [edx - 8], esi
mov dword [edx - 0xc], esi
mov dword [edx - 0x10], esi
mov dword [edx - 0x14], esi
mov dword [edx - 4], esi
jmp 0x56f985
xor eax, eax
mov word [esp + 0x20], 0
lea edi, [esp + 0x78]
mov ecx, 0x1e
mov dword [esp + 0x22], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x26], eax
xor eax, eax
mov esi, dword [esp + 0x20]
rep stosd dword es:[edi], eax
mov eax, 0x10
mov cx, 2
mov edi, dword [esp + 8]
mov word [esp + 0x70], cx
mov word [esp + 0x72], 0
mov dword [esp + 0x74], esi
mov dword [esp + 0xf0], eax
lea esi, [esp + 0x50]
lea eax, [esp + 0x70]
mov ecx, esi
mov edx, edi
push eax
call fcn.005a2cb3
add esp, 4
cmp byte [esi], 4
je 0x56f9c6
mov eax, dword [esp + 0x50]
cmp al, 4
jne 0x56ffec
mov eax, dword [esp]
cmp byte [eax + 0x58], 0
je 0x56fa04
lea esi, [esp + 0x20]
mov edx, edi
mov ecx, esi
push 1
push 4
call fcn.005a285b
add esp, 8
cmp byte [esi], 4
je 0x56fa01
movsd xmm0, qword [esp + 0x20]
lea eax, [esp + 0x70]
movsd qword [esp + 0x70], xmm0
push eax
call fcn.0054fbe4
add esp, 4
mov eax, dword [esp]
cmp dword [eax], 0
je 0x56fa42
lea esi, [esp + 0x20]
mov edx, edi
mov ecx, esi
push dword [eax + 4]
push 0x1001
call fcn.005a285b
add esp, 8
cmp byte [esi], 4
je 0x56fa3f
movsd xmm0, qword [esp + 0x20]
lea eax, [esp + 0x70]
movsd qword [esp + 0x70], xmm0
push eax
call fcn.0054fbe4
add esp, 4
mov eax, dword [esp]
cmp dword [eax + 8], 0
je 0x56fa7e
lea esi, [esp + 0x20]
mov edx, edi
mov ecx, esi
push dword [eax + 0xc]
push 0x1002
call fcn.005a285b
add esp, 8
cmp byte [esi], 4
je 0x56fa7e
movsd xmm0, qword [esp + 0x20]
lea eax, [esp + 0x70]
movsd qword [esp + 0x70], xmm0
push eax
call fcn.0054fbe4
add esp, 4
movsd xmm0, qword [ebx + 0x24]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x18]
movsd qword [esp + 0x60], xmm0
movsd xmm0, qword [ebx + 0x1c]
movsd qword [esp + 0x58], xmm0
mov esi, dword [ebx + 0x2c]
mov dword [esp + 0x68], esi
mov esi, dword [esp + 0x4c]
mov dword [ebx + 0x34], esi
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x30], esi
mov esi, dword [esp + 0x1c]
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x48], edx
lea esi, [esp + 0x1c4]
mov ecx, 0xa
movsd xmm0, qword [esp + 0x58]
movsd xmm1, qword [esp + 0x60]
movsd qword [ebx + 0x4c], xmm0
movsd qword [ebx + 0x54], xmm1
mov eax, dword [esp + 0x68]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], edi
lea edi, [ebx + 0x64]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebx + 0x8c], al
lea esi, [ebx + 0x30]
movzx ecx, word [esp + 0x3d]
mov word [ebx + 0x8d], cx
mov cl, byte [esp + 0x3f]
mov byte [ebx + 0x8f], cl
mov byte [ebx + 0x90], al
lea eax, [ebx + 0x91]
lea ecx, [esp + 0x118]
push 0xa7
push ecx
push eax
call fcn.0064a810
add esp, 0xc
lea eax, [ebx + 0x138]
push pe_nt_image_headers32
push esi
mov dword [esp + 0x24], eax
push eax
call fcn.0064a810
add esp, 0xc
movzx eax, byte [ebx + 0x198]
mov eax, dword [eax*4 + 0x5700d8]
add eax, dword [esp + 0x38]
jmp eax
lea eax, [esp + 0x20]
lea edi, [esp + 0x70]
mov ecx, 0x803244
xor edx, edx
mov byte [eax], 1
mov dword [edi], eax
push 0x7bf0dc
push 0x7bf064
push edi
call fcn.00659910
add esp, 0xc
jmp 0x56f713
mov edi, dword [ebx]
test edi, edi
je 0x56ff78
mov ecx, dword [ebx + 0xc]
mov esi, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov edx, 2
mov dword [esp + 0xc], ecx
jmp 0x570096
call dword [sym.imp.kernel32.dll_GetLastError]
lea esi, [esp + 0x70]
mov ecx, 0xe
mov dword [esi + 4], eax
mov dword [esi], 0
call fcn.0059c336
mov ecx, esi
mov edi, eax
mov dword [eax], 0x20706374
mov dword [eax + 4], 0x6e65706f
mov dword [eax + 8], 0x72726520
mov word [eax + 0xc], 0x726f
mov esi, 0xe
call fcn.004caf35
jmp 0x570050
call dword [sym.imp.kernel32.dll_GetLastError]
lea esi, [esp + 0x70]
mov ecx, 0x19
mov dword [esp], 0x19
mov dword [esi + 4], eax
mov dword [esi], 0
call fcn.0059c336
push 0x19
push str.tcp_set_nonblocking_errortcp_bind_local_error
jmp 0x570026
lea esi, [esp + 0x118]
mov edx, 7
mov ecx, esi
push 0x13
push str.Network_unreachabletcp_connect_error
call fcn.005a27a2
add esp, 8
mov ecx, 0x11
call fcn.0059c336
mov edi, eax
push 0x11
push 0x7b7ed3
push eax
call fcn.0064a810
add esp, 0xc
mov ecx, esi
mov esi, 0x11
call fcn.004caf35
mov edx, 2
mov dword [esp + 0xc], 0x7516ac
jmp 0x570096
mov ecx, dword [esp + 0x54]
mov edx, eax
movzx eax, al
lea esi, [esp + 0x70]
mov dword [esp], 0x14
shrd edx, ecx, 8
shr ecx, 8
shld ecx, edx, 8
shl edx, 8
or eax, edx
mov dword [esi + 4], ecx
mov ecx, 0x14
mov dword [esi], eax
call fcn.0059c336
push 0x14
push 0x752ed5
mov dword [esp + 0xc], eax
push eax
call fcn.0064a810
add esp, 0xc
mov ecx, esi
call fcn.004caf35
mov dword [esp + 0x18], eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
mov edi, dword [esp + 4]
mov esi, dword [esp]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x3c], edi
mov dword [ebx + 0x40], esi
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], 0x7516ac
mov dword [esp + 0xc], 0x7516ac
mov dword [ebx + 0x38], 0x3b9aca01
mov edx, 2
cmp dword [ebx], 0
je 0x570096
push ebx
mov dword [esp + 4], esi
mov dword [esp + 0x1c], eax
mov esi, edx
call fcn.0056e079
mov edx, esi
mov esi, dword [esp + 4]
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword [ecx], edx
mov dword [ecx + 4], edi
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [ecx + 0x10], eax
mov al, 1
mov byte [ebx + 0x254], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.006522d0
add esp, 4
ud2