Function at 0x47183c
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 0x471850
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 0x47188d
cmp eax, 3
jne 0x4718b4
lea eax, [ebx + 0x138]
mov dword [esp + 0x10], eax
movzx eax, byte [ebx + 0x198]
mov eax, dword [eax*4 + 0x4722f4]
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 0x471b2b
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.8_srclib.rs
push 0x53b370
jmp 0x471a08
call fcn.0050af40
pop eax
ud2
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x472160
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 0x472160
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 [0x5b7a64]
cmp eax, 3
jne 0x4721b8
push 0x81
push 0
push 0
push 6
push 1
push esi
call sub.ws2_32.dll_WSASocketW
mov edi, eax
cmp eax, 0xffffffff
jne 0x471c67
lea esi, [esp + 0x1c]
mov ecx, esi
call fcn.004bd1c2
cmp byte [esi], 4
jne 0x471c30
mov edi, dword [esp + 0x20]
jmp 0x471c67
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
cmp al, 4
je 0x471c67
cmp al, 4
je 0x471c67
lea esi, [esp + 0xa0]
mov edx, str.tcp_open_errortcp_set_nonblocking_errortcp_bind_local_error
mov ecx, esi
push edi
push eax
push 0xe
call fcn.00436787
add esp, 0xc
mov edi, dword [esi]
mov esi, dword [esi + 8]
test esi, esi
jne 0x4722e0
lea eax, [esp + 0x78]
mov dword [eax], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x471c98
lea esi, [esp + 0x1c]
mov ecx, esi
call fcn.004bd1c2
mov eax, dword [esi]
cmp al, 4
jne 0x471dc3
mov byte [esp + 0x1c], 4
lea esi, [esp + 0xa0]
mov dword [esp + 8], edi
lea edx, [esp + 0x1c]
mov ecx, esi
push 0x19
push 0x528566
call fcn.004369aa
pop eax
pop ecx
mov esi, dword [esi + 8]
test esi, esi
jne 0x472201
mov ecx, dword [esp + 4]
mov edi, dword [ecx + 0x28]
cmp edi, 0x3b9aca00
je 0x471e1c
mov edx, dword [ecx + 0x24]
mov eax, dword [ecx + 0x20]
lea esi, [esp + 0xa0]
mov ecx, esi
mov dword [esp + 0x68], edx
mov edx, dword [esp + 8]
mov dword [esp + 0x3c], eax
push 1
push 8
call fcn.004bf71e
pop eax
pop ecx
cmp byte [esi], 4
je 0x471d14
mov eax, dword [esp + 0xa0]
cmp al, 4
jne 0x471dd4
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 edi, [esp + 0xb8]
push edi
push 0x98000004
push dword [esp + 0x28]
call dword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x471dbd
lea esi, [esp + 0x1c]
mov ecx, esi
call fcn.004bd1c2
mov eax, dword [esi]
cmp al, 4
jne 0x471de6
mov ebx, dword [esp + 0xc]
jmp 0x471e18
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jmp 0x471c9d
mov ecx, dword [esp + 0xa4]
mov edx, eax
lea edi, [esp + 0xa0]
jmp 0x471df0
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0xc]
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
push edi
call fcn.00441d62
pop eax
mov ecx, dword [esp + 4]
cmp word [ebx], 0
je 0x471e5b
xor eax, eax
mov edi, dword [esp + 8]
inc eax
cmp byte [ecx + 0x46], 0
je 0x471e7c
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 0x471ea5
xor eax, eax
cmp byte [ecx + 0x41], 0
mov edi, dword [esp + 8]
je 0x471e7c
mov eax, dword [ecx + 0x42]
lea edx, [esp + 0x1c]
mov dword [edx + 2], eax
and word [edx + 6], 0
and word [edx], 0
jmp 0x471ea5
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.004bf24e
lea esi, [esp + 0x14]
lea eax, [esp + 0xa0]
mov edx, edi
mov ecx, esi
push eax
call fcn.004bf6de
pop eax
cmp byte [esi], 4
je 0x471ed4
mov eax, dword [esp + 0x14]
cmp al, 4
jne 0x471edb
mov byte [esp + 0x1c], 4
jmp 0x471ee7
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 0x52857f
call fcn.004369aa
pop eax
pop ecx
mov esi, dword [esi + 8]
test esi, esi
jne 0x472218
mov eax, dword [esp + 4]
cmp byte [eax + 0x58], 0
je 0x471f4d
lea esi, [esp + 0x1c]
mov edx, edi
mov ecx, esi
push 1
push 4
call fcn.004bf71e
pop eax
pop ecx
cmp byte [esi], 4
je 0x471f49
movsd xmm0, qword [esp + 0x1c]
lea eax, [esp + 0xa0]
movsd qword [esp + 0xa0], xmm0
push eax
call fcn.00441d62
pop eax
mov eax, dword [esp + 4]
cmp dword [eax + 0x30], 0
je 0x471f90
lea esi, [esp + 0x1c]
mov edx, edi
mov ecx, esi
push dword [eax + 0x34]
push 0x1001
call fcn.004bf71e
pop eax
pop ecx
cmp byte [esi], 4
je 0x471f8c
movsd xmm0, qword [esp + 0x1c]
lea eax, [esp + 0xa0]
movsd qword [esp + 0xa0], xmm0
push eax
call fcn.00441d62
pop eax
mov eax, dword [esp + 4]
cmp dword [eax + 0x38], 0
je 0x471fcf
lea esi, [esp + 0x1c]
mov edx, edi
mov ecx, esi
push dword [eax + 0x3c]
push 0x1002
call fcn.004bf71e
pop eax
pop ecx
cmp byte [esi], 4
je 0x471fcf
movsd xmm0, qword [esp + 0x1c]
lea eax, [esp + 0xa0]
movsd qword [esp + 0xa0], xmm0
push eax
call fcn.00441d62
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.004fea40
add esp, 0xc
lea eax, [ebx + 0x138]
push 0x108
push esi
mov dword [esp + 0x18], eax
push eax
call fcn.004fea40
add esp, 0xc
movzx eax, byte [ebx + 0x198]
mov eax, dword [eax*4 + 0x4722f4]
add eax, dword [esp + 0x44]
jmp eax
cmp dword [ebx + 0x28], 0
je 0x4722a9
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 0x472276
lea eax, [esp + 0x14]
lea edi, [esp + 0x78]
mov ecx, 0x5b7a64
xor edx, edx
mov byte [eax], 1
mov dword [edi], eax
push 0x544a78
push 0x5449b0
push edi
call fcn.0050cf10
add esp, 0xc
jmp 0x471c00
mov edi, dword [esp + 0xa0]
mov ebx, dword [esp + 0xa4]
mov eax, dword [esp + 0xac]
jmp 0x472227
mov edi, 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], edi
mov dword [eax + 0x38], esi
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.00472572
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_errorS
call fcn.004bcfdb
pop eax
pop ecx
lea ecx, [esp + 0x50]
mov edx, 0x53b393
push dword [esi + 4]
push dword [esi]
push 0x11
call fcn.00436787
add esp, 0xc
xor esi, esi
inc esi
jmp 0x472276
mov ebx, dword [esp + 0xa4]
mov ecx, dword [esp + 0xac]
jmp 0x472239