Function at 0x100d5540
Capabilities:
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x130
movzx eax, byte [edx + 0x34]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
test eax, eax
je 0x100d55d2
cmp eax, 3
jne 0x100d5fd0
mov edi, dword [edx + 0x30]
mov ebx, dword [edi + 0x24]
lea esi, [edi + 0x18]
test bl, 2
jne 0x100d5611
mov dword [esp + 0xc], edi
nop
lea ecx, [esp + 0x20]
mov edx, esi
push dword [ebp + 8]
call fcn.10106a00
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, 2
je 0x100d55b0
cmp eax, 1
je 0x100d5af1
mov ecx, dword [esp + 0x24]
xor eax, eax
jmp 0x100d55b7
mov eax, 1
mov ecx, edi
cmp eax, 1
mov eax, dword [esp + 0xc]
je 0x100d5b02
or ebx, ecx
mov edi, ecx
test cl, 2
mov dword [eax + 0x24], ebx
je 0x100d5580
jmp 0x100d5640
mov edi, dword [edx]
mov esi, dword [edx + 4]
mov ebx, ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 1
push eax
push 0x8004667e
push edi
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x100d56ca
call sub.KERNEL32.dll_GetLastError
mov esi, eax
push edi
call sub.WS2_32.dll_closesocket
mov edx, dword [esp + 0x14]
xor ecx, ecx
jmp 0x100d5c9a
lea ecx, [esp + 0x20]
mov edx, esi
push 0
push 1
call fcn.10106440
add esp, 8
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x20], 1
je 0x100d5af9
cmp eax, 1
jne 0x100d5640
or ebx, esi
mov dword [edi + 0x24], ebx
mov eax, dword [esp + 0x14]
cmp dword [eax + 0xc], 0
je 0x100d6023
lea edi, [eax + 8]
lea ecx, [esp + 0xb0]
lea edx, [esp + 0x68]
mov eax, dword [edi]
mov eax, dword [eax + 0x88]
mov dword [esp + 0x68], 0
mov dword [esp + 0xb0], 4
push ecx
push edx
push 0x1007
push 0xffff
push eax
call sub.WS2_32.dll_getsockopt
mov ebx, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x100d5b19
mov eax, dword [esp + 0xb0]
cmp eax, 4
mov dword [esp + 0xc0], eax
jne 0x100d6086
mov esi, dword [esp + 0x68]
xor eax, eax
test esi, esi
sete cl
je 0x100d5b2b
mov al, cl
lea ecx, [eax + eax*2]
mov eax, ecx
jmp 0x100d5c37
movsd xmm0, qword [esi + 0x18]
movsd qword [esp + 0x60], xmm0
movsd xmm0, qword [esi + 0x10]
movsd qword [esp + 0x58], xmm0
movsd xmm0, qword [esi]
movsd xmm1, qword [esi + 8]
movsd qword [esp + 0x50], xmm1
movsd qword [esp + 0x48], xmm0
call sub.KERNEL32.dll_GetProcessHeap
push 4
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x100d5fed
xorps xmm0, xmm0
mov dword [eax], 0
mov ebx, eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x30], 0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x20], xmm0
call sub.KERNEL32.dll_GetProcessHeap
push 4
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x100d5fed
mov dword [eax], 0
mov esi, eax
mov eax, dword [esp + 0x80]
movaps xmm1, xmmword [esp + 0x20]
movaps xmm0, xmmword [esp + 0x70]
movsd xmm2, qword [esp + 0x58]
movsd xmm3, qword [esp + 0x48]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x30]
movaps xmmword [esp + 0xc0], xmm1
movsd xmm1, qword [esp + 0x50]
movaps xmmword [esp + 0xe0], xmm0
movsd qword [esp + 0x30], xmm2
movsd qword [esp + 0x20], xmm3
movaps xmm2, xmmword [esp + 0xe0]
mov dword [esp + 0xd0], eax
movsd qword [esp + 0x28], xmm1
movsd xmm1, qword [esp + 0x60]
mov eax, dword [esp + 0xf0]
movaps xmmword [esp + 0x70], xmm2
movsd qword [esp + 0x38], xmm1
mov dword [esp + 0x80], eax
movaps xmm1, xmmword [esp + 0xc0]
mov eax, dword [esp + 0xd0]
movaps xmmword [esp + 0x90], xmm1
mov dword [esp + 0xa0], eax
call sub.KERNEL32.dll_GetProcessHeap
push 0x90
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x100d6034
mov dword [eax], esi
mov byte [eax + 4], 0
movzx ecx, word [esp + 0x45]
mov word [eax + 5], cx
mov cl, byte [esp + 0x47]
mov byte [eax + 7], cl
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 0x10], 0
movsd xmm0, qword [esp + 0x20]
movsd xmm1, qword [esp + 0x28]
movsd qword [eax + 0x18], xmm0
movsd qword [eax + 0x20], xmm1
movsd xmm0, qword [esp + 0x30]
movsd qword [eax + 0x28], xmm0
movsd xmm0, qword [esp + 0x38]
movsd qword [eax + 0x30], xmm0
mov byte [eax + 0x38], 3
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6b]
mov dword [eax + 0x39], ecx
mov dword [eax + 0x3c], edx
mov dword [eax + 0x40], 0
movsd xmm0, qword [esp + 0xb0]
movsd xmm1, qword [esp + 0xb8]
movsd qword [eax + 0x44], xmm0
movsd qword [eax + 0x4c], xmm1
mov byte [eax + 0x54], 0
mov ecx, dword [esp + 0x80]
mov dword [eax + 0x68], ecx
movsd xmm0, qword [esp + 0x70]
movsd xmm1, qword [esp + 0x78]
movsd qword [eax + 0x60], xmm1
movsd qword [eax + 0x58], xmm0
mov dword [eax + 0x6c], 0x10049c30
mov ecx, dword [esp + 0xa0]
mov dword [eax + 0x80], ecx
movsd xmm0, qword [esp + 0x90]
movsd xmm1, qword [esp + 0x98]
movsd qword [eax + 0x78], xmm1
movsd qword [eax + 0x70], xmm0
mov dword [eax + 0x84], 0x10049fa0
mov dword [eax + 0x88], edi
mov dword [eax + 0x8c], 1
movzx edx, word [esp + 0x20]
mov cl, byte [esp + 0x22]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov byte [esp + 0x28], 0
mov word [esp + 0x42], dx
mov byte [esp + 0x44], cl
movzx eax, word [esp + 0x42]
mov word [esp + 0x29], ax
mov al, byte [esp + 0x44]
mov byte [esp + 0x2b], al
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0
call fcn.100ffe10
test eax, eax
je 0x100d603b
mov ecx, dword [eax]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
lea edx, [ecx + 1]
test edx, edx
jle 0x100d6058
mov dword [eax], edx
cmp dword [eax + 4], 3
je 0x100d5ff7
mov edx, dword [eax + 0xc]
cmp edx, 0xffffffff
je 0x100d5a57
test edx, edx
je 0x100d5ff7
lock inc dword [edx + 4]
jle 0x100d5fe9
dec dword [eax]
test edx, edx
je 0x100d5ff9
cmp edx, 0xffffffff
mov dword [esp + 0xc], edx
je 0x100d5a61
mov eax, dword [edx]
nop dword [eax]
test eax, eax
je 0x100d5a61
js 0x100d5fe9
lea ecx, [eax + 1]
lock cmpxchg dword [edx], ecx
jne 0x100d59b0
mov dword [esp + 0x90], edx
mov ecx, dword [edx + 0x34]
call fcn.100f4af0
mov eax, dword [0x10551f14]
test eax, eax
jne 0x100d5f69
xor eax, eax
mov ecx, dword [esp + 0xc]
mov bl, byte [ecx + 0x38]
lea edx, [ecx + 0x34]
test bl, bl
jne 0x100d6123
mov dword [esp + 0xac], eax
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x18], edx
mov dl, 1
mov dword [esp + 0x10], edx
test eax, eax
je 0x100d5d1b
mov edi, dword [ecx + 0x2c]
shl eax, 2
xor esi, esi
lea eax, [eax + eax*4]
nop
mov edx, dword [ecx + 0x28]
cmp edx, esi
jbe 0x100d6012
mov edx, dword [ecx + 0x24]
mov ebx, dword [edx + esi*4]
cmp ebx, dword [edi + 4]
jb 0x100d5a3d
mov ebx, bind
xchg dword [edi], ebx
cmp ebx, 0x7fffffff
jne 0x100d5d1d
add edi, 0x14
inc esi
add eax, 0xffffffec
jne 0x100d5a20
jmp 0x100d5d7f
mov dword [eax], ecx
mov dword [esp + 0xc], 0xffffffff
mov ecx, 0x1039e7a7
mov edx, 0x19
call fcn.1004c900
mov edi, eax
call sub.KERNEL32.dll_GetProcessHeap
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x100d6075
mov dword [eax], edi
mov dword [eax + 4], 0x10397e2c
mov byte [eax + 8], 0x10
mov esi, eax
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], 2
movzx eax, word [esp + 0x45]
mov word [esi + 9], ax
mov al, byte [esp + 0x47]
mov byte [esi + 0xb], al
mov edx, dword [esp + 0xc]
cmp edx, 0xffffffff
je 0x100d5ad8
lock dec dword [edx + 4]
jne 0x100d5ad8
mov dword [esp + 0xc], edx
call sub.KERNEL32.dll_GetProcessHeap
push dword [esp + 0xc]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
lea ecx, [esp + 0x20]
call fcn.100c9a50
mov ecx, dword [esp + 0x10]
mov eax, 1
mov edx, edi
jmp 0x100d5c9f
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
jmp 0x100d5c82
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov byte [eax + 0x34], 3
mov dword [ecx], 2
jmp 0x100d5d13
call sub.WS2_32.dll_WSAGetLastError
mov edx, dword [esp + 0x14]
mov esi, eax
xor eax, eax
jmp 0x100d5c82
mov eax, dword [edi]
mov ecx, dword [eax]
mov dword [esp + 0xc], eax
call fcn.100f4af0
mov eax, dword [0x10551f14]
test eax, eax
jne 0x100d5f59
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0xc]
mov al, byte [edx + 4]
test al, al
jne 0x100d60fd
mov ecx, dword [edx + 0x38]
mov esi, dword [edx + 0x3c]
mov dword [edx + 0x38], 3
mov dword [edx + 0x3c], 0
mov eax, ecx
add al, 0xfd
cmp al, 2
jbe 0x100d5b8c
mov dword [esp + 0x18], ecx
add edx, 8
mov ecx, edi
call fcn.10049920
mov edx, dword [esp + 0x18]
jmp 0x100d5b9f
mov al, 3
mov dword [edx + 0x3c], esi
mov dword [edx + 0x38], ecx
xor esi, esi
mov edx, 3
mov dword [esp + 0x18], eax
cmp byte [esp + 0x10], 0
jne 0x100d5bb3
mov eax, dword [0x10551f14]
test eax, eax
jne 0x100d5f75
mov eax, dword [esp + 0xc]
mov edi, dword [eax]
mov eax, dword [0x10551f24]
test eax, eax
jne 0x100d5be8
mov dword [esp + 0x10], edx
mov ecx, 0x103a03b9
mov edx, 0x17
call fcn.100f2fc0
test eax, eax
mov eax, 0x100f3390
cmovne eax, edx
mov edx, dword [esp + 0x10]
mov dword [0x10551f24], eax
cmp eax, 0x100f3390
jne 0x100d5c01
mov eax, dword [edi]
mov byte [eax + 0x18], 0
push eax
mov edi, edx
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, edi
jmp 0x100d5c33
mov dword [esp + 0x10], edx
mov eax, dword [0x10551f3c]
test eax, eax
jne 0x100d5c2c
mov ecx, str.ReleaseSRWLockExclusive
mov edx, 0x17
call fcn.100f2fc0
test eax, eax
mov eax, 0x100f51d0
cmovne eax, edx
mov dword [0x10551f3c], eax
push edi
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
cmp cl, 3
jne 0x100d5c82
movsd xmm0, qword [edx + 0x28]
mov ecx, dword [edx + 8]
mov esi, dword [edx + 0xc]
xor eax, eax
movsd qword [esp + 0x118], xmm0
movsd xmm0, qword [edx + 0x20]
movsd qword [esp + 0x110], xmm0
movsd xmm0, qword [edx + 0x18]
movsd qword [esp + 0x108], xmm0
movsd xmm0, qword [edx + 0x10]
movsd qword [esp + 0x100], xmm0
jmp 0x100d5c9f
lea ecx, [edx + 8]
mov ebx, esi
mov edi, eax
mov esi, edx
call fcn.100c8eb0
mov edx, esi
mov esi, ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edi
mov eax, 1
movsd xmm0, qword [esp + 0x118]
movsd xmm1, qword [esp + 0x108]
movsd qword [esp + 0x38], xmm0
movsd xmm0, qword [esp + 0x110]
movsd qword [esp + 0x28], xmm1
movsd qword [esp + 0x30], xmm0
movsd xmm0, qword [esp + 0x100]
movsd qword [esp + 0x20], xmm0
mov byte [edx + 0x34], 1
mov dword [ebx], eax
mov dword [ebx + 8], esi
mov dword [ebx + 4], ecx
movsd xmm1, qword [esp + 0x28]
movsd xmm0, qword [esp + 0x20]
movsd xmm2, qword [esp + 0x30]
movsd qword [ebx + 0x14], xmm1
movsd xmm1, qword [esp + 0x38]
movsd qword [ebx + 0xc], xmm0
movsd qword [ebx + 0x1c], xmm2
movsd qword [ebx + 0x24], xmm1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
jmp 0x100d5d83
mov eax, dword [edi + 0xc]
mov dword [esp + 0x10], edx
test eax, eax
je 0x100d5fad
mov edx, dword [edi + 0x10]
cmp ebx, edx
jae 0x100d614e
mov ecx, ebx
mov dword [esp + 0xa8], eax
shl ecx, 5
mov edx, dword [eax + ecx]
mov eax, dword [esp + 0x10]
mov dword [eax + esi*4], edx
mov eax, dword [esp + 0xa8]
mov eax, dword [eax + ecx + 4]
add ebx, dword [edi + 8]
cmp ebx, 0x4000
jae 0x100d615a
shr eax, 5
and ebx, 0xfbffffff
mov dword [esp + 0x10], 0
and eax, 0x4000000
or ebx, eax
mov esi, dword [esp + 0x14]
cmp byte [esp + 0xac], 0
mov edi, esi
jne 0x100d5d9c
mov eax, dword [0x10551f14]
test eax, eax
jne 0x100d5f93
mov eax, dword [esp + 0x18]
mov esi, dword [eax]
mov eax, dword [0x10551f24]
test eax, eax
jne 0x100d5dc9
mov ecx, 0x103a03b9
mov edx, 0x17
call fcn.100f2fc0
test eax, eax
mov eax, 0x100f3390
cmovne eax, edx
mov dword [0x10551f24], eax
cmp eax, 0x100f3390
jne 0x100d5dde
mov eax, dword [esi]
mov byte [eax + 0x18], 0
push eax
call sub.KERNEL32.dll_LeaveCriticalSection
jmp 0x100d5e08
mov eax, dword [0x10551f3c]
test eax, eax
jne 0x100d5e05
mov ecx, str.ReleaseSRWLockExclusive
mov edx, 0x17
call fcn.100f2fc0
test eax, eax
mov eax, 0x100f51d0
cmovne eax, edx
mov dword [0x10551f3c], eax
push esi
call eax
cmp byte [esp + 0x10], 0
je 0x100d5e37
mov edx, 0x103a3930
lea ecx, [esp + 0x48]
push 0x27
call fcn.101062a0
add esp, 4
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
jmp 0x100d5f3b
mov edx, dword [esp + 0xc]
lock inc dword [edx + 0x3c]
cmp ebx, 0xffffffff
je 0x100d5e4b
mov byte [esp + 0x48], 3
jmp 0x100d5e62
mov edx, 0x10397335
lea ecx, [esp + 0x48]
push 0xd
call fcn.10049280
mov edx, dword [esp + 0x10]
add esp, 4
mov eax, dword [esp + 0x48]
cmp al, 3
jne 0x100d5f1b
mov ecx, dword [0x10551ebc]
mov eax, edx
add eax, 8
cmp ecx, 5
jb 0x100d5e84
mov ecx, dword [0x10551ec0]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x20]
push 1
push 3
push ebx
push eax
call fcn.1004a820
add esp, 0x10
mov eax, dword [esp + 0x48]
cmp al, 3
jne 0x100d5f21
mov edx, dword [esp + 0xc]
lock dec dword [edx]
jne 0x100d5ebb
lea ecx, [esp + 0x90]
call fcn.1003b480
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x28]
mov eax, dword [esp + 0x20]
mov esi, edi
movsd xmm0, qword [ecx]
movsd xmm1, qword [ecx + 8]
mov ecx, dword [esp + 0x24]
movsd qword [esp + 0x70], xmm0
movsd qword [esp + 0x78], xmm1
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov eax, edi
movsd xmm0, qword [esp + 0x70]
movsd xmm1, qword [esp + 0x78]
movsd qword [edi + 0x10], xmm0
movsd qword [edi + 0x18], xmm1
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], ebx
lea edi, [edi + 8]
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], edi
jmp 0x100d556b
mov esi, dword [esp + 0x4c]
jmp 0x100d5f29
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0xc]
mov ecx, eax
shrd ecx, esi, 8
mov ebx, dword [esp + 0x1c]
shl ecx, 8
movzx eax, al
or eax, ecx
mov dword [esp + 0x10], eax
lock dec dword [edx]
jne 0x100d5ab8
lea ecx, [esp + 0x90]
call fcn.1003b480
jmp 0x100d5ab4
call fcn.100faaa0
xor al, 1
mov dword [esp + 0x10], eax
jmp 0x100d5b4d
call fcn.100faaa0
xor al, 1
jmp 0x100d59e5
mov edi, edx
call fcn.100faaa0
mov edx, edi
test al, al
jne 0x100d5bb3
mov eax, dword [esp + 0xc]
mov byte [eax + 4], 1
jmp 0x100d5bb3
call fcn.100faaa0
mov ecx, dword [esp + 0xc]
test al, al
jne 0x100d5d9c
mov byte [ecx + 0x38], 1
jmp 0x100d5d9c
mov ecx, edi
call fcn.101060f0
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x100d5d2c
mov ecx, 0x103a38ac
mov edx, 0x27
push 0x103a38d4
jmp 0x100d6008
mov ecx, str._async_fn__resumed_after_completion
mov edx, 0x23
push 0x1039e7c0
call fcn.10008540
add esp, 4
ud2
ud2
mov ecx, 4
jmp 0x100d607a
mov dword [eax], ecx
mov ecx, str.there_is_no_reactor_running__must_be_called_from_the_context_of_Tokio_runtime
mov edx, 0x4d
push 0x103a387c
call fcn.1000a9c0
add esp, 4
ud2
mov ecx, esi
push 0x103a389c
call fcn.10008590
add esp, 4
ud2
mov ecx, str.called__Option::unwrap____on_a__None__valueC:UsersAdministrator.cargo_registry_srcgithub.com_1ecc6299db9ec823url_2.2.0_srclib.rs__file
mov edx, 0x2b
push 0x103a3c60
jmp 0x100d5fdf
mov ecx, 0x90
jmp 0x100d607a
lea eax, [esp + 0x48]
mov ecx, 0x103c9a77
mov edx, 0x46
push 0x103c9ac0
push 0x103a1ea0
jmp 0x100d6143
lea eax, [esp + 0x48]
mov ecx, 0x103a3495
mov edx, 0x18
push 0x103a381c
push 0x103a34b0
jmp 0x100d6143
mov ecx, 0xc
mov edx, 4
call fcn.100067d0
ud2
lea ecx, [esp + 0xe0]
lea edx, [esp + 0x90]
lea eax, [esp + 0xc0]
mov dword [esp + 0x20], 0x103a31d4
mov dword [esp + 0x24], 3
mov dword [esp + 0x28], 0
mov dword [esp + 0x90], 0x103a1af0
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x4c], 0x100b9ba0
mov dword [esp + 0x50], edx
mov edx, 0x103a1af4
mov dword [esp + 0xe0], eax
mov dword [esp + 0x54], 0x100b9ba0
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 2
call fcn.100f94f0
ud2
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], edx
mov ecx, 0x103c93eb
mov edx, 0x2b
mov byte [esp + 0x24], al
lea eax, [esp + 0x20]
push 0x103974ac
push 0x1039749c
jmp 0x100d6143
mov dword [esp + 0x48], edx
mov byte [esp + 0x4c], al
lea eax, [esp + 0x48]
mov ecx, 0x103c93eb
mov edx, 0x2b
push 0x103a388c
push 0x103a1eb0
push eax
call fcn.1000aa20
add esp, 0xc
ud2
mov ecx, ebx
push 0x103a38e4
jmp 0x100d6019
mov ecx, str.assertion_failed:_value___self.max_value__
mov edx, 0x2b
push 0x103a3920
call fcn.100ffc80
add esp, 4
ud2