Function at 0x100d5240
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 0x100d52d2
cmp eax, 3
jne 0x100d5cd0
mov edi, dword [edx + 0x30]
mov ebx, dword [edi + 0x24]
lea esi, [edi + 0x18]
test bl, 2
jne 0x100d5311
mov dword [esp + 0xc], edi
nop
lea ecx, [esp + 0x20]
mov edx, esi
push dword [ebp + 8]
call fcn.10106720
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, 2
je 0x100d52b0
cmp eax, 1
je 0x100d57f1
mov ecx, dword [esp + 0x24]
xor eax, eax
jmp 0x100d52b7
mov eax, 1
mov ecx, edi
cmp eax, 1
mov eax, dword [esp + 0xc]
je 0x100d5802
or ebx, ecx
mov edi, ecx
test cl, 2
mov dword [eax + 0x24], ebx
je 0x100d5280
jmp 0x100d5340
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 0x100d53ca
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 0x100d599a
lea ecx, [esp + 0x20]
mov edx, esi
push 0
push 1
call fcn.10106160
add esp, 8
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x20], 1
je 0x100d57f9
cmp eax, 1
jne 0x100d5340
or ebx, esi
mov dword [edi + 0x24], ebx
mov eax, dword [esp + 0x14]
cmp dword [eax + 0xc], 0
je 0x100d5d23
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 0x100d5819
mov eax, dword [esp + 0xb0]
cmp eax, 4
mov dword [esp + 0xc0], eax
jne 0x100d5d86
mov esi, dword [esp + 0x68]
xor eax, eax
test esi, esi
sete cl
je 0x100d582b
mov al, cl
lea ecx, [eax + eax*2]
mov eax, ecx
jmp 0x100d5937
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 0x100d5ced
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 0x100d5ced
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 0x100d5d34
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], 0x10049980
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], 0x10049cf0
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.100ffb30
test eax, eax
je 0x100d5d3b
mov ecx, dword [eax]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
lea edx, [ecx + 1]
test edx, edx
jle 0x100d5d58
mov dword [eax], edx
cmp dword [eax + 4], 3
je 0x100d5cf7
mov edx, dword [eax + 0xc]
cmp edx, 0xffffffff
je 0x100d5757
test edx, edx
je 0x100d5cf7
lock inc dword [edx + 4]
jle 0x100d5ce9
dec dword [eax]
test edx, edx
je 0x100d5cf9
cmp edx, 0xffffffff
mov dword [esp + 0xc], edx
je 0x100d5761
mov eax, dword [edx]
nop dword [eax]
test eax, eax
je 0x100d5761
js 0x100d5ce9
lea ecx, [eax + 1]
lock cmpxchg dword [edx], ecx
jne 0x100d56b0
mov dword [esp + 0x90], edx
mov ecx, dword [edx + 0x34]
call fcn.100f4810
mov eax, dword [0x104dec50]
test eax, eax
jne 0x100d5c69
xor eax, eax
mov ecx, dword [esp + 0xc]
mov bl, byte [ecx + 0x38]
lea edx, [ecx + 0x34]
test bl, bl
jne 0x100d5e23
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 0x100d5a1b
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 0x100d5d12
mov edx, dword [ecx + 0x24]
mov ebx, dword [edx + esi*4]
cmp ebx, dword [edi + 4]
jb 0x100d573d
mov ebx, closesocket
xchg dword [edi], ebx
cmp ebx, 0x7fffffff
jne 0x100d5a1d
add edi, 0x14
inc esi
add eax, 0xffffffec
jne 0x100d5720
jmp 0x100d5a7f
mov dword [eax], ecx
mov dword [esp + 0xc], 0xffffffff
mov ecx, 0x1041fa17
mov edx, 0x19
call fcn.1004c640
mov edi, eax
call sub.KERNEL32.dll_GetProcessHeap
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x100d5d75
mov dword [eax], edi
mov dword [eax + 4], 0x1041909c
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 0x100d57d8
lock dec dword [edx + 4]
jne 0x100d57d8
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.100c9750
mov ecx, dword [esp + 0x10]
mov eax, 1
mov edx, edi
jmp 0x100d599f
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
jmp 0x100d5982
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov byte [eax + 0x34], 3
mov dword [ecx], 2
jmp 0x100d5a13
call sub.WS2_32.dll_WSAGetLastError
mov edx, dword [esp + 0x14]
mov esi, eax
xor eax, eax
jmp 0x100d5982
mov eax, dword [edi]
mov ecx, dword [eax]
mov dword [esp + 0xc], eax
call fcn.100f4810
mov eax, dword [0x104dec50]
test eax, eax
jne 0x100d5c59
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0xc]
mov al, byte [edx + 4]
test al, al
jne 0x100d5dfd
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 0x100d588c
mov dword [esp + 0x18], ecx
add edx, 8
mov ecx, edi
call fcn.10049670
mov edx, dword [esp + 0x18]
jmp 0x100d589f
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 0x100d58b3
mov eax, dword [0x104dec50]
test eax, eax
jne 0x100d5c75
mov eax, dword [esp + 0xc]
mov edi, dword [eax]
mov eax, dword [0x104dec60]
test eax, eax
jne 0x100d58e8
mov dword [esp + 0x10], edx
mov ecx, 0x10421629
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f30b0
cmovne eax, edx
mov edx, dword [esp + 0x10]
mov dword [0x104dec60], eax
cmp eax, 0x100f30b0
jne 0x100d5901
mov eax, dword [edi]
mov byte [eax + 0x18], 0
push eax
mov edi, edx
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, edi
jmp 0x100d5933
mov dword [esp + 0x10], edx
mov eax, dword [0x104dec78]
test eax, eax
jne 0x100d592c
mov ecx, 0x10421918
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f4ef0
cmovne eax, edx
mov dword [0x104dec78], eax
push edi
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
cmp cl, 3
jne 0x100d5982
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 0x100d599f
lea ecx, [edx + 8]
mov ebx, esi
mov edi, eax
mov esi, edx
call fcn.100c8bb0
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 0x100d5a83
mov eax, dword [edi + 0xc]
mov dword [esp + 0x10], edx
test eax, eax
je 0x100d5cad
mov edx, dword [edi + 0x10]
cmp ebx, edx
jae 0x100d5e4e
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 0x100d5e5a
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 0x100d5a9c
mov eax, dword [0x104dec50]
test eax, eax
jne 0x100d5c93
mov eax, dword [esp + 0x18]
mov esi, dword [eax]
mov eax, dword [0x104dec60]
test eax, eax
jne 0x100d5ac9
mov ecx, 0x10421629
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f30b0
cmovne eax, edx
mov dword [0x104dec60], eax
cmp eax, 0x100f30b0
jne 0x100d5ade
mov eax, dword [esi]
mov byte [eax + 0x18], 0
push eax
call sub.KERNEL32.dll_LeaveCriticalSection
jmp 0x100d5b08
mov eax, dword [0x104dec78]
test eax, eax
jne 0x100d5b05
mov ecx, 0x10421918
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f4ef0
cmovne eax, edx
mov dword [0x104dec78], eax
push esi
call eax
cmp byte [esp + 0x10], 0
je 0x100d5b37
mov edx, 0x10424ba0
lea ecx, [esp + 0x48]
push 0x27
call fcn.10105fc0
add esp, 4
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
jmp 0x100d5c3b
mov edx, dword [esp + 0xc]
lock inc dword [edx + 0x3c]
cmp ebx, 0xffffffff
je 0x100d5b4b
mov byte [esp + 0x48], 3
jmp 0x100d5b62
mov edx, 0x104185a5
lea ecx, [esp + 0x48]
push 0xd
call fcn.10048fd0
mov edx, dword [esp + 0x10]
add esp, 4
mov eax, dword [esp + 0x48]
cmp al, 3
jne 0x100d5c1b
mov ecx, dword [0x104debf8]
mov eax, edx
add eax, 8
cmp ecx, 5
jb 0x100d5b84
mov ecx, dword [0x104debfc]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x20]
push 1
push 3
push ebx
push eax
call fcn.1004a570
add esp, 0x10
mov eax, dword [esp + 0x48]
cmp al, 3
jne 0x100d5c21
mov edx, dword [esp + 0xc]
lock dec dword [edx]
jne 0x100d5bbb
lea ecx, [esp + 0x90]
call fcn.1003b1d0
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 0x100d526b
mov esi, dword [esp + 0x4c]
jmp 0x100d5c29
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 0x100d57b8
lea ecx, [esp + 0x90]
call fcn.1003b1d0
jmp 0x100d57b4
call fcn.100fa7c0
xor al, 1
mov dword [esp + 0x10], eax
jmp 0x100d584d
call fcn.100fa7c0
xor al, 1
jmp 0x100d56e5
mov edi, edx
call fcn.100fa7c0
mov edx, edi
test al, al
jne 0x100d58b3
mov eax, dword [esp + 0xc]
mov byte [eax + 4], 1
jmp 0x100d58b3
call fcn.100fa7c0
mov ecx, dword [esp + 0xc]
test al, al
jne 0x100d5a9c
mov byte [ecx + 0x38], 1
jmp 0x100d5a9c
mov ecx, edi
call fcn.10105e10
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x100d5a2c
mov ecx, 0x10424b1c
mov edx, 0x27
push 0x10424b44
jmp 0x100d5d08
mov ecx, str._async_fn__resumed_after_completion
mov edx, 0x23
push 0x1041fa30
call fcn.100082b0
add esp, 4
ud2
ud2
mov ecx, 4
jmp 0x100d5d7a
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 0x10424aec
call fcn.1000a730
add esp, 4
ud2
mov ecx, esi
push 0x10424b0c
call fcn.10008300
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__filed
mov edx, 0x2b
push 0x10424ed0
jmp 0x100d5cdf
mov ecx, 0x90
jmp 0x100d5d7a
lea eax, [esp + 0x48]
mov ecx, 0x1044ace7
mov edx, 0x46
push 0x1044ad30
push 0x10423110
jmp 0x100d5e43
lea eax, [esp + 0x48]
mov ecx, 0x10424705
mov edx, 0x18
push 0x10424a8c
push 0x10424720
jmp 0x100d5e43
mov ecx, 0xc
mov edx, 4
call fcn.10006540
ud2
lea ecx, [esp + 0xe0]
lea edx, [esp + 0x90]
lea eax, [esp + 0xc0]
mov dword [esp + 0x20], 0x10424444
mov dword [esp + 0x24], 3
mov dword [esp + 0x28], 0
mov dword [esp + 0x90], 0x10422d60
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x4c], 0x100b98b0
mov dword [esp + 0x50], edx
mov edx, 0x10422d64
mov dword [esp + 0xe0], eax
mov dword [esp + 0x54], 0x100b98b0
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 2
call fcn.100f9210
ud2
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], edx
mov ecx, 0x1044a65b
mov edx, 0x2b
mov byte [esp + 0x24], al
lea eax, [esp + 0x20]
push 0x1041871c
push 0x1041870c
jmp 0x100d5e43
mov dword [esp + 0x48], edx
mov byte [esp + 0x4c], al
lea eax, [esp + 0x48]
mov ecx, 0x1044a65b
mov edx, 0x2b
push 0x10424afc
push 0x10423120
push eax
call fcn.1000a790
add esp, 0xc
ud2
mov ecx, ebx
push 0x10424b54
jmp 0x100d5d19
mov ecx, str.assertion_failed:_value___self.max_value__
mov edx, 0x2b
push 0x10424b90
call fcn.100ff9a0
add esp, 4
ud2