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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x250
mov ebx, edx
call 0x4a01b6
pop eax
mov dword [esp + 0x2c], eax
movzx eax, byte [edx + 0x254]
test eax, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], ecx
je 0x4a01f1
cmp eax, 3
jne 0x4a0214
lea eax, [ebx + 0x138]
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + 0x198]
mov eax, dword [eax*4 + 0x4a0bf4]
add eax, dword [esp + 0x2c]
jmp eax
mov eax, dword [ebx + 0x240]
mov ecx, dword [ebx + 0x244]
mov dword [ebx + 0x248], eax
mov dword [ebx + 0x24c], ecx
and dword [ebx], 0
mov dword [ebx + 0x250], eax
jmp 0x4a0226
push 0x23
pop edx
mov ecx, str._async_fn__resumed_after_completionunable_to_find_any_user_specified_roots_in_the_final_cert_chainpolling_StreamFuture_twicemain.rs_src_stream_streaminto_future.rs
push 0x540f3c
jmp 0x4a0bec
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 0xc]
je 0x4a0a9c
lea edx, [ecx + 0x20]
mov dword [eax + 8], edx
movzx edx, word [ecx]
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [esp + 0x12e], xmm0
movups xmm0, xmmword [ecx + 2]
movaps xmmword [esp + 0x120], xmm0
cmp dx, 2
je 0x4a0a9c
mov word [ebx + 0x10], dx
movaps xmm0, xmmword [esp + 0x120]
movups xmmword [ebx + 0x12], xmm0
movups xmm0, xmmword [esp + 0x12e]
movups xmmword [ebx + 0x20], xmm0
mov eax, dword [ebx + 0x248]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0xf8], ecx
mov word [esp + 0x20], dx
test dx, dx
push 2
pop ecx
push 0x17
pop esi
cmove esi, ecx
mov eax, dword [eax + 0x18]
mov dword [esp + 0xf4], eax
mov eax, dword [ebx + 0x24c]
mov dword [esp + 8], eax
mov eax, dword [0x57e9d8]
cmp eax, 3
jne 0x4a0acc
sub esp, 0x18
movaps xmm0, xmmword [0x50cc90]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x14], 0x81
call dword [sym.imp.ws2_32.dll_WSASocketW]
mov esi, eax
cmp eax, 0xffffffff
jne 0x4a0315
call sub.kernel32.dll_GetLastError
lea esi, [esp + 0x48]
mov ecx, esi
mov edx, str.tcp_open_errortcp_set_nonblocking_errortcp_bind_local_error
push eax
push 0
push 0xe
call fcn.0044162c
add esp, 0xc
mov esi, dword [esi]
test esi, esi
jne 0x4a0bce
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x10]
mov dword [eax], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x4a0338
mov byte [esp + 0x34], 4
jmp 0x4a0346
call sub.kernel32.dll_GetLastError
mov dword [esp + 0x38], eax
and dword [esp + 0x34], 0
mov dword [esp + 0xc], esi
lea esi, [esp + 0x48]
lea edx, [esp + 0x34]
mov ecx, esi
push 0x19
push 0x52999e
call fcn.0044182a
pop eax
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x4a0b15
mov eax, dword [esp + 8]
mov edi, dword [eax + 0x38]
cmp edi, 0x3b9aca00
je 0x4a0467
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x24], ecx
mov eax, dword [eax + 0x34]
mov dword [esp + 0xf0], eax
lea esi, [esp + 0x48]
mov ecx, esi
mov edx, dword [esp + 0xc]
push 1
push 8
call fcn.004c537e
pop eax
pop ecx
cmp byte [esi], 4
je 0x4a03b6
mov eax, dword [esp + 0x48]
cmp al, 4
jne 0x4a0457
mov ecx, 0x3e8
mov eax, dword [esp + 0x24]
mul ecx
mov ebx, edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xf0]
mul ecx
mov ecx, edx
mov esi, eax
add esi, ebx
adc ecx, 0
xor ebx, ebx
mov eax, edi
xor edx, edx
mov edi, 0xf4240
div edi
add eax, dword [esp + 0x24]
adc esi, 0
adc ecx, 0
setb dl
neg esi
movzx edx, dl
sbb ebx, ebx
or ebx, eax
xor eax, eax
dec eax
or edx, ecx
cmove eax, ebx
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], eax
and dword [esp + 0x50], 0
and dword [esp + 0x34], 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x60]
push eax
push 0x98000004
push dword [esp + 0x2c]
call dword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x4a0448
mov ebx, dword [esp + 0x18]
jmp 0x4a0463
call sub.kernel32.dll_GetLastError
mov edx, eax
xor eax, eax
mov ebx, dword [esp + 0x18]
jmp 0x4a045b
mov edx, dword [esp + 0x4c]
movzx ecx, al
call fcn.00441611
mov eax, dword [esp + 8]
cmp word [esp + 0x20], 0
je 0x4a04d5
cmp byte [eax + 0x46], 0
mov edi, dword [esp + 0xc]
je 0x4a052e
movups xmm0, xmmword [eax + 0x47]
movups xmmword [esp + 0x50], xmm0
mov dword [esp + 0x48], 0x17
and dword [esp + 0x4c], 0
xorps xmm0, xmm0
movups xmmword [esp + 0xb0], xmm0
movups xmmword [esp + 0xa0], xmm0
movups xmmword [esp + 0x90], xmm0
movups xmmword [esp + 0x80], xmm0
movups xmmword [esp + 0x70], xmm0
movups xmmword [esp + 0x60], xmm0
and dword [esp + 0xc0], 0
and dword [esp + 0xc4], 0
jmp 0x4a057d
cmp byte [eax + 0x41], 0
mov edi, dword [esp + 0xc]
je 0x4a058a
mov eax, dword [eax + 0x42]
xorps xmm0, xmm0
movups xmmword [esp + 0xb8], xmm0
movups xmmword [esp + 0xa8], xmm0
movups xmmword [esp + 0x98], xmm0
movups xmmword [esp + 0x88], xmm0
movups xmmword [esp + 0x78], xmm0
movups xmmword [esp + 0x68], xmm0
movups xmmword [esp + 0x58], xmm0
mov dword [esp + 0x48], 2
mov dword [esp + 0x4c], eax
movlps qword [esp + 0x50], xmm0
jmp 0x4a05d7
xorps xmm0, xmm0
movups xmmword [esp + 0x50], xmm0
mov dword [esp + 0x48], 0x17
and dword [esp + 0x4c], 0
movups xmmword [esp + 0x60], xmm0
movups xmmword [esp + 0x70], xmm0
movups xmmword [esp + 0x80], xmm0
movups xmmword [esp + 0x90], xmm0
movups xmmword [esp + 0xa0], xmm0
movups xmmword [esp + 0xb0], xmm0
and dword [esp + 0xc4], 0
and dword [esp + 0xc0], 0
mov dword [esp + 0xc8], 0x1c
jmp 0x4a05e2
xorps xmm0, xmm0
movups xmmword [esp + 0xb8], xmm0
movups xmmword [esp + 0xa8], xmm0
movups xmmword [esp + 0x98], xmm0
movups xmmword [esp + 0x88], xmm0
movups xmmword [esp + 0x78], xmm0
movups xmmword [esp + 0x68], xmm0
movups xmmword [esp + 0x58], xmm0
mov word [esp + 0x48], 2
and dword [esp + 0x4e], 0
and dword [esp + 0x4a], 0
and dword [esp + 0x54], 0
and dword [esp + 0x50], 0
mov dword [esp + 0xc8], 0x10
lea esi, [esp + 0x10]
mov ecx, esi
mov edx, edi
lea eax, [esp + 0x48]
push eax
call fcn.004c560e
pop eax
cmp byte [esi], 4
je 0x4a0602
mov eax, dword [esp + 0x10]
cmp al, 4
jne 0x4a0609
mov byte [esp + 0x10], 4
jmp 0x4a0615
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
lea esi, [esp + 0x34]
lea edx, [esp + 0x10]
mov ecx, esi
push 0x14
push 0x5299b7
call fcn.0044182a
pop eax
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x4a0b23
mov eax, dword [esp + 8]
cmp byte [eax + 0x58], 0
je 0x4a066a
lea esi, [esp + 0x48]
mov ecx, esi
mov edx, edi
push 1
push 4
call fcn.004c537e
pop eax
pop ecx
cmp byte [esi], 4
je 0x4a0666
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
call fcn.00441611
mov eax, dword [esp + 8]
cmp dword [eax], 0
je 0x4a069c
lea esi, [esp + 0x48]
mov ecx, esi
mov edx, edi
push dword [eax + 4]
push 0x1001
call fcn.004c537e
pop eax
pop ecx
cmp byte [esi], 4
je 0x4a0698
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
call fcn.00441611
mov eax, dword [esp + 8]
cmp dword [eax + 8], 0
je 0x4a06cb
lea esi, [esp + 0x48]
mov ecx, esi
mov edx, edi
push dword [eax + 0xc]
push 0x1002
call fcn.004c537e
pop eax
pop ecx
cmp byte [esi], 4
je 0x4a06cb
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
call fcn.00441611
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov esi, dword [ebx + 0x2c]
mov dword [esp + 0xe0], esi
movups xmm0, xmmword [ebx + 0x1c]
movaps xmmword [esp + 0xd0], xmm0
mov esi, dword [esp + 0xf8]
mov dword [ebx + 0x34], esi
mov esi, dword [esp + 0x1c]
mov dword [ebx + 0x30], esi
mov esi, dword [esp + 0xf4]
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x44], edx
movaps xmm0, xmmword [esp + 0xd0]
movups xmmword [ebx + 0x4c], xmm0
mov eax, dword [esp + 0xe0]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], edi
movups xmm0, xmmword [esp + 0x150]
movups xmm1, xmmword [esp + 0x160]
movups xmmword [ebx + 0x64], xmm0
movups xmmword [ebx + 0x74], xmm1
movsd xmm0, qword [esp + 0x170]
movsd qword [ebx + 0x84], xmm0
xor eax, eax
mov byte [ebx + 0x8c], al
movzx ecx, word [esp + 0x45]
mov word [ebx + 0x8d], cx
mov cl, byte [esp + 0x47]
mov byte [ebx + 0x8f], cl
lea esi, [ebx + 0x30]
mov byte [ebx + 0x90], al
lea eax, [ebx + 0x91]
lea ecx, [esp + 0x1a0]
push 0xa7
push ecx
push eax
call fcn.004f7e80
add esp, 0xc
lea eax, [ebx + 0x138]
push 0x108
push esi
mov dword [esp + 0x28], eax
push eax
call fcn.004f7e80
add esp, 0xc
movzx eax, byte [ebx + 0x198]
mov eax, dword [eax*4 + 0x4a0bf4]
add eax, dword [esp + 0x2c]
jmp eax
cmp dword [ebx], 0
je 0x4a0b74
movups xmm0, xmmword [ebx]
movaps xmmword [esp + 0x100], xmm0
jmp 0x4a0ba9
lea eax, [esp + 0x10]
mov byte [eax], 1
lea edi, [esp + 0x34]
mov dword [edi], eax
mov ecx, 0x57e9d8
xor edx, edx
push 0x5476dc
push 0x547650
push edi
call fcn.0050a280
add esp, 0xc
jmp 0x4a02c3
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
jmp 0x4a0b2f
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
push dword [esp + 0xc]
call dword [sym.imp.ws2_32.dll_closesocket]
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x18]
mov dword [eax + 0x3c], esi
mov dword [eax + 0x40], ebx
mov dword [eax + 0x44], edi
mov ebx, eax
mov dword [eax + 0x48], ecx
add eax, 0x3c
mov dword [ebx + 0x38], 0x3b9aca01
push 2
pop esi
movups xmm0, xmmword [eax]
movaps xmmword [esp + 0x100], xmm0
mov ecx, ebx
call fcn.004a0d6c
jmp 0x4a0bac
lea esi, [esp + 0x1a0]
push 7
pop edx
mov ecx, esi
push 0x13
push str.Network_unreachabletcp_connect_error_b
call fcn.004c53c3
pop eax
pop ecx
lea ecx, [esp + 0x100]
mov edx, 0x540f5f
push dword [esi + 4]
push dword [esi]
push 0x11
call fcn.0044162c
add esp, 0xc
push 2
pop esi
mov eax, dword [esp + 0x28]
mov dword [eax], esi
movaps xmm0, xmmword [esp + 0x100]
movups xmmword [eax + 4], xmm0
mov al, 1
mov byte [ebx + 0x254], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
jmp 0x4a0b41
call fcn.00506cd0
pop eax
ud2