Function at 0x493480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb0
cmp dword [edx], 0
je 0x49349e
mov word [ecx], 0xc01
jmp 0x493a1b
mov edi, dword [ebp + 8]
xor ebx, ebx
test byte [ebp + 0x10], 1
mov eax, 0x89
mov dword [esp + 0x90], edx
mov dword [esp + 0x8c], ecx
lea esi, [edi + 0xc]
cmove eax, ebx
mov dword [esp], eax
mov dword [esp + 0x98], esi
lea eax, [edi + 0x10]
mov dword [esp + 4], eax
push eax
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov eax, dword [0x5c616c]
test eax, 0x7fffffff
jne 0x4939a6
movzx eax, byte [edi + 0x14]
test al, al
jne 0x4939bc
mov eax, dword [esp + 4]
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], bl
mov eax, dword [edi + 0x20]
test eax, eax
je 0x493528
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx + eax*4 - 4]
mov eax, dword [eax]
cmp eax, 0x21
jb 0x493548
mov edx, dword [esi]
lea eax, [edi + 0x18]
lea ecx, [esp + 0x28]
push eax
call sym.mio::sys::windows::selector::AfdGroup::_alloc_afd_group::h7e9ea0dcce2c4d54
add esp, 4
jmp 0x49353b
mov edx, dword [edi + 0xc]
lea eax, [edi + 0x18]
lea ecx, [esp + 0x28]
push eax
call sym.mio::sys::windows::selector::AfdGroup::_alloc_afd_group::h7e9ea0dcce2c4d54
add esp, 4
movzx eax, byte [esp + 0x28]
cmp al, 4
jne 0x493804
mov eax, dword [edi + 0x20]
test eax, eax
je 0x493a6e
mov ecx, dword [edi + 0x18]
mov edi, dword [ecx + eax*4 - 4]
lock inc dword [edi]
jle 0x493a52
mov ebx, dword [ebp + 0x14]
mov esi, dword [esp + 0x20]
cmp byte [esp + 0x24], 0
jne 0x493581
mov eax, dword [0x5c616c]
test eax, 0x7fffffff
jne 0x493a23
push esi
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov dword [esp + 8], 0
mov dword [esp + 0x28], 0
lea esi, [esp + 0x28]
lea eax, [esp + 8]
push 0
push 0
push esi
push 4
push eax
push 0
push 0
push 0x48000022
push ebx
call sub.WS2_32.dll_WSAIoctl
cmp eax, 0xffffffff
je 0x493841
mov eax, dword [esp + 8]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov word [esp + 0x84], 0
mov dword [esp + 0x30], 0
mov byte [esp + 0x34], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 1
movzx eax, byte [0x5c6170]
mov eax, dword [0x5c6108]
test eax, eax
jne 0x49369b
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x493a56
mov dword [0x5c6108], eax
push 0x60
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x493a56
lea esi, [esp + 0x28]
mov ecx, 0x18
mov edi, eax
mov ebx, eax
rep movsd dword es:[edi], dword [esi]
mov esi, eax
mov dword [esp + 0x94], eax
add esi, 8
push esi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov eax, dword [0x5c616c]
test eax, 0x7fffffff
je 0x49388f
call dbg.is_zero_slow_path
xor al, 1
movzx ecx, byte [ebx + 0xc]
test cl, cl
jne 0x49389d
movzx ecx, byte [ebp + 0x10]
mov edx, dword [esp]
mov edi, dword [ebp + 0xc]
add cl, cl
and cl, 4
movzx ecx, cl
or edx, ecx
or edx, 0x110
test al, al
mov dword [ebx + 0x54], edx
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x44], 0
je 0x4938cb
push esi
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov eax, dword [ebp + 8]
lock inc dword [eax]
jle 0x493a52
lock inc dword [ebx]
jle 0x493a52
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], eax
mov ah, byte [ebp + 0x10]
lea esi, [edi + 8]
mov byte [esp + 0x34], ah
mov dword [esp + 0x2c], ebx
mov ecx, esi
mov edx, ebx
call sym.mio::sys::windows::selector::SelectorInner::queue_state::h67aa22c434c0dd13
movzx eax, byte [edi + 0x3c]
test al, al
je 0x49377f
lea ecx, [esp + 8]
mov edx, esi
call sym.mio::sys::windows::selector::SelectorInner::update_sockets_events::hf0d7614284fcdc52
movzx eax, byte [esp + 8]
cmp al, 4
jne 0x4938f1
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
test esi, esi
je 0x493916
mov edi, dword [esp + 0x34]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov dword [esp], eax
mov dword [esp + 0x34], edi
movzx eax, byte [0x5c6170]
mov eax, dword [0x5c6108]
test eax, eax
jne 0x4937cc
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x493b3a
mov dword [0x5c6108], eax
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x493b3a
mov ecx, dword [esp]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edi
mov dword [ecx], eax
mov ecx, dword [esp + 0x8c]
mov byte [ecx], 4
jmp 0x493a1b
movzx ecx, byte [esp + 0x2b]
movzx esi, word [esp + 0x29]
mov edi, dword [esp + 0x2c]
mov dword [esp], eax
shl ecx, 0x10
or esi, ecx
test bl, bl
jne 0x49382e
mov eax, dword [0x5c616c]
test eax, 0x7fffffff
jne 0x493a39
push dword [esp + 4]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov eax, dword [esp]
mov ebx, edi
jmp 0x493a07
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0x28], 0
push 0
push 0
push esi
push 4
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x4800001c
push ebx
call sub.WS2_32.dll_WSAIoctl
cmp eax, 0xffffffff
je 0x493920
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x4935c3
jmp 0x493925
xor eax, eax
movzx ecx, byte [ebx + 0xc]
test cl, cl
je 0x4936f1
mov dword [esp + 0x28], esi
mov byte [esp + 0x2c], al
mov edx, 0x2b
mov ecx, 0x5a4df6
push 0x5565e8
push 0x556324
lea eax, [esp + 0x30]
push eax
call dbg.unwrap_failed
add esp, 0xc
jmp 0x493b49
mov eax, dword [0x5c616c]
test eax, 0x7fffffff
je 0x493720
call dbg.is_zero_slow_path
test al, al
jne 0x493720
mov byte [ebx + 0xc], 1
jmp 0x493720
movzx edx, byte [esp + 0xb]
movzx esi, word [esp + 9]
mov ebx, dword [esp + 0xc]
mov edi, eax
shl edx, 0x10
or esi, edx
lea ecx, [esp + 0x28]
call sym.core::ptr::drop_in_place_LT_mio..sys..windows..InternalState_GT_::h6707d25923248d0b
mov eax, edi
jmp 0x493a07
mov esi, eax
shr esi, 8
jmp 0x493a07
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 8], 0
mov dword [esp + 0x28], 0
push 0
push 0
push esi
push 4
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x4800001d
push ebx
call sub.WS2_32.dll_WSAIoctl
cmp eax, 0xffffffff
je 0x493963
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x4935c3
jmp 0x493968
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 8], 0
mov dword [esp + 0x28], 0
push 0
push 0
push esi
push 4
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x4800001b
push ebx
call sub.WS2_32.dll_WSAIoctl
cmp eax, 0xffffffff
je 0x4939ee
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x4935c3
jmp 0x4939f3
call dbg.is_zero_slow_path
mov ebx, eax
xor bl, 1
movzx eax, byte [edi + 0x14]
test al, al
je 0x4934f3
mov eax, dword [esp + 4]
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], bl
lea eax, [esp + 0x28]
mov edx, 0x2b
mov ecx, 0x5a4df6
push 0x556468
push 0x556334
push eax
call dbg.unwrap_failed
add esp, 0xc
jmp 0x493b49
call sub.WS2_32.dll_WSAGetLastError
lock dec dword [edi]
jne 0x4939ff
mov ecx, edi
call sym.alloc::sync::Arc_LT_T_C_A_GT_::drop_slow::h21b59a02dd391ed3
mov ebx, dword [esp + 4]
xor eax, eax
xor esi, esi
mov ecx, dword [esp + 0x8c]
shl esi, 8
movzx eax, al
or eax, esi
mov dword [ecx], eax
mov dword [ecx + 4], ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dbg.is_zero_slow_path
test al, al
jne 0x493581
mov byte [esi + 4], 1
jmp 0x493581
call dbg.is_zero_slow_path
test al, al
jne 0x49382e
mov eax, dword [ebp + 8]
mov byte [eax + 0x14], 1
jmp 0x49382e
ud2
lea edi, [esp + 0x38]
mov ecx, 8
mov edx, 0x60
call dbg.handle_alloc_error
jmp 0x493b49
lea eax, [esp + 0x98]
lea esi, [esp + 0x20]
lea edi, [esp + 0x28]
mov dword [esp + 0x28], 2
mov dword [esp + 0x30], 2
mov dword [esp + 0x38], 0x20
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 4
mov byte [esp + 0x44], 3
mov dword [esp + 0x48], 2
mov dword [esp + 0x50], 2
mov dword [esp + 0x58], 0x20
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], 4
mov dword [esp + 8], 0x5564c4
mov dword [esp + 0xc], 2
mov byte [esp + 0x64], 3
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], sym.__LT__RF_T_u20_as_u20_core..fmt..Debug_GT_::fmt::h39c5c99f5370d6b2
mov dword [esp + 0xa4], esi
lea esi, [esp + 0x9c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 2
mov dword [esp + 0xa8], sym.__LT_std..sync..mutex..MutexGuard_LT_T_GT__u20_as_u20_core..fmt..Debug_GT_::fmt::hb7ed2810b785e52d
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 2
lea ecx, [esp + 8]
mov edx, 0x5564d4
call dbg.panic_fmt
jmp 0x493b49
mov ecx, 4
mov edx, 0x10
call dbg.handle_alloc_error
ud2