Function at 0x10001d47
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
pushal
xor eax, eax
inc eax
add dword [ebp - 0x1c8], ecx
mov edx, 0x2000
shl edx, 3
add edx, eax
lea edx, [ebp - 0x192]
push edx
push eax
mov ecx, 0x1000a94b
call dword [ecx + 0x605]
push 0x100021b7
push dword fs:[0]
mov eax, esp
mov dword fs:[0], eax
mov dword [ebp - 0x1cc], eax
call fcn.10002277
call fcn.100033db
mov dword [ebp - 0x1d0], eax
xor ecx, ecx
inc ecx
push ecx
push 0x100051a8
push 8
push 0xffff
push dword [ebp - 0x1d0]
call sub.WS2_32.dll_setsockopt
xor ecx, ecx
inc ecx
push ecx
push 0x100051a8
push 4
push 0xffff
push dword [ebp - 0x1d0]
call sub.WS2_32.dll_setsockopt
cmp dword [ebp + 0xc], 0
jne 0x10001de2
mov eax, dword [ebp + 8]
jmp 0x10001e1a
push 0xfcc4812
add dword [esp], 0x340890
call dword ss:[0x1000af30]
or eax, eax
je 0x100021d3
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov edx, 1
mov ecx, 0x362abfcb
dec edx
add ecx, 0x52fa8ce
call fcn.10001270
mov dword [ebp - 0x1a0], eax
mov edx, 0x1c2
sub edx, 7
xchg dl, dh
mov word [ebp - 0x1a2], dx
mov word [ebp - 0x1a4], 2
push 0x10
lea ecx, [ebp - 0x1a4]
push ecx
push dword [ebp - 0x1d0]
call dword ss:[0x1000af4c]
cmp eax, 0xffffffff
je 0x100021d3
push 0xe
push 0x100051ad
call fcn.10001c1e
push 0xe
push 0x100051ad
push dword [ebp - 0x1d0]
call fcn.1000290a
push 0xe
push 0x100051ad
call fcn.10001c62
push 0x1388
push 8
push dword ss:[0x1000a516]
call dword ss:[0x1000af08]
mov dword [ebp - 0x1bc], eax
add eax, 4
mov dword [ebp - 0x1c0], eax
mov esi, 4
mov edi, 4
mov ebx, dword [ebp - 0x1bc]
push esi
push ebx
push dword [ebp - 0x1d0]
call fcn.1000323f
sub edi, eax
or eax, eax
jle 0x100021d3
or edi, edi
je 0x10001ed8
mov esi, edi
add ebx, eax
jmp 0x10001eb7
mov esi, dword [ebp - 0x1bc]
push 4
push esi
call fcn.10001c1e
mov esi, dword [esi]
mov dword [ebp - 0x1d4], esi
mov edi, esi
cmp edi, 0x1387
jg 0x100021d3
or edi, edi
jl 0x100021d3
mov ebx, dword [ebp - 0x1c0]
push esi
push ebx
push dword [ebp - 0x1d0]
call fcn.1000323f
sub edi, eax
or eax, eax
jle 0x100021d3
or edi, edi
je 0x10001f2f
mov esi, edi
add ebx, eax
push 0x10001f0a
ret
push dword [ebp - 0x1d4]
push dword [ebp - 0x1c0]
call fcn.10001c1e
mov edi, dword [ebp - 0x1c0]
cmp byte [edi + 0x10], 1
jne 0x10002025
push esi
cmp dword [edi + 0xc], 0
je 0x10001fb2
mov esi, 0x96
mov edx, dword [ebp + 0x10]
mov eax, dword [edi + 0xc]
mov ecx, 0x9c4
dec ecx
je 0x10001fb2
cmp dword [edx + 4], eax
je 0x10001f84
lea edx, [edx + 0xc]
mov dword ss:[0x10009a03], 0x10001f67
jmp dword ss:[0x10009a03]
lea edx, [edx + 0xc]
dec esi
jne 0x10001f67
push 0x25
push edi
call fcn.10001c1e
push 0x25
push edi
push dword [ebp - 0x1d0]
call fcn.1000290a
or edi, edi
je 0x10001fac
push 0x25
push edi
call fcn.10001c62
pop esi
jmp 0x10001ea7
pop esi
lea edx, [ebp - 0x1c4]
mov ecx, 0x1000231d
push edx
push 0x10000
mov eax, dword [ebp - 0x1bc]
mov edx, dword [ebp - 0x1d0]
mov dword [eax + 0x1374], edx
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x1378], edx
push dword [ebp - 0x1bc]
push ecx
push 0x400
push 0
call dword ss:[0x1000af70]
push eax
call dword ss:[0x1000af60]
push 0x1388
push 8
push dword ss:[0x1000a516]
call dword ss:[0x1000af08]
mov dword [ebp - 0x1bc], eax
add eax, 4
mov dword [ebp - 0x1c0], eax
jmp 0x100021a4
cmp byte [edi + 0x10], 3
jne 0x10002084
mov edx, dword [ebp + 0x10]
mov eax, dword [edi + 0x18]
mov ecx, 0x9c3
inc ecx
dec ecx
je 0x10001ea7
cmp dword [edx + 8], eax
je 0x10002048
add edx, 0xc
jmp 0x10002037
mov eax, dword [edi + 0xc]
cmp eax, dword [edx + 4]
jne 0x10001ea7
mov edi, dword [ebp - 0x1c0]
movzx ecx, byte [edi + 0x12]
or ecx, ecx
je 0x10001ea7
mov eax, dword [ebp - 0x1bc]
mov ecx, dword [eax]
sub ecx, 0x20
mov eax, edx
lea edx, [edi + 0x20]
push ecx
push edx
push dword [eax]
call fcn.1000290a
jmp 0x100021a4
cmp byte [edi + 0x10], 4
jne 0x100020c2
mov edx, dword [ebp + 0x10]
mov eax, dword [edi + 0x18]
mov ecx, 0x9c4
dec ecx
je 0x10001ea7
cmp dword [edx + 8], eax
je 0x100020a6
add edx, 0xc
jmp 0x10002095
mov eax, dword [edi + 0xc]
cmp eax, dword [edx + 4]
jne 0x10001ea7
push 2
push dword [edx]
call dword ss:[0x1000af28]
jmp 0x100021a4
cmp byte [edi + 0x10], 0x33
jne 0x100020ea
xor eax, eax
push 0x1000ae61
push eax
mov ecx, dword [edi + 0x11]
push ecx
push 0x10001c35
inc dword [esp]
push eax
push eax
call dword ss:[0x1000af70]
jmp 0x100021a4
cmp byte [edi + 0x10], 5
jne 0x10002101
push 0
push dword [edi + 1]
call dword ss:[0x1000af5c]
jmp 0x100021a4
cmp byte [edi + 0x10], 0xd
jne 0x10002177
mov eax, dword [edi + 0xc]
lea edx, [ebp - 0x1c4]
mov ecx, 0x1000228d
push edx
push 0x10000
push edi
mov edi, 0x1001171c
mov edx, 0x9c3
dec edx
or edx, edx
jne 0x1000213f
call fcn.1000228a
movzx eax, al
shl eax, 2
mov edi, 0x1001171c
add edi, eax
jmp 0x10002144
cmp dword [edi], 0
jne 0x10002126
push dword [ebp + 0x10]
pop dword [edi]
mov dword [edi + 4], eax
mov eax, edi
pop edi
push eax
push ecx
push 0x400
push 0
mov eax, dword ss:[0x1000af70]
or eax, eax
je 0x10002164
call eax
push eax
or eax, eax
je 0x10002174
mov ecx, dword ss:[0x1000af60]
call ecx
jmp 0x100021a4
pop edx
jmp 0x100021a4
cmp byte [edi + 0x10], 0x11
jne 0x100021a4
mov eax, dword [ebp - 0x1bc]
mov ecx, dword [eax]
add ecx, 4
or ecx, ecx
je 0x10002193
push ecx
push eax
call fcn.10001c1e
or ecx, ecx
je 0x100021a4
push ecx
push eax
push dword [ebp - 0x1d0]
call fcn.1000290a
push 0x10001ea7
pop dword ss:[0x10011718]
jmp dword ss:[0x10011718]
push 2
push dword [ebp - 0x1d0]
call dword ss:[0x1000af28]
push dword [ebp - 0x1d0]
call dword ss:[0x1000af44]
lea edx, [ebp - 0x1c4]
mov ecx, 0x1000228d
push edx
push 0x10000
push edi
mov edi, 0x1001171c
mov edx, 0x9c3
dec edx
or edx, edx
jne 0x10002228
call fcn.1000228a
movzx eax, al
shl eax, 2
mov edi, 0x1001171c
add edi, eax
push 0x1000222d
ret
cmp dword [edi], 0
jne 0x1000220b
push dword [ebp + 0x10]
pop dword [edi]
mov dword [edi + 4], 0
mov eax, edi
pop edi
push eax
push ecx
push 0x400
push 0
call dword ss:[0x1000af70]
push eax
call dword ss:[0x1000af60]
rdtsc
rol eax, 1
movzx eax, al
shl eax, 7
add eax, 0x493e1
push 0
push eax
call dword ss:[0x1000af5c]
xor eax, eax
mov edx, 0x10001d76
inc edx
push edx
ret