Function at 0x524b90
Capabilities:
Create tcp socket
Create udp socket
Enumerate pe sections
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x8c
cmp word [edx], 0
mov eax, dword [0x5c606c]
mov ebx, edx
mov esi, ecx
je 0x524bc6
cmp eax, 3
jne 0x524eeb
push 0
push 1
push 0x17
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
jne 0x524bdf
jmp 0x524c01
cmp eax, 3
jne 0x524f1d
push 0
push 1
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
je 0x524c01
mov edi, eax
mov dword [ebp - 0x88], 1
lea eax, [ebp - 0x88]
push eax
push 0x8004667e
push edi
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x524c21
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
mov dword [esi + 4], 0
mov dword [esi + 8], ebx
xor eax, eax
mov dword [esi], eax
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret
cmp word [ebx], 0
je 0x524c43
mov eax, dword [ebx + 0x18]
movups xmm0, xmmword [ebx + 4]
mov ecx, 0x1c
mov dx, 0x17
mov dword [ebp - 0x14], eax
movzx eax, word [ebx + 0x1c]
add ebx, 0x14
jmp 0x524c5c
movzx eax, word [ebx + 6]
mov dword [ebp - 0x18], esi
add ebx, 2
mov ecx, 0x10
mov dx, 2
xorps xmm0, xmm0
mov esi, dword [ebp - 0x18]
rol ax, 8
mov word [ebp - 0x88], dx
mov word [ebp - 0x86], ax
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x84], ebx
movups xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x88]
push ecx
push eax
push edi
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
je 0x524e78
push 0x400
push edi
call sub.WS2_32.dll_listen
cmp eax, 0xffffffff
je 0x524ed9
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x94], 0
call sym.tokio::io::driver::Handle::current::hd8712ec423a87159
mov ebx, eax
cmp eax, 0xffffffff
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], eax
je 0x524e7a
mov eax, dword [ebx]
nop word [eax + eax]
test eax, eax
je 0x524e7a
js 0x524fcf
lea ecx, [eax + 1]
lock cmpxchg dword [ebx], ecx
jne 0x524ce0
mov edx, ebx
mov dword [ebp - 0x28], ebx
add edx, 0xc
lea edi, [ebp - 0x88]
mov ecx, edi
call sym.tokio::util::slab::Allocator_LT_T_GT_::allocate::h2fc3d9c57b3d88e3
cmp dword [ebp - 0x88], 0
je 0x524f4f
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000000
mov ecx, dword [ecx + 0x20]
jae 0x524fd6
and ecx, 0x7f000000
and eax, 0x80ffffff
mov byte [ebp - 0xd], 3
or eax, ecx
mov cl, 3
mov dword [ebp - 0x2c], eax
mov edx, dword [0x5c6168]
cmp edx, 4
jbe 0x524e18
lea eax, [ebp - 0x2c]
mov ecx, 0x5544c4
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0xd]
mov dword [ebp - 0x38], sym.__ZN54__LT_mio..token..Token_u20_as_u20_core..fmt..Debug_GT_3fmt17he0891354f94ffa13E.4511
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], sym.__LT_mio..interest..Interest_u20_as_u20_core..fmt..Debug_GT_::fmt::hf389fc94e4ce32c9
mov eax, dword [0x5c6064]
mov dword [ebp - 0x5c], 0x5a3a0c
mov dword [ebp - 0x58], 2
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x68], 5
mov dword [ebp - 0x64], str.mio::poll_home_user_.cargo_registry_src_index.crates.io_6f17d22bba15001f_mio_0.7.14_src_poll.rsregistering_event_source_with_poller:_token__interests
mov dword [ebp - 0x60], 9
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x78], 9
mov dword [ebp - 0x7c], str.mio::poll_home_user_.cargo_registry_src_index.crates.io_6f17d22bba15001f_mio_0.7.14_src_poll.rsregistering_event_source_with_poller:_token__interests
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x6c], 0x56
mov dword [ebp - 0x70], 0x5a397d
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x84], 0x1de
cmp eax, 2
mov eax, 0x554518
cmove ecx, dword [0x54a250]
cmove eax, dword [str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_threadmod.rs]
mov ecx, dword [ecx + 0x10]
push edi
push eax
call ecx
add esp, 8
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [ebp - 0xd]
lea edx, [ebp - 0x1c]
movzx edi, cl
lea ecx, [ebp - 0x44]
push dword [ebp - 0x20]
push edi
push eax
push dword [ebx + 8]
call sym.mio::sys::windows::IoSourceState::register::he1ef5ca5b4a5e3ca
add esp, 0x10
movzx eax, byte [ebp - 0x44]
cmp al, 4
je 0x524f73
movzx edi, byte [ebp - 0x41]
movzx edx, word [ebp - 0x43]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], edi
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x14]
call sym.__LT_tokio..util..slab..Ref_LT_T_GT__u20_as_u20_core..ops..drop..Drop_GT_::drop::h2bc6a4cf6e122ede
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x18]
shl eax, 0x10
or ecx, eax
mov eax, dword [ebp - 0x90]
jmp 0x524f9f
jmp 0x524ed9
mov edx, 0x27
lea ecx, [ebp - 0x88]
push 0x19
push str.failed_to_find_event_loopIO_driver_has_terminated
call sym.std::io::error::Error::new::h2b7236a437a5c414
add esp, 8
mov ebx, dword [ebp - 0x88]
mov edi, dword [ebp - 0x84]
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x524ebe
lock dec dword [eax + 4]
jne 0x524ebe
push dword [ebp - 0x24]
push 0
push dword [0x5c6108]
call sub.KERNEL32.dll_HeapFree
lea ecx, [ebp - 0x1c]
call sym.core::ptr::drop_in_place_LT_mio..sys..windows..IoSourceState_GT_::h599e1165d003284f
push dword [ebp - 0x20]
call sub.WS2_32.dll_closesocket
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
jmp 0x524c12
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
push edi
call sub.WS2_32.dll_closesocket
jmp 0x524c08
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x3c], 1
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
mov ecx, 0x5c606c
xor edx, edx
push 0x556a14
push 0x5568ec
push eax
call dbg.call
add esp, 0xc
jmp 0x524bb4
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x3c], 1
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
mov ecx, 0x5c606c
xor edx, edx
push 0x556a14
push 0x5568ec
push eax
call dbg.call
add esp, 0xc
jmp 0x524bcf
mov edx, 0x27
lea ecx, [ebp - 0x3c]
push 0x27
push str.reactor_at_max_registered_I_O_resourcesA_Tokio_1.x_context_was_found__but_IO_is_disabled._Call__enable_io__on_the_runtime_builder_to_enable_IO.
call sym.std::io::error::Error::new::h2b7236a437a5c414
add esp, 8
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x38]
cmp al, 4
jne 0x524f9a
mov dword [ebp - 0x14], edi
lock dec dword [ebx]
jne 0x524f80
lea ecx, [ebp - 0x28]
call sym.alloc::sync::Arc_LT_T_C_A_GT_::drop_slow::h50a03f7b46174f89
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
jmp 0x524c14
mov ecx, eax
shr ecx, 8
lock dec dword [ebx]
jne 0x524fb6
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x28]
mov ebx, eax
call sym.alloc::sync::Arc_LT_T_C_A_GT_::drop_slow::h50a03f7b46174f89
mov ecx, dword [ebp - 0x18]
mov eax, ebx
shl ecx, 8
movzx ebx, al
or ebx, ecx
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
jne 0x524ea8
jmp 0x524ebe
call sym.alloc::sync::Weak_LT_T_C_A_GT_::upgrade::checked_increment::panic_cold_display::ha5aea79b68fbe076
jmp 0x524fed
mov edx, 0x2b
mov ecx, str.assertion_failed:_value___self.max_value___home_user_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.15.0_src_util_bit.rs
push 0x5a49ec
call dbg.panic
add esp, 4
ud2