Function at 0x498800
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
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 0x49884a
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [eax + 0x28]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0049d190
jmp 0x498b54
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ecx + 0x28]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0048f960
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0043dab0
test eax, eax
jne 0x498888
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00490b00
jmp 0x498b54
mov dword [ebp - 0x20], 1
push 0
push 0
push 0x7010
push 0xffff
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x20]
push eax
push 1
push 6
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [ebp - 0x20]
push edx
push 8
push 0xffff
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0049c950
lea ecx, [ebp - 0x34]
call fcn.0043dab0
cmp dword [eax + 0x80], 1
jne 0x4989e1
lea ecx, [ebp - 0x34]
call fcn.0043dab0
mov edx, dword [eax + 0x40]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xd0]
call fcn.00495e90
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x49892a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00490b00
jmp 0x498b54
mov byte [ebp - 0x10], 5
mov byte [ebp - 0xf], 1
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x414
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
je 0x498965
mov edx, dword [ebp - 0x18]
add edx, 0x314
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
jne 0x49896e
mov dword [ebp - 0x1c], 0
jmp 0x498975
mov dword [ebp - 0x1c], 2
mov eax, 1
imul ecx, eax, 0
mov dl, byte [ebp - 0x1c]
mov byte [ebp + ecx - 0xe], dl
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [eax + 0x28]
push edx
push 3
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp - 0x34]
call fcn.0043dab0
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0049db20
movzx ecx, al
test ecx, ecx
je 0x4989be
lea ecx, [ebp - 0x34]
call fcn.0043dab0
mov dword [eax + 0x38], 1
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [edx + 0x28]
push ecx
push 0
lea ecx, [ebp - 0x34]
call fcn.0043dab0
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0049d760
jmp 0x498b45
lea ecx, [ebp - 0x34]
call fcn.0043dab0
cmp dword [eax + 0x80], 2
jne 0x498ac7
mov byte [ebp - 0x2c], 1
lea ecx, [ebp - 0x34]
call fcn.0043dab0
add eax, 0x63
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
mov dword [ebp - 0x2b], eax
mov ecx, dword [ebp - 0x24]
mov dx, word [ecx + 2]
mov word [ebp - 0x27], dx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [eax + 0x28]
push edx
push 7
lea eax, [ebp - 0x2c]
push eax
push 0
lea ecx, [ebp - 0x34]
call fcn.0043dab0
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0049db20
movzx ecx, al
test ecx, ecx
je 0x498a56
lea ecx, [ebp - 0x34]
call fcn.0043dab0
mov dword [eax + 0x38], 4
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [edx + 0x28]
push ecx
push 1
lea ecx, [ebp - 0x34]
call fcn.0043dab0
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0049d760
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [edx + 0x28]
push ecx
push 0
lea ecx, [ebp - 0x34]
call fcn.0043dab0
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0049d760
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x54], 0
je 0x498ac5
lea ecx, [ebp - 0x34]
call fcn.0043dab0
add eax, 0x3c
push eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [eax + 0x28]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x54]
mov edx, dword [eax + 0xc]
call edx
jmp 0x498b45
lea ecx, [ebp - 0x34]
call fcn.0043dab0
mov dword [eax + 0x38], 4
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [eax + 0x28]
push edx
push 1
lea ecx, [ebp - 0x34]
call fcn.0043dab0
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0049d760
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [eax + 0x28]
push edx
push 0
lea ecx, [ebp - 0x34]
call fcn.0043dab0
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0049d760
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x54], 0
je 0x498b45
lea ecx, [ebp - 0x34]
call fcn.0043dab0
add eax, 0x3c
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ecx + 0x28]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x54]
mov eax, dword [ebp - 0x14]
mov edx, dword [edx]
mov ecx, dword [eax + 0x54]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00490b00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10