Function at 0x45f87c
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, 0x210
call 0x45f890
pop eax
mov ebx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
movzx eax, byte [edx + 0x244]
test eax, eax
je 0x45f8cd
cmp eax, 3
jne 0x45f8f5
lea eax, [ebx + 0x130]
mov dword [esp + 8], eax
movzx eax, byte [ebx + 0x18c]
mov eax, dword [eax*4 + 0x46034c]
add eax, dword [esp + 0x38]
jmp eax
mov eax, dword [ebx + 0x230]
mov ecx, dword [ebx + 0x234]
xor edi, edi
mov dword [ebx + 0x238], eax
mov dword [ebx + 0x23c], ecx
mov dword [ebx], 0
mov dword [ebx + 0x240], eax
jmp 0x45f909
mov ecx, str._async_fn__resumed_after_completionC:Usersigame.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_util_0.7.11_srcutilpoll_buf.rs
mov edx, 0x23
push 0x523f58
call fcn.004e8ca0
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 0xc]
je 0x460171
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 0x46016f
mov word [ebx + 0x10], dx
mov word [esp + 0x20], 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 + 0x238]
mov ecx, dword [ebx + 0x23c]
mov esi, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x24], eax
mov esi, 0x17
mov eax, dword [0x537f64]
cmove esi, edi
cmp eax, 3
jne 0x460126
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 0x46018b
mov edi, eax
lea eax, [esp + 0x58]
mov dword [eax], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x4601d5
mov eax, dword [esp + 4]
mov dword [esp + 8], edi
mov edi, dword [eax + 0x38]
cmp edi, 0x3b9aca00
je 0x45fb43
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
mov edx, dword [esp + 8]
lea esi, [esp + 0x58]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x44], eax
mov ecx, esi
push 1
push 8
call fcn.00498142
add esp, 8
cmp byte [esi], 4
je 0x45fa70
mov ecx, dword [esp + 0x58]
cmp cl, 4
jne 0x45fb11
mov eax, dword [esp + 0x2c]
mov ecx, 0x3e8
xor ebx, ebx
mov dword [esp + 0x58], 1
mul ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x40], edx
mul ecx
mov esi, eax
mov ecx, edx
mov edx, 0x431bde83
mov eax, edi
add esi, dword [esp + 0x40]
adc ecx, ebx
mul edx
shr edx, 0x12
add edx, dword [esp + 0x2c]
adc esi, ebx
adc ecx, ebx
setb al
neg esi
mov esi, 0
sbb esi, esi
movzx eax, al
or esi, edx
xor edx, edx
dec edx
or eax, ecx
lea eax, [esp + 0x18]
cmove edx, esi
mov dword [eax], ebx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ebx
push ebx
push ebx
push eax
push ebx
push ebx
push 0xc
lea esi, [esp + 0x70]
push esi
push 0x98000004
push dword [esp + 0x28]
call dword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x45fafe
mov ebx, dword [esp + 0xc]
jmp 0x45fb3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0xc]
mov edx, eax
shl eax, 0x18
xor ecx, ecx
jmp 0x45fb1f
mov edx, dword [esp + 0x5c]
mov eax, ecx
lea esi, [esp + 0x58]
shrd eax, edx, 8
shr edx, 8
shld edx, eax, 8
shl eax, 8
movzx ecx, cl
or ecx, eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], ecx
push esi
call fcn.00421b4b
add esp, 4
mov eax, dword [esp + 4]
cmp word [esp + 0x20], 0
je 0x45fb82
cmp byte [eax + 0x46], 0
je 0x45fbad
movups xmm0, xmmword [eax + 0x47]
lea edx, [esp + 0x70]
xor eax, eax
mov ecx, 0x1a
mov edi, edx
movups xmmword [edx - 0x10], xmm0
rep stosd dword es:[edi], eax
mov dword [edx - 0x18], 0x17
mov dword [edx - 0x14], 0
mov dword [edx + 0x68], 0x1c
jmp 0x45fc17
cmp byte [eax + 0x41], 0
je 0x45fbce
mov esi, dword [eax + 0x42]
lea edx, [esp + 0x60]
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
jmp 0x45fc17
xorps xmm0, xmm0
lea edi, [esp + 0x70]
xor eax, eax
mov ecx, 0x1a
xor esi, esi
movups xmmword [edi - 0x10], xmm0
rep stosd dword es:[edi], eax
mov eax, 0x1c
mov cx, 0x17
jmp 0x45fc00
lea edx, [esp + 0x68]
xor eax, eax
mov ecx, 0x1c
mov word [esp + 0x50], 0
mov dword [esp + 0x52], 0
xorps xmm0, xmm0
mov edi, edx
rep stosd dword es:[edi], eax
movlps qword [edx - 8], xmm0
mov eax, 0x10
mov cx, 2
mov esi, dword [esp + 0x50]
mov word [esp + 0x58], cx
mov word [esp + 0x5a], 0
mov dword [esp + 0x5c], esi
mov dword [esp + 0xd8], eax
mov edi, dword [esp + 8]
lea esi, [esp + 0x18]
lea eax, [esp + 0x58]
mov ecx, esi
mov edx, edi
push eax
call fcn.004981aa
add esp, 4
cmp byte [esi], 4
je 0x45fc41
mov eax, dword [esp + 0x18]
cmp al, 4
jne 0x460255
mov eax, dword [esp + 4]
cmp byte [eax + 0x58], 0
je 0x45fc81
lea esi, [esp + 0x18]
mov edx, edi
mov ecx, esi
push 1
push 4
call fcn.00498142
add esp, 8
cmp byte [esi], 4
je 0x45fc7d
movsd xmm0, qword [esp + 0x18]
lea eax, [esp + 0x58]
movsd qword [esp + 0x58], xmm0
push eax
call fcn.00421b4b
add esp, 4
mov eax, dword [esp + 4]
cmp dword [eax], 0
je 0x45fcc0
lea esi, [esp + 0x18]
mov edx, edi
mov ecx, esi
push dword [eax + 4]
push 0x1001
call fcn.00498142
add esp, 8
cmp byte [esi], 4
je 0x45fcbc
movsd xmm0, qword [esp + 0x18]
lea eax, [esp + 0x58]
movsd qword [esp + 0x58], xmm0
push eax
call fcn.00421b4b
add esp, 4
mov eax, dword [esp + 4]
cmp dword [eax + 8], 0
je 0x45fcfc
lea esi, [esp + 0x18]
mov edx, edi
mov ecx, esi
push dword [eax + 0xc]
push 0x1002
call fcn.00498142
add esp, 8
cmp byte [esi], 4
je 0x45fcfc
movsd xmm0, qword [esp + 0x18]
lea eax, [esp + 0x58]
movsd qword [esp + 0x58], xmm0
push eax
call fcn.00421b4b
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 + 0xe8], xmm0
movsd xmm0, qword [ebx + 0x1c]
movsd qword [esp + 0xe0], xmm0
mov esi, dword [ebx + 0x2c]
mov dword [esp + 0xf0], esi
mov esi, dword [esp + 0x48]
mov dword [ebx + 0x34], esi
mov esi, dword [esp + 0x30]
mov dword [ebx + 0x30], esi
mov esi, dword [esp + 0x24]
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x48], edx
lea esi, [esp + 0x1c0]
mov ecx, 9
movsd xmm0, qword [esp + 0xe0]
movsd xmm1, qword [esp + 0xe8]
movsd qword [ebx + 0x4c], xmm0
movsd qword [ebx + 0x54], xmm1
mov eax, dword [esp + 0xf0]
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 + 0x88], al
lea esi, [ebx + 0x30]
movzx ecx, word [esp + 0x3d]
mov word [ebx + 0x89], cx
mov cl, byte [esp + 0x3f]
mov byte [ebx + 0x8b], cl
mov byte [ebx + 0x8c], al
lea eax, [ebx + 0x8d]
lea ecx, [esp + 0x118]
push 0xa3
push ecx
push eax
call fcn.004e4d00
add esp, 0xc
lea eax, [ebx + 0x130]
push pe_nt_image_headers32
push esi
mov dword [esp + 0x10], eax
push eax
call fcn.004e4d00
add esp, 0xc
movzx eax, byte [ebx + 0x18c]
mov eax, dword [eax*4 + 0x46034c]
add eax, dword [esp + 0x38]
jmp eax
lea eax, [esp + 0x18]
lea edi, [esp + 0x58]
mov ecx, 0x537f64
xor edx, edx
mov byte [eax], 1
mov dword [edi], eax
push 0x527770
push 0x52769c
push edi
call fcn.004ebf90
add esp, 0xc
jmp 0x45f9e4
mov edi, dword [ebx]
test edi, edi
je 0x460203
mov ecx, ebx
mov ebx, dword [ebx + 4]
xor esi, esi
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
jmp 0x46024f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0x58]
mov ecx, 0xe
mov ebx, 0xe
mov dword [esi + 4], eax
mov dword [esi], 0
call fcn.004098ca
mov ecx, esi
mov edi, edx
mov dword [edx], 0x20706374
mov dword [edx + 4], 0x6e65706f
mov dword [edx + 8], 0x72726520
mov word [edx + 0xc], 0x726f
call fcn.00421b72
jmp 0x4602b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0x58]
mov ecx, 0x19
mov ebx, 0x19
mov dword [esi + 4], eax
mov dword [esi], 0
call fcn.004098ca
push 0x19
push str.tcp_set_nonblocking_errortcp_bind_local_error
jmp 0x46028d
lea esi, [esp + 0x118]
mov edx, 7
mov ecx, esi
push 0x13
push 0x52ccf6
call fcn.004981d9
add esp, 8
mov ecx, 0x11
mov ebx, 0x11
call fcn.004098ca
mov edi, edx
push 0x11
push str.tcp_connect_error
push edx
call fcn.004e4d00
add esp, 0xc
mov ecx, esi
call fcn.00421b72
xor esi, esi
mov edx, 0x502610
inc esi
jmp 0x4602fa
mov ecx, dword [esp + 0x1c]
mov edx, eax
movzx eax, al
lea esi, [esp + 0x58]
mov ebx, 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.004098ca
push 0x14
push 0x502a3d
mov dword [esp + 0xc], edx
push edx
call fcn.004e4d00
add esp, 0xc
mov ecx, esi
call fcn.00421b72
mov esi, eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
mov edi, dword [esp + 4]
mov eax, esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
mov dword [esp + 0x14], 0x502610
inc ecx
mov dword [esp + 0x10], ecx
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], 0x502610
mov dword [esi + 0x38], 0x3b9aca01
cmp dword [esi], 0
je 0x4602f2
mov ecx, esi
mov dword [esp + 4], ebx
mov ebx, eax
call fcn.004604e0
mov eax, ebx
mov ebx, dword [esp + 4]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edx
mov ecx, dword [esp + 0xc]
mov al, 1
mov byte [ecx + 0x244], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret