Function at 0x474e74
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, 0x248
call 0x474e88
pop eax
mov ebx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
movzx eax, byte [edx + 0x254]
test eax, eax
je 0x474ec5
cmp eax, 3
jne 0x474eec
lea eax, [ebx + 0x138]
mov dword [esp + 0x10], eax
movzx eax, byte [ebx + 0x198]
mov eax, dword [eax*4 + 0x47594c]
add eax, dword [esp + 0x44]
jmp eax
mov eax, dword [ebx + 0x24c]
mov ecx, dword [ebx + 0x250]
mov dword [ebx + 0x240], eax
mov dword [ebx + 0x244], ecx
and dword [ebx + 0x28], 0
mov dword [ebx + 0x248], eax
jmp 0x475163
push 0x23
pop edx
mov ecx, str._async_fn__resumed_after_completionunable_to_find_any_user_specified_roots_in_the_final_cert_chain.cargo_registry_srcindex.crates.io_1cd66030c949c28d_tokio_util_0.7.10_srcutilpoll_buf.rs
push 0x53c5cc
jmp 0x475040
call fcn.0050d590
pop eax
ud2
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x475430
lea edx, [ecx + 0x20]
mov dword [eax + 4], edx
movsd xmm0, qword [ecx + 0x18]
movzx eax, word [ecx]
movsd qword [esp + 0x13e], xmm0
cmp ax, 2
movsd xmm0, qword [ecx + 0x12]
movsd qword [esp + 0x138], xmm0
movsd xmm0, qword [ecx + 0xa]
movsd qword [esp + 0x130], xmm0
movsd xmm0, qword [ecx + 2]
movsd qword [esp + 0x128], xmm0
je 0x475430
mov word [ebx], ax
mov dword [esp + 0x48], esi
test ax, ax
movsd xmm0, qword [esp + 0x128]
movsd xmm1, qword [esp + 0x130]
movsd qword [ebx + 2], xmm0
movsd qword [ebx + 0xa], xmm1
movsd xmm0, qword [esp + 0x138]
movsd qword [ebx + 0x12], xmm0
movsd xmm0, qword [esp + 0x13e]
movsd qword [ebx + 0x18], xmm0
mov ecx, dword [ebx + 0x240]
mov edx, dword [ebx + 0x244]
mov esi, dword [ecx + 0x10]
mov dword [esp + 4], edx
mov dword [esp + 0x10], esi
push 2
pop eax
push 0x17
pop esi
cmove esi, eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x70], eax
mov eax, dword [0x58ba44]
cmp eax, 3
jne 0x475488
push 0x81
push 0
push 0
push 6
push 1
push esi
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
jne 0x4752a1
lea esi, [esp + 0x1c]
mov ecx, esi
call fcn.004c089f
cmp byte [esi], 4
jne 0x475266
mov eax, dword [esp + 0x20]
jmp 0x4752a1
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
cmp cl, 4
je 0x4752a1
cmp cl, 4
je 0x4752a1
mov edi, ecx
lea esi, [esp + 0xa0]
mov edx, str.tcp_open_errortcp_set_nonblocking_errortcp_bind_local_error
mov ecx, esi
push eax
push edi
push 0xe
call fcn.00437b50
add esp, 0xc
mov edi, dword [esi + 8]
mov eax, dword [esi]
test edi, edi
jne 0x475934
lea ecx, [esp + 0x78]
mov dword [esp + 8], eax
mov dword [ecx], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x4752d6
lea esi, [esp + 0x1c]
mov ecx, esi
call fcn.004c089f
mov eax, dword [esi]
cmp al, 4
jne 0x475412
mov byte [esp + 0x1c], 4
lea edi, [esp + 0xa0]
lea esi, [esp + 0x1c]
mov ecx, edi
mov edx, esi
push 0x19
push 0x52985a
call fcn.00437d73
pop eax
pop ecx
mov edi, dword [edi + 8]
test edi, edi
jne 0x475855
mov ecx, dword [esp + 4]
mov edi, dword [ecx + 0x28]
cmp edi, 0x3b9aca00
je 0x4754f0
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x68], eax
push 4
push esi
push 8
push 0xffff
push dword [esp + 0x18]
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x475360
lea esi, [esp + 0xa0]
mov ecx, esi
call fcn.004c089f
mov eax, dword [esi]
cmp al, 4
je 0x475360
cmp al, 4
jne 0x4754b4
mov eax, dword [esp + 0x3c]
mov ecx, 0x3e8
mul ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x68]
mov ebx, edx
mul ecx
mov esi, eax
mov ecx, edx
mov eax, edi
mov edi, 0xf4240
add esi, ebx
adc ecx, 0
xor edx, edx
xor ebx, ebx
div edi
mov dword [esp + 0xa0], 1
add eax, dword [esp + 0x3c]
adc esi, 0
adc ecx, 0
setb dl
neg esi
sbb ebx, ebx
movzx edx, dl
or ebx, eax
xor eax, eax
dec eax
or edx, ecx
cmove eax, ebx
and dword [esp + 0x78], 0
mov dword [esp + 0xa4], eax
and dword [esp + 0xa8], 0
push 0
push 0
lea eax, [esp + 0x80]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0xb8]
push eax
push 0x98000004
push dword [esp + 0x28]
call dword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x475409
lea esi, [esp + 0x1c]
mov ecx, esi
call fcn.004c089f
mov eax, dword [esi]
cmp al, 4
jne 0x475423
mov ebx, dword [esp + 0xc]
jmp 0x4754ec
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jmp 0x4752db
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0xc]
jmp 0x4754bb
cmp dword [ebx + 0x28], 0
je 0x4758fd
movsd xmm0, qword [ebx + 0x20]
movsd xmm1, qword [ebx + 0x28]
xor esi, esi
inc esi
movsd qword [esp + 0x58], xmm1
movsd qword [esp + 0x50], xmm0
jmp 0x4758ca
lea eax, [esp + 0x14]
lea edi, [esp + 0x78]
mov ecx, 0x58ba44
xor edx, edx
mov byte [eax], 1
mov dword [edi], eax
push 0x556244
push 0x55617c
push edi
call fcn.0050f4d0
add esp, 0xc
jmp 0x475238
mov ecx, dword [esp + 0xa4]
mov edx, eax
shrd edx, ecx, 8
shr ecx, 8
shld ecx, edx, 8
shl edx, 8
movzx eax, al
or eax, edx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa0], eax
lea eax, [esp + 0xa0]
push eax
call fcn.00442ab5
pop eax
mov ecx, dword [esp + 4]
cmp word [ebx], 0
je 0x47552f
xor eax, eax
mov edi, dword [esp + 8]
inc eax
cmp byte [ecx + 0x46], 0
je 0x475550
movsd xmm0, qword [ecx + 0x47]
movsd xmm1, qword [ecx + 0x4f]
lea edx, [esp + 0x1c]
movsd qword [edx + 0xc], xmm1
movsd qword [edx + 4], xmm0
and dword [edx + 0x14], 0
and dword [edx + 0x18], 0
and word [edx + 0x1c], 0
mov word [edx], 1
jmp 0x475579
xor eax, eax
cmp byte [ecx + 0x41], 0
mov edi, dword [esp + 8]
je 0x475550
mov eax, dword [ecx + 0x42]
lea edx, [esp + 0x1c]
mov dword [edx + 2], eax
and word [edx + 6], 0
and word [edx], 0
jmp 0x475579
lea edx, [esp + 0x1c]
mov word [edx], ax
and dword [edx + 2], 0
and dword [edx + 6], 0
and dword [edx + 0xa], 0
and dword [edx + 0xe], 0
and word [edx + 0x12], 0
and dword [edx + 0x14], 0
and dword [edx + 0x18], 0
and word [edx + 0x1c], 0
lea ecx, [esp + 0xa0]
call fcn.004c2e21
lea esi, [esp + 0x14]
lea eax, [esp + 0xa0]
mov edx, edi
mov ecx, esi
push eax
call fcn.004c32b1
pop eax
cmp byte [esi], 4
je 0x4755a8
mov eax, dword [esp + 0x14]
cmp al, 4
jne 0x4755af
mov byte [esp + 0x1c], 4
jmp 0x4755bb
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
lea esi, [esp + 0x78]
lea edx, [esp + 0x1c]
mov ecx, esi
push 0x14
push 0x529873
call fcn.00437d73
pop eax
pop ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x47586c
mov eax, dword [esp + 4]
mov edi, dword [esp + 8]
cmp byte [eax + 0x58], 0
je 0x475625
lea esi, [esp + 0x1c]
mov edx, edi
mov ecx, esi
push 1
push 4
call fcn.004c32f1
pop eax
pop ecx
cmp byte [esi], 4
je 0x475621
movsd xmm0, qword [esp + 0x1c]
lea eax, [esp + 0xa0]
movsd qword [esp + 0xa0], xmm0
push eax
call fcn.00442ab5
pop eax
mov eax, dword [esp + 4]
cmp dword [eax + 0x30], 0
je 0x475668
lea esi, [esp + 0x1c]
mov edx, edi
mov ecx, esi
push dword [eax + 0x34]
push 0x1001
call fcn.004c32f1
pop eax
pop ecx
cmp byte [esi], 4
je 0x475664
movsd xmm0, qword [esp + 0x1c]
lea eax, [esp + 0xa0]
movsd qword [esp + 0xa0], xmm0
push eax
call fcn.00442ab5
pop eax
mov eax, dword [esp + 4]
cmp dword [eax + 0x38], 0
je 0x4756a7
lea esi, [esp + 0x1c]
mov edx, edi
mov ecx, esi
push dword [eax + 0x3c]
push 0x1002
call fcn.004c32f1
pop eax
pop ecx
cmp byte [esi], 4
je 0x4756a7
movsd xmm0, qword [esp + 0x1c]
lea eax, [esp + 0xa0]
movsd qword [esp + 0xa0], xmm0
push eax
call fcn.00442ab5
pop eax
movsd xmm0, qword [ebx + 0x18]
lea esi, [esp + 0x1f0]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
movsd qword [esi + 8], xmm0
movsd xmm0, qword [ebx + 0x10]
movsd qword [esi], xmm0
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edi
lea edi, [ebx + 0x40]
push 0xe
pop ecx
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x30]
mov eax, dword [esp + 8]
mov dword [ebx + 0x78], eax
xor eax, eax
mov byte [ebx + 0x7c], al
movzx ecx, word [esp + 0x4d]
mov word [ebx + 0x7d], cx
mov cl, byte [esp + 0x4f]
mov byte [ebx + 0x7f], cl
mov ecx, dword [esp + 0x6c]
mov dword [ebx + 0x84], ecx
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x80], ecx
mov ecx, dword [esp + 0x70]
mov dword [ebx + 0x88], ecx
mov byte [ebx + 0x90], al
lea eax, [ebx + 0x91]
lea ecx, [esp + 0x148]
push 0xa7
push ecx
push eax
call fcn.005010b0
add esp, 0xc
lea eax, [ebx + 0x138]
push 0x108
push esi
mov dword [esp + 0x18], eax
push eax
call fcn.005010b0
add esp, 0xc
movzx eax, byte [ebx + 0x198]
mov eax, dword [eax*4 + 0x47594c]
add eax, dword [esp + 0x44]
jmp eax
mov esi, dword [esp + 0xa0]
mov ebx, dword [esp + 0xa4]
mov eax, dword [esp + 0xac]
jmp 0x47587b
mov esi, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
push dword [esp + 8]
call dword [sym.imp.ws2_32.dll_closesocket]
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov dword [eax + 0x34], ebx
mov dword [eax + 0x30], esi
mov dword [eax + 0x38], edi
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x88], 0x3b9aca01
xor esi, esi
mov ebx, eax
movsd xmm0, qword [eax + 0x30]
movsd xmm1, qword [eax + 0x38]
inc esi
movsd qword [esp + 0x50], xmm0
movsd qword [esp + 0x58], xmm1
lea ecx, [ebx + 0x20]
call fcn.00475bca
mov ecx, dword [esp + 0x40]
movsd xmm0, qword [esp + 0x50]
movsd xmm1, qword [esp + 0x58]
mov eax, dword [esp + 0x60]
mov dword [ecx], esi
mov dword [ecx + 0x14], eax
movsd qword [ecx + 4], xmm0
movsd qword [ecx + 0xc], xmm1
mov al, 1
mov byte [ebx + 0x254], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [esp + 0x148]
push 7
pop edx
mov ecx, esi
push 0x13
push str.Network_unreachabletcp_connect_error
call fcn.004c2c1d
pop eax
pop ecx
lea ecx, [esp + 0x50]
mov edx, 0x53c5ef
push dword [esi + 4]
push dword [esi]
push 0x11
call fcn.00437b50
add esp, 0xc
xor esi, esi
inc esi
jmp 0x4758ca
mov ebx, dword [esp + 0xa4]
mov ecx, dword [esp + 0xac]
mov esi, eax
jmp 0x47588d