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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [edx + 0x90]
mov ebx, ecx
cmp eax, 0x3b9aca00
jne 0x4beb8a
mov ecx, dword [edx + 0x74]
mov eax, dword [edx + 0x78]
mov esi, dword [edx + 0x6c]
cmp ecx, eax
jb 0x4beb75
mov eax, dword [edx + 0x70]
mov dword [esp + 0x20], esi
lea edi, [esp + 0x20]
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0x7c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x84]
push 0
push edi
push dword [edx + 0x80]
push ecx
mov edi, edx
call dword [eax + 0x24]
add esp, 0x10
cmp byte [esp + 0x40], 4
jne 0x4bedea
movq xmm0, qword [esp + 0x28]
xor ecx, ecx
mov dword [edi + 0x74], 0
movd eax, xmm0
movq qword [edi + 0x78], xmm0
add esi, ecx
sub eax, ecx
mov dword [ebx + 4], esi
mov dword [ebx + 8], eax
mov dword [ebx], 0
jmp 0x4bf090
mov ecx, dword [edx + 0x88]
mov dword [esp + 0x30], edx
mov edx, dword [edx + 0x8c]
lea esi, [esp + 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
push esi
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x4bf0e7
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
movq xmm0, qword [0x9031f8]
movd ebx, xmm0
pshufd xmm0, xmm0, 0x55
mov dword [esp + 0xc], ecx
movd edx, xmm0
mov eax, ebx
or eax, edx
jne 0x4bec37
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
push esi
call dword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x4bf0e7
movq xmm0, qword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
movq qword [0x9031f8], xmm0
mov eax, ebx
mov ecx, dword [esp + 0xc]
or eax, edx
je 0x4bf0ed
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 4], edx
push edx
push ebx
push ecx
push edi
call fcn.004ec950
mov esi, edx
mov ecx, eax
mul ebx
imul edi, esi, 0x3b9aca00
imul esi, ebx
mov ebx, dword [esp + 0x3c]
add esi, edx
mov edx, ecx
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0xc]
imul edx, dword [esp + 4]
add esi, edx
sub ebx, eax
mov edx, 0x3b9aca00
mov eax, ecx
sbb edi, esi
mul edx
mov esi, edx
mov dword [esp + 0xc], eax
mov eax, ebx
mov edx, 0x3b9aca00
imul ecx, edi, 0x3b9aca00
add esi, dword [esp + 0x34]
mul edx
add edx, ecx
push dword [esp + 4]
push dword [esp + 0x3c]
push edx
push eax
call fcn.004ec950
mov ebx, eax
add ebx, dword [esp + 0xc]
adc edx, esi
push 0
push 0x3b9aca00
push edx
push ebx
call fcn.004ec950
imul ecx, eax, 0x3b9aca00
mov esi, edx
mov edx, eax
sub ebx, ecx
lea ecx, [esp + 0x20]
push ebx
push esi
call fcn.0048cf70
add esp, 8
cmp ecx, 0x3b9aca00
jne 0x4bed76
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, 0x1a
call fcn.0049d570
mov esi, dword [esp + 8]
test eax, eax
je 0x4bf0ed
mov word [eax + 0x18], 0x6573
mov dword [eax + 0x14], 0x6e6f7073
mov dword [eax + 0x10], 0x65722067
mov dword [eax + 0xc], 0x6e696461
mov dword [eax + 8], 0x65722074
mov dword [eax + 4], 0x756f2064
mov dword [eax], 0x656d6974
mov dword [esp + 0x10], 0x1a
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 0x1a
lea ecx, [esp + 0x40]
mov edx, 0x16
push eax
call fcn.004bace0
add esp, 4
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x4bf090
mov ebx, dword [esp + 0x30]
mov esi, eax
mov edi, edx
mov dword [esp + 4], ecx
mov eax, dword [ebx + 0x84]
push dword [ebx + 0x80]
call dword [eax + 0x5c]
mov edx, ebx
add esp, 4
mov ebx, dword [esp + 8]
test eax, eax
je 0x4beb0b
mov dword [esp + 0x38], eax
mov eax, dword [eax]
mov ecx, 0x3e8
mov dword [esp + 0xc], eax
mov eax, edi
mul ecx
mov edx, 0x3e8
mov ecx, eax
mov eax, esi
seto bl
mul edx
mov esi, edx
mov edi, eax
mov edx, 0xffffffff
add esi, ecx
mov dword [esp + 0x34], edi
setb al
or al, bl
mov byte [esp + 0x3c], al
je 0x4beef1
mov ebx, dword [esp + 8]
jmp 0x4bef6d
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], esi
call fcn.004a9480
cmp al, 0xd
jne 0x4beece
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, 0x1a
call fcn.0049d570
test eax, eax
je 0x4bf0ed
mov word [eax + 0x18], 0x6573
mov dword [eax + 0x14], 0x6e6f7073
mov dword [eax + 0x10], 0x65722067
mov dword [eax + 0xc], 0x6e696461
mov dword [eax + 8], 0x65722074
mov dword [eax + 4], 0x756f2064
mov dword [eax], 0x656d6974
mov dword [esp + 0x20], 0x1a
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0x1a
lea ecx, [esp + 0x10]
mov edx, 0x16
push eax
call fcn.004bace0
add esp, 4
cmp byte [esp + 0x40], 3
jne 0x4beede
mov dword [esp + 8], ebx
mov ebx, dword [esi + 4]
mov edi, dword [esi]
mov eax, dword [ebx]
test eax, eax
je 0x4bee9b
push edi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x4beeb9
cmp dword [ebx + 8], 9
jb 0x4beeaa
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, dword [esp + 8]
jmp 0x4beede
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
jmp 0x4bf08a
mov ebx, dword [esp + 4]
mov ecx, 0x431bde83
mov eax, ebx
mul ecx
mov eax, edi
mov ecx, edx
shr ecx, 0x12
add eax, ecx
mov eax, esi
adc eax, 0
mov eax, esi
jae 0x4bef1d
mov ebx, dword [esp + 8]
mov esi, eax
mov edx, 0xffffffff
jmp 0x4bef6d
add ecx, edi
mov edi, eax
mov esi, eax
mov eax, ebx
mov edx, 0x431bde83
adc edi, 0
mul edx
mov eax, ebx
xor ebx, ebx
shr edx, 0x12
imul edx, edx, 0xf4240
sub eax, edx
mov edx, edi
setne bl
add ebx, ecx
mov ebx, dword [esp + 8]
adc edx, 0
mov edx, 0xffffffff
jb 0x4bef6d
xor edx, edx
test eax, eax
setne dl
add ecx, edx
adc edi, 0
xor edx, edx
neg edi
sbb edx, edx
or edx, ecx
je 0x4bf098
mov dword [esp + 0x20], edx
push 4
lea edi, [esp + 0x24]
push edi
push 0x1006
push 0xffff
push dword [esp + 0x1c]
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4befd1
mov eax, dword [esp + 0x38]
cmp byte [esp + 0x3c], 0
mov ecx, dword [eax]
mov eax, 0xffffffff
jne 0x4bf036
mov eax, dword [esp + 4]
mov edx, 0x431bde83
mov dword [esp + 8], ecx
mul edx
mov eax, dword [esp + 0x34]
shr edx, 0x12
add eax, edx
mov eax, esi
adc eax, 0
mov eax, 0xffffffff
jae 0x4befe0
mov ecx, dword [esp + 8]
jmp 0x4bf036
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor esi, esi
xor ecx, ecx
jmp 0x4bf07c
mov edi, dword [esp + 4]
mov ecx, esi
imul esi, edx, 0xf4240
sub edi, esi
mov esi, dword [esp + 0x34]
mov dword [esp + 4], edi
add esi, edx
adc ecx, 0
xor edx, edx
test edi, edi
setne dl
add edx, esi
mov edx, ecx
adc edx, 0
jae 0x4bf015
mov ecx, dword [esp + 8]
lea edi, [esp + 0x20]
jmp 0x4bf036
xor eax, eax
cmp dword [esp + 4], 0
lea edi, [esp + 0x20]
setne al
add esi, eax
adc ecx, 0
xor eax, eax
neg ecx
mov ecx, dword [esp + 8]
sbb eax, eax
or eax, esi
je 0x4bf0b2
mov dword [esp + 0x20], eax
push 4
push edi
push 0x1005
push 0xffff
push ecx
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4bf05b
mov al, 4
mov dword [esp + 4], eax
jmp 0x4bf069
mov dword [esp + 4], 0
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x30]
xor esi, esi
mov ecx, dword [esp + 4]
cmp cl, 4
je 0x4beb0b
shl esi, 8
movzx edx, cl
mov dword [ebx + 8], eax
or edx, esi
mov dword [ebx + 4], edx
mov dword [ebx], 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [0x8c6740]
cmp cl, 4
jne 0x4bf0da
mov eax, dword [esp + 0x38]
lea edi, [esp + 0x20]
mov ecx, dword [eax]
jmp 0x4befa7
mov ecx, dword [0x8c6740]
mov eax, dword [0x8c6744]
mov edx, dword [esp + 0x30]
mov esi, ecx
mov dword [esp + 4], ecx
shrd esi, eax, 8
mov ecx, dword [esp + 4]
cmp cl, 4
je 0x4beb0b
jmp 0x4bf07c
mov eax, dword [0x8c6744]
mov esi, ecx
shrd esi, eax, 8
jmp 0x4bf07c
call dword [sym.imp.kernel32.dll_GetLastError]
ud2