Function at 0x48785c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x487dc8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x46c], 0xffffffff
je 0x4878ab
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4d2], 7
je 0x4878ab
mov edx, 0x487de0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
jmp 0x487dad
mov eax, dword [ebp - 4]
cmp byte [eax + 0x490], 0
jne 0x4878c9
mov edx, 0x487e08
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
jmp 0x487dad
mov eax, dword [ebp - 4]
cmp byte [eax + 0x47c], 0
jne 0x4878e7
mov edx, 0x487e2c
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
jmp 0x487dad
mov eax, dword [ebp - 4]
cmp byte [eax + 0x484], 0
jne 0x487905
mov edx, 0x487e58
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
jmp 0x487dad
xor eax, eax
push ebp
push 0x487a43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x485], 0
jne 0x487977
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x488]
call fcn.00486f44
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x480], ebx
sub ebx, 6
je 0x487951
sub ebx, 0xb
jne 0x487960
mov eax, dword [ebp - 4]
mov dword [eax + 0x4a4], 2
jmp 0x48796d
mov eax, dword [ebp - 4]
mov dword [eax + 0x4a4], 1
jmp 0x48796d
mov eax, dword [ebp - 4]
mov dword [eax + 0x4a4], 3
mov eax, dword [ebp - 4]
mov byte [eax + 0x485], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x491], 0
jne 0x4879ce
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00486680
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48c]
call fcn.00486d3c
movzx eax, ax
mov edx, dword [ebp - 4]
mov dword [edx + 0x494], eax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x494]
call fcn.00485324
mov edx, dword [ebp - 4]
mov word [edx + 0x546], ax
mov eax, dword [ebp - 4]
mov byte [eax + 0x491], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x486], 0
jne 0x487a0c
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00486680
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x498]
call fcn.00486d3c
movzx eax, ax
mov edx, dword [ebp - 4]
mov dword [edx + 0x49c], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x486], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x474], 0
jne 0x487a39
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x470]
call fcn.00486ae0
mov edx, dword [ebp - 4]
mov dword [edx + 0x548], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x474], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x487a80
mov eax, dword [ebp - 4]
call fcn.00488638
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x480]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4a4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x478]
call fcn.00485094
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x46c], ebx
inc ebx
jne 0x487ac8
mov edx, 0x487e94
mov eax, dword [ebp - 4]
call fcn.00488c64
jmp 0x487dad
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00485d10
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4d2], 1
je 0x487afa
mov eax, 0x2726
call fcn.00484dd0
mov edx, 0x487eb0
mov eax, dword [ebp - 4]
call fcn.00488c64
jmp 0x487dad
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4a4], 2
jne 0x487c06
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x50]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4c5], 0
je 0x487bb7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4cc]
cmp eax, 1
je 0x487b62
mov dword [ebp - 8], eax
push 4
lea eax, [ebp - 8]
push eax
push 3
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
push eax
call sub.wsock32.dll_setsockopt
test eax, eax
je 0x487b62
mov edx, 0x487ee8
mov eax, dword [ebp - 4]
call fcn.00488c64
jmp 0x487dad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4a0]
mov edx, 0x487f10
call fcn.00404994
je 0x487bb7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4a0]
call fcn.00486ae0
mov dword [ebp - 0xc], eax
push 4
lea eax, [ebp - 0xc]
push eax
push 2
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
push eax
call sub.wsock32.dll_setsockopt
test eax, eax
je 0x487bb7
mov edx, 0x487f20
mov eax, dword [ebp - 4]
call fcn.00488c64
jmp 0x487dad
mov eax, dword [ebp - 4]
cmp dword [eax + 0x548], 0xffffffff
jne 0x487cf4
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov ecx, 0x20
mov edx, 0xffff
call fcn.00485114
test eax, eax
je 0x487cf4
mov edx, 0x487f44
mov eax, dword [ebp - 4]
call fcn.00488c64
jmp 0x487dad
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov ecx, 4
mov edx, 0xffff
call fcn.00485114
test eax, eax
je 0x487c41
mov edx, 0x487f68
mov eax, dword [ebp - 4]
call fcn.00488c64
jmp 0x487dad
mov eax, dword [ebp - 4]
test byte [eax + 0x4d1], 2
je 0x487c88
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov ecx, 1
mov edx, 6
call fcn.00485114
test eax, eax
je 0x487c88
mov edx, 0x487f8c
mov eax, dword [ebp - 4]
call fcn.00488c64
jmp 0x487dad
mov eax, dword [ebp - 4]
call fcn.004877a4
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov ecx, 8
mov edx, 0xffff
call fcn.00485114
test eax, eax
je 0x487ccb
mov edx, 0x487fbc
mov eax, dword [ebp - 4]
call fcn.00488c64
jmp 0x487dad
mov eax, dword [ebp - 4]
cmp dword [eax + 0x49c], 0
jne 0x487cec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4a0]
mov edx, 0x487f10
call fcn.00404994
je 0x487cf4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x50]
mov edx, dword [ebp - 4]
mov eax, 0x3b
mov dword [edx + 0x4d8], eax
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov ecx, 0x401
call fcn.00484f48
test eax, eax
je 0x487d2f
mov edx, 0x487fe0
mov eax, dword [ebp - 4]
call fcn.00488c64
jmp 0x487dad
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4a4], 2
jne 0x487d51
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.00485d10
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
jmp 0x487dad
mov eax, dword [ebp - 4]
lea edx, [eax + 0x544]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov ecx, 0x10
call fcn.004853e0
test eax, eax
jne 0x487d7d
mov dl, 3
mov eax, dword [ebp - 4]
call fcn.00485d10
jmp 0x487dad
call fcn.00484e0c
cmp eax, 0x2733
jne 0x487d95
mov dl, 3
mov eax, dword [ebp - 4]
call fcn.00485d10
jmp 0x487dad
call fcn.00484e0c
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
mov edx, 0x487ff8
mov eax, dword [ebp - 4]
call fcn.00488c64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487dcf
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404590
ret