Function at 0x5b5d05
Capabilities:
Connect socket
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x110
movzx eax, byte [edx + 0x4c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x40], ecx
test eax, eax
je 0x5b5d58
cmp eax, 3
jne 0x5b66a9
lea eax, [edx + 0x48]
lea esi, [edx + 0x28]
mov dword [esp + 0x24], eax
movzx eax, byte [edx + 0x48]
mov dword [esp + 0x3c], esi
test eax, eax
je 0x5b5e50
cmp eax, 3
jne 0x5b66b8
mov eax, dword [edx + 0x44]
jmp 0x5b5f7f
mov eax, dword [edx + 0x20]
mov dword [edx + 0x24], eax
mov dword [esp + 4], eax
mov esi, dword [edx + 2]
movzx ebx, word [edx + 6]
cmp word [edx], 0
je 0x5b5dc8
mov eax, dword [edx + 0x14]
movzx ecx, word [edx + 0x1c]
shr esi, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x18]
mov dword [esp + 0x24], eax
mov eax, edx
lea edx, [esp + 0x9c]
mov word [edx - 0x14], si
mov word [edx - 0x12], bx
mov ebx, ecx
movsd xmm0, qword [eax + 8]
rol bx, 8
movsd qword [edx - 0x10], xmm0
mov eax, dword [eax + 0x10]
mov dword [edx - 8], eax
push 0x19
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
mov dword [edx - 4], eax
push 0x1c
pop edx
mov esi, dword [esp + 0xc]
mov ax, 0x17
jmp 0x5b5de1
push 0x10
pop edx
rol bx, 8
lea edi, [esp + 0x88]
push 0x1e
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov ax, 2
lea ecx, [esp + 0x80]
mov word [ecx], ax
mov word [ecx + 2], bx
mov dword [ecx + 4], esi
mov dword [ecx + 0x80], edx
push edx
push ecx
push dword [esp + 0xc]
call dword [sym.imp.ws2_32.dll_connect]
test eax, eax
je 0x5b5e30
call dword [sym.imp.kernel32.dll_GetLastError]
lea esi, [esp + 0x60]
mov edi, eax
and dword [esi], 0
mov ecx, esi
mov dword [esi + 4], eax
call fcn.0044ed78
cmp al, 0xd
jne 0x5b5f07
push esi
call fcn.00578f41
pop eax
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x24]
lea ecx, [edx + 0x28]
mov dword [esp + 0x3c], ecx
mov dword [edx + 0x28], eax
and dword [edx + 0x2c], 0
lea eax, [edx + 0x48]
mov byte [edx + 0x48], 0
mov dword [esp + 0x24], eax
mov esi, dword [edx + 0x28]
mov edi, dword [edx + 0x2c]
mov ecx, 0xa0f6d8
call fcn.006002aa
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
lea ecx, [edx + 8]
mov edx, 0xa0f6d8
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
call fcn.005fdf7c
mov edi, eax
lea esi, [eax + 0xc]
push esi
call dword [sym.imp.kernel32.dll_AcquireSRWLockShared]
mov al, byte [edi + 0x10]
test al, al
jne 0x5b667d
cmp byte [edi + 0x60], 0
je 0x5b5eb4
lea ecx, [esp + 0x4c]
push 0x27
pop edx
push 0x38
push str.A_Tokio_1.x_context_was_found__but_it_is_being_shutdown.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.28.0_src_runtimeiomod.rs
call fcn.0056bdc9
pop eax
pop ecx
jmp 0x5b5f3a
mov dword [esp + 0x10], esi
push 0xffffffffffffffb4
pop ebx
mov dword [esp + 0xc], edi
test ebx, ebx
je 0x5b5f21
mov esi, dword [edi + ebx + 0x60]
mov eax, dword [esi + 0x24]
cmp eax, dword [esi + 0x28]
je 0x5b5f02
lea ecx, [esi + 8]
mov dword [esp + 4], ecx
call fcn.005fe4f8
mov ecx, eax
mov eax, dword [eax + 0x10]
movzx edx, dl
mov edi, dword [ecx + 0x14]
cmp edi, eax
jb 0x5b60a7
mov edi, dword [esi + 0x28]
cmp edi, eax
jne 0x5b6122
call fcn.00608264
mov edi, dword [esp + 0xc]
add ebx, 4
jmp 0x5b5ebf
mov eax, dword [esp + 0x14]
mov dword [esp + 4], edi
xor ebx, ebx
mov ecx, dword [eax + 0x24]
call fcn.005ae2d7
push 2
pop esi
jmp 0x5b5ffd
lea ecx, [esp + 0x4c]
push 0x27
pop edx
push 0x27
push str.reactor_at_max_registered_I_O_resourcesmark_pending_called_when_the_timer_entry_is_in_an_invalid_state
call fcn.0056bdc9
pop eax
pop ecx
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockShared]
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 4], eax
cmp bl, 4
jne 0x5b5fb0
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov dword [edi + 0x30], eax
mov eax, dword [esp + 4]
mov dword [edi + 0x34], ecx
mov dword [edi + 0x38], eax
lea eax, [edi + 0x30]
mov dword [edi + 0x40], esi
mov dword [edi + 0x3c], edx
mov dword [edi + 0x44], eax
mov edx, dword [eax + 8]
lea esi, [esp + 0x80]
mov ecx, esi
push dword [ebp + 8]
call fcn.00600efa
pop eax
mov eax, dword [esi]
cmp eax, 2
jne 0x5b5fc4
mov eax, dword [esp + 0x24]
mov byte [eax], 3
mov eax, dword [esp + 0x40]
mov dword [eax], 3
mov al, 3
jmp 0x5b6015
lea ecx, [esp + 0x58]
call fcn.00407671
lea ecx, [esp + 0x34]
call fcn.005ff58f
jmp 0x5b5fe6
test eax, eax
je 0x5b6024
mov eax, dword [esp + 0x88]
mov ebx, dword [esp + 0x84]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0x30]
call fcn.005ae0fb
push 2
pop esi
mov eax, dword [esp + 0x24]
mov byte [eax], 1
mov ecx, dword [esp + 0x3c]
call fcn.005b5ceb
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 4]
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edi
mov al, 1
mov ecx, dword [esp + 0x14]
mov byte [ecx + 0x4c], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0x30]
call fcn.0060008d
lea ecx, [esp + 0x60]
mov eax, dword [eax]
mov dword [esp + 0x80], 4
and dword [ecx], 0
push esi
push ecx
push 0x1007
push 0xffff
push eax
call dword [sym.imp.ws2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x5b618a
mov eax, dword [esp + 0x60]
xor ebx, ebx
test eax, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
sete bl
shl ebx, 2
test ebx, ebx
je 0x5b5fde
mov esi, dword [eax + 0x30]
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x3c]
mov ebx, dword [eax + 0x34]
mov edi, dword [eax + 0x40]
mov byte [eax + 0x48], 1
cmp esi, 3
mov dword [esp + 4], ecx
mov dword [esp + 0xc], edx
je 0x5b5fa2
jmp 0x5b5ff0
mov ebx, dword [ecx + 8]
mov dword [esp + 0x20], edx
imul edx, edi, 0x2c
mov dword [esp + 8], ecx
mov eax, dword [ecx + 0x18]
mov dword [esp + 4], edx
mov ecx, dword [ebx + edx + 0x28]
mov edx, dword [esp + 8]
inc eax
mov dword [esp + 0x18], ebx
mov dword [edx + 0x14], ecx
mov ecx, dword [esp + 8]
mov dword [ecx + 0x18], eax
mov dword [esi + 0x24], eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x18]
mov ebx, dword [ecx + eax + 0x20]
shr ebx, 0x18
and ebx, 0x7f
inc ebx
push 0x18
pop edx
mov ecx, 0x7f000000
call fcn.005fe4d9
and eax, ebx
mov ecx, 0x7f000000
push 0x18
pop edx
push 0
push eax
call fcn.005fe49e
mov ecx, dword [esp + 0x10]
add esp, 8
mov edx, dword [esp + 4]
mov ebx, dword [esp + 0x18]
mov dword [ebx + edx + 0x20], eax
mov eax, edi
jmp 0x5b6253
mov ebx, ecx
mov dword [esp + 0x20], edx
mov edx, eax
mov dword [esp + 0x18], eax
add ebx, 8
test eax, eax
jne 0x5b61ef
mov dword [esp + 0x30], ebx
mov ebx, dword [ecx + 0xc]
mov dword [esp + 8], ecx
mov ecx, 0x80000001
cmp ebx, edi
jae 0x5b619f
xor edx, edx
cmp edi, 0x2e8ba2f
setb dl
imul eax, edi, 0x2c
shl edx, 2
test ebx, ebx
mov dword [esp + 0x78], eax
je 0x5b61a1
imul ecx, ebx, 0x2c
mov ebx, dword [esp + 0x30]
mov ebx, dword [ebx]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], 4
mov dword [esp + 0x88], ecx
jmp 0x5b61a9
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
xor ebx, ebx
jmp 0x5b5fde
jmp 0x5b61df
and dword [esp + 0x84], 0
lea ebx, [esp + 0x60]
lea eax, [esp + 0x80]
mov ecx, ebx
push eax
push dword [esp + 0x7c]
call fcn.004b8f42
pop eax
pop ecx
cmp dword [ebx], 0
mov ecx, dword [ebx + 4]
je 0x5b61d0
mov edx, dword [esp + 0x68]
jmp 0x5b61df
mov eax, dword [esp + 8]
mov dword [eax + 8], ecx
mov ecx, 0x80000001
mov dword [eax + 0xc], edi
mov ebx, dword [esp + 0x30]
call fcn.00427d90
mov ecx, dword [esp + 8]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0xc]
jne 0x5b6202
mov edi, ecx
mov ecx, ebx
call fcn.005ff98a
mov edx, dword [edi + 0x10]
mov ecx, edi
mov eax, dword [ecx + 8]
mov ebx, dword [esp + 4]
mov edi, ecx
imul ecx, edx, 0x2c
and dword [eax + ecx], 0
mov byte [eax + ecx + 4], 0
and dword [eax + ecx + 8], 0
and dword [eax + ecx + 0xc], 0
and dword [eax + ecx + 0x10], 0
and dword [eax + ecx + 0x18], 0
and dword [eax + ecx + 0x20], 0
mov dword [eax + ecx + 0x24], ebx
and dword [eax + ecx + 0x28], 0
inc dword [edi + 0x10]
inc dword [edi + 0x14]
mov ecx, edi
mov eax, dword [edi + 0x18]
inc eax
mov dword [edi + 0x18], eax
mov dword [esi + 0x24], eax
mov byte [esi + 0x30], 1
mov eax, dword [esp + 0x18]
cmp dword [ecx + 0x10], eax
jbe 0x5b66cb
mov edi, dword [esi + 0x2c]
add edi, eax
lock inc dword [esi]
mov edx, dword [esp + 0x20]
jle 0x5b66c7
mov ebx, dword [ecx + 8]
imul eax, eax, 0x2c
mov dword [esp + 8], eax
lea esi, [ebx + eax]
call fcn.00608264
mov dword [esp + 0x4c], edi
mov dword [esp + 4], esi
mov dword [esp + 0x50], esi
push dword [esp + 0x10]
call dword [sym.imp.kernel32.dll_ReleaseSRWLockShared]
mov eax, dword [esp + 8]
mov esi, dword [ebx + eax + 0x20]
shr esi, 0x18
and esi, 0x7f
sub esp, 8
and dword [esp + 4], 0
mov ecx, 0xffffff
xor edx, edx
mov dword [esp], edi
call fcn.005fe49e
pop ecx
pop edx
push 0x18
pop edx
mov ecx, 0x7f000000
push eax
push esi
call fcn.005fe49e
pop ecx
pop edx
mov dword [esp + 0x7c], eax
mov byte [esp + 0x1f], 3
mov ebx, eax
mov eax, dword [0xa7101c]
cmp eax, 4
jbe 0x5b6337
lea ecx, [esp + 0x80]
lea esi, [esp + 0x7c]
lea eax, [esp + 0x60]
lea edi, [esp + 0x1f]
mov dword [eax], esi
mov dword [eax + 4], 0x56c01b
mov dword [eax + 8], edi
mov dword [eax + 0xc], 0x56c6c0
mov dword [ecx], str.registering_event_source_with_poller:_token__interestsx
push 2
pop edx
mov dword [ecx + 4], edx
and dword [ecx + 0x10], 0
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
push 5
pop edx
push 0xa0edc0
call fcn.00565e75
pop eax
mov al, byte [edi]
mov ebx, dword [esi]
mov byte [esp + 0x10], al
jmp 0x5b633c
mov byte [esp + 0x10], 3
cmp dword [esp + 0x38], 0
je 0x5b6364
xor esi, esi
xor ebx, ebx
mov eax, 0xc00
inc ebx
mov ecx, dword [esp + 4]
movzx ebx, bl
or ebx, eax
call fcn.005ff5f3
mov dword [esp + 4], esi
jmp 0x5b5f4d
xor eax, eax
test byte [esp + 0x10], 1
mov ecx, 0x89
mov edi, dword [esp + 0x34]
lea esi, [esp + 0x80]
cmove ecx, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x20], ecx
mov eax, dword [eax]
lea ecx, [eax + 0xc]
lea edx, [eax + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x44], ecx
mov ecx, esi
call fcn.0056be77
mov ecx, esi
mov edx, 0x9f9c98
call fcn.0056c5e3
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], dl
mov dword [esp + 8], ebx
mov ecx, dword [eax + 0x10]
add eax, 8
test ecx, ecx
je 0x5b63e9
mov eax, dword [eax]
mov eax, dword [eax + ecx*4 - 4]
mov eax, dword [eax]
cmp eax, 0x21
jb 0x5b6414
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x28]
lea esi, [esp + 0x80]
mov ecx, esi
mov edx, dword [eax]
add ebx, 8
push ebx
jmp 0x5b63f9
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x80]
mov edx, dword [ecx]
mov ecx, esi
push eax
call fcn.0056d036
pop eax
cmp byte [esi], 4
je 0x5b6414
mov ebx, dword [esp + 0x80]
cmp bl, 4
jne 0x5b6630
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5b66e0
mov eax, dword [eax + 8]
mov esi, dword [eax + ecx*4 - 4]
lock inc dword [esi]
jle 0x5b66c7
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
call fcn.00608264
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], esi
lea esi, [esp + 0x48]
mov edx, edi
mov ecx, esi
push 0x48000022
call fcn.0056d192
pop eax
cmp dword [esi], 0
je 0x5b6491
push 0xfffffffffffffff4
pop esi
test esi, esi
je 0x5b660d
lea ecx, [esp + 0x60]
mov edx, edi
push dword [esi + 0x9f9e74]
call fcn.0056d192
pop eax
add esi, 4
cmp dword [esp + 0x60], 0
jne 0x5b6463
mov ebx, dword [esp + 0x64]
cmp ebx, edi
je 0x5b6463
jmp 0x5b6495
mov ebx, dword [esp + 0x4c]
mov al, byte [esp + 0x10]
mov edi, dword [esp + 0x20]
add al, al
and al, 4
movzx eax, al
or edi, eax
lea eax, [esp + 0x80]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
push 0x60
pop ecx
push 8
pop edx
call fcn.004a3937
mov esi, eax
xor eax, eax
mov ecx, dword [esp + 0x18]
inc eax
lea edx, [esi + 8]
mov dword [esi], eax
mov dword [esi + 4], eax
mov eax, dword [esp + 0x20]
and dword [esi + 8], 0
mov byte [esi + 0xc], 0
and dword [esi + 0x10], 0
and dword [esi + 0x18], 0
mov dword [esi + 0x14], eax
and dword [esi + 0x20], 0
and dword [esi + 0x1c], 0
and dword [esi + 0x28], 0
and dword [esi + 0x24], 0
and dword [esi + 0x30], 0
and dword [esi + 0x2c], 0
and dword [esi + 0x38], 0
and dword [esi + 0x34], 0
and dword [esi + 0x40], 0
and dword [esi + 0x3c], 0
and dword [esi + 0x44], 0
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], ebx
and dword [esi + 0x54], 0
and dword [esi + 0x50], 0
and word [esi + 0x58], 0
lea ebx, [esp + 0x80]
mov ecx, ebx
call fcn.00438e75
mov ecx, ebx
mov edx, 0x9f9e38
call fcn.0056c198
or edi, 0x110
mov ebx, dword [esp + 8]
movzx edx, dl
mov ecx, eax
mov dword [eax + 0x48], edi
and dword [eax + 0x3c], 0
mov dword [eax + 0x38], ebx
call fcn.00608264
mov eax, dword [esp + 0xc]
lock inc dword [eax]
jle 0x5b66c7
lock inc dword [esi]
jle 0x5b66c7
mov eax, dword [esp + 0xc]
mov cl, byte [esp + 0x10]
mov edx, esi
lea edi, [eax + 8]
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], ebx
mov byte [esp + 0x8c], cl
mov dword [esp + 0x84], esi
mov ecx, edi
call fcn.0056cfad
lea esi, [esp + 0x60]
mov edx, edi
mov ecx, esi
call fcn.0056cfec
cmp byte [esi], 4
je 0x5b65c2
mov ebx, dword [esp + 0x60]
cmp bl, 4
jne 0x5b664f
mov eax, dword [esp + 0x84]
mov ebx, dword [esp + 0x88]
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x10], eax
push 0x10
pop ecx
push 4
pop edx
call fcn.004a3937
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esi], edx
mov dword [esi + 8], ebx
mov dword [esi + 4], ecx
mov dword [esi + 0xc], edi
mov ecx, dword [esp + 0x38]
call fcn.0056d203
mov dword [esp + 0x38], esi
jmp 0x5b5f52
mov esi, dword [esp + 0x4c]
cmp dword [esp + 0x48], 0
je 0x5b678f
lea eax, [esp + 0x28]
push eax
call fcn.0056b884
pop eax
xor eax, eax
xor ebx, ebx
jmp 0x5b634d
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x84]
call fcn.00608264
cmp bl, 4
je 0x5b6440
jmp 0x5b665f
mov esi, dword [esp + 0x64]
lea ecx, [esp + 0x80]
call fcn.0056d1dd
cmp bl, 4
je 0x5b5f52
cmp bl, 4
je 0x5b5f52
mov eax, ebx
and eax, 0xffffff00
jmp 0x5b634d
lea eax, [esp + 0x80]
add edi, 0x14
mov dword [eax], edi
mov dword [eax + 4], esi
push 0x2b
pop edx
mov ecx, str.called__Result::unwrap____on_an__Err__value
push 0xa103c8
push 0xa0f0f4
push eax
call fcn.0063cff0
add esp, 0xc
ud2
push 0x23
pop edx
mov ecx, str._async_fn__resumed_after_completion
push 0xa02c3c
jmp 0x5b66d8
push 0x23
pop edx
mov ecx, str._async_fn__resumed_after_completion
push 0xa02c4c
jmp 0x5b66d8
ud2
push 0x28
pop edx
mov ecx, str.assertion_failed:_idx___self.slots.len__l
push 0xa118b4
call fcn.0063cd70
pop eax
ud2
lea ecx, [esp + 0x44]
lea eax, [esp + 0x48]
mov dword [eax], ecx
lea ecx, [esp + 0x28]
mov dword [eax + 4], 0x56c098
mov dword [eax + 8], ecx
push 2
pop edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x88], edx
push 0x20
pop ecx
mov dword [esp + 0x90], ecx
and dword [esp + 0x94], 0
push 4
pop esi
mov bl, 3
mov dword [esp + 0x98], esi
mov dword [eax + 0xc], 0x56c6a9
mov byte [esp + 0x9c], bl
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], 1
mov dword [esp + 0xb8], esi
lea ecx, [esp + 0x60]
lea esi, [esp + 0x80]
mov byte [esp + 0xbc], bl
mov dword [ecx], 0x9f9cf4
mov dword [ecx + 4], edx
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], edx
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov edx, 0x9f9d04
call fcn.0063cbf0
ud2
mov dword [esp + 0x60], esi
push 0x2e
pop edx
mov ecx, str.called__Result::unwrap_err____on_an__Ok__value
push 0x9f9e74
push 0x9f9860
lea eax, [esp + 0x68]
jmp 0x5b669e