Function at 0x1005a0c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d0dd5
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push esi
push edi
mov eax, dword [0x100ff230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1005a3ce
cmp dword [ebp + 8], 0
je 0x1005a363
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x1005a26b
mov eax, dword [edi + 0x50]
xor ecx, ecx
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x6c]
mov dword [ebp + 0x10], edx
mov dword [ebp + 8], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], ecx
mov eax, dword [edi + 0x44]
test eax, eax
je 0x1005a13f
mov eax, dword [eax]
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, dword [edi + 0x44]
mov eax, dword [eax]
call eax
mov edx, dword [ebp + 0x10]
mov ecx, eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x58]
cmp eax, 2
je 0x1005a171
cmp eax, 0x17
je 0x1005a171
test ecx, ecx
je 0x1005a38e
mov edx, dword [ecx]
lea eax, [ebp - 0x6c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x1005a38e
push 4
lea eax, [esi + 0xc]
push eax
push 0x700b
push 0xffff
push dword [edx + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esi + 0x58]
xor ecx, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x10], ecx
cmp eax, 2
jne 0x1005a218
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x20
push 0x20
push 0
push dword [ebp - 0x18]
call dword [0x101073b0]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1005a233
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x1005a233
cmp dword [ebp - 0x14], 0x1c
jg 0x1005a233
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
cmp ecx, 0x1c
jg 0x1005a239
movups xmm0, xmmword [eax]
movups xmmword [edx + 0x5c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edx + 0x6c], xmm0
mov eax, dword [eax + 0x18]
mov dword [edx + 0x74], eax
movups xmm0, xmmword [esi]
movups xmmword [edx + 0x78], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edx + 0x88], xmm0
mov eax, dword [esi + 0x18]
mov dword [edx + 0x90], eax
jmp 0x1005a239
cmp eax, 0x17
jne 0x1005a236
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x2c
push 0x2c
jmp 0x1005a1b8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x1005a38e
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0x10], ecx
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
push ecx
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x1c]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [ebp - 0x48]
jmp 0x1005a153
cmp eax, 1
jne 0x1005a321
mov eax, dword [edi + 0x50]
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x44]
mov dword [ebp + 8], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 2
mov ecx, dword [edi + 0x44]
test ecx, ecx
je 0x1005a2a2
mov eax, dword [ecx]
lea edx, [ebp - 0x44]
push edx
mov eax, dword [eax]
call eax
mov dword [ebp - 0x20], eax
push 4
lea eax, [esi + 0xc]
mov dword [ebp - 4], 3
push eax
push 0x7010
push 0xffff
push dword [eax]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x10], eax
jne 0x1005a310
mov dword [ebp + 8], 0
test ecx, ecx
je 0x1005a3e1
mov eax, dword [ecx]
lea edx, [ebp + 8]
push edx
lea edx, [ebp + 0x10]
push edx
lea edx, [ebp + 0xc]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1005a38e
mov edx, dword [ecx]
lea eax, [ebp - 0x44]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x1005a38e
mov dword [ebp + 8], 1
test ecx, ecx
je 0x1005a3e6
jmp 0x1005a2e1
mov ecx, dword [ebp + 0xc]
cmp eax, 2
jne 0x1005a332
add dword [esi + 0x28], ecx
adc dword [esi + 0x2c], 0
jmp 0x1005a33e
cmp eax, 3
jne 0x1005a33e
add dword [esi + 0x20], ecx
adc dword [esi + 0x24], 0
mov edx, dword [edi + 0x44]
test edx, edx
je 0x1005a38e
mov eax, dword [edi + 0x50]
mov dword [ebp + 0x10], ecx
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
push ecx
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x1005a38b
mov ecx, dword [edi + 0x44]
test ecx, ecx
je 0x1005a38e
mov eax, dword [edi + 0x50]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x14]
push edx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
push edx
call dword [eax + 8]
cmp byte [edi + 0x48], 0
je 0x1005a3a4
mov eax, dword [edi + 0x50]
test eax, eax
je 0x1005a3a4
push eax
call fcn.100919ab
add esp, 4
mov ecx, dword [edi + 0x44]
lea esi, [edi + 0x20]
test ecx, ecx
je 0x1005a3c3
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
push 0x58
push edi
call fcn.1009197a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
call fcn.1008e560
call fcn.1008e560
int3