Function at 0x498b70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4e5258]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0x14], 0
je 0x498bc2
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [eax + 0x18]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00494a50
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00494880
jmp 0x498d9e
mov ecx, dword [ebp - 0x14]
add ecx, 0x50
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0048f930
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0x10]
add edx, 0x18
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x20
call fcn.00495470
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x20
call fcn.0043e480
push eax
lea ecx, [ebp - 0x18]
call fcn.00439140
movzx edx, al
test edx, edx
je 0x498d83
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0x10]
add eax, 0x18
push eax
lea ecx, [ebp - 0x24]
push ecx
mov ecx, 0x4ea670
call fcn.00495470
lea edx, [ebp - 0x34]
push edx
mov ecx, 0x4ea670
call fcn.0043e480
push eax
lea ecx, [ebp - 0x24]
call fcn.00439140
movzx eax, al
test eax, eax
je 0x498cb9
lea ecx, [ebp - 0x24]
call fcn.00439290
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x4c]
call fcn.00495e90
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x498cb9
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x310]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x1c]
add edx, 0x414
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
je 0x498ca9
mov eax, dword [ebp - 0x1c]
add eax, 0x314
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
jne 0x498cb2
mov dword [ebp - 0x20], 0
jmp 0x498cb9
mov dword [ebp - 0x20], 2
cmp dword [ebp - 0x28], 0
jne 0x498d71
mov dword [ebp - 0x2c], 1
push 4
lea ecx, [ebp - 0x2c]
push ecx
push 1
push 6
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x2c]
push eax
push 8
push 0xffff
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov byte [ebp - 0x10], 5
mov byte [ebp - 0xf], 1
mov edx, 1
imul eax, edx, 0
mov cl, byte [ebp - 0x20]
mov byte [ebp + eax - 0xe], cl
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [edx + 0x18]
push ecx
push 3
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x18]
call fcn.00439290
mov eax, dword [eax + 8]
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0049e080
movzx edx, al
test edx, edx
je 0x498d4c
lea ecx, [ebp - 0x18]
call fcn.00439290
mov eax, dword [eax + 8]
mov dword [eax + 8], 1
push 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ecx + 0x18]
push eax
lea ecx, [ebp - 0x18]
call fcn.00439290
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.0049d8c0
jmp 0x498d83
lea ecx, [ebp - 0x18]
call fcn.00439290
mov eax, dword [eax + 8]
mov dword [eax + 8], 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00490ae0
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00494880
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10