Function at 0x49734c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4977cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x2c], ecx
xor edx, edx
push ebp
push 0x497795
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
cmp dword [eax + 0x24], 0
jne 0x4973b8
mov byte [ebp - 0x1d], 1
call fcn.004047cc
jmp 0x49779c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
cmp dword [eax + 0xc50], 0x3e8
jl 0x4973db
mov byte [ebp - 0x1d], 1
call fcn.004047cc
jmp 0x49779c
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
push eax
push 0
lea eax, [ebx + 0x38]
push eax
mov eax, dword [ebp - 4]
call dword [eax + 8]
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
push eax
call sub.ws2_32.dll_ntohs
movzx edi, ax
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
call sub.ws2_32.dll_inet_ntoa
mov esi, eax
mov eax, esi
call fcn.0040e114
mov ecx, eax
lea edx, [ebp - 0x6c]
mov eax, esi
call fcn.004032ec
mov eax, esi
call fcn.0040e114
mov byte [ebp + eax - 0x6c], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 2]
push eax
call sub.ws2_32.dll_ntohs
movzx eax, ax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
call sub.ws2_32.dll_inet_ntoa
mov esi, eax
mov eax, esi
call fcn.0040e114
mov ecx, eax
lea edx, [ebp - 0x4c]
mov eax, esi
call fcn.004032ec
mov eax, esi
call fcn.0040e114
mov byte [ebp + eax - 0x4c], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.0048a9c0
test al, al
je 0x4974db
mov eax, dword [0x49d760]
mov eax, dword [eax]
mov edx, 5
call fcn.00499314
test al, al
je 0x4974cd
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 6
lea edx, [ebp - 0x78]
xor ecx, ecx
mov eax, 0x4977e8
call fcn.0040e844
mov edx, dword [ebp - 0x70]
mov eax, dword [0x49d760]
mov eax, dword [eax]
call fcn.00499324
mov byte [ebp - 0x1d], 1
call fcn.004047cc
jmp 0x49779c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.0048aeb0
test al, al
je 0x497539
mov eax, dword [0x49d760]
mov eax, dword [eax]
mov edx, 5
call fcn.00499314
test al, al
je 0x49752b
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 6
lea edx, [ebp - 0x78]
xor ecx, ecx
mov eax, 0x497800
call fcn.0040e844
mov edx, dword [ebp - 0x7c]
mov eax, dword [0x49d760]
mov eax, dword [eax]
call fcn.00499324
mov byte [ebp - 0x1d], 1
call fcn.004047cc
jmp 0x49779c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.0048aa44
test al, al
je 0x4975bd
mov eax, dword [0x49d760]
mov eax, dword [eax]
mov edx, 5
call fcn.00499314
test al, al
je 0x4975af
lea eax, [ebp - 0x80]
push eax
mov eax, dword [0x49d97c]
mov eax, dword [eax]
mov eax, dword [eax + 0x340]
mov dword [ebp - 0x90], eax
mov byte [ebp - 0x8c], 0
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 6
lea edx, [ebp - 0x90]
mov ecx, 1
mov eax, 0x49781c
call fcn.0040e844
mov edx, dword [ebp - 0x80]
mov eax, dword [0x49d760]
mov eax, dword [eax]
call fcn.00499324
mov byte [ebp - 0x1d], 1
call fcn.004047cc
jmp 0x49779c
push 4
mov eax, dword [ebp - 0x2c]
push eax
push 0x700b
push 0xffff
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.ws2_32.dll_setsockopt
inc eax
jne 0x49761a
lea eax, [ebp - 0x94]
push eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0
lea edx, [ebp - 0x78]
xor ecx, ecx
mov eax, 0x49783c
call fcn.0040e844
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 4]
call fcn.004978a8
mov byte [ebp - 0x1d], 1
call fcn.004047cc
jmp 0x49779c
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
push edx
push eax
call sub.kernel32.dll_CreateIoCompletionPort
inc eax
jne 0x497671
lea eax, [ebp - 0x98]
push eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0
lea edx, [ebp - 0x78]
xor ecx, ecx
mov eax, 0x497864
call fcn.0040e844
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 4]
call fcn.004978a8
mov byte [ebp - 0x1d], 1
call fcn.004047cc
jmp 0x49779c
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 8]
call fcn.004982e4
test al, al
je 0x497762
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
push edi
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x6c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x24]
call fcn.00498480
mov esi, eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov dword [ebx + 0x28], esi
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x28], esi
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x14]
push edx
add eax, 0x14
push eax
call sub.kernel32.dll_InterlockedExchange
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edi, eax
mov edx, eax
mov ecx, esi
mov eax, dword [edi + 0x14]
call dword [edi + 0x10]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, ebx
call fcn.00497ff0
test al, al
jne 0x497719
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, esi
call fcn.00498750
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x24]
call fcn.004983dc
jmp 0x497766
mov eax, dword [0x49d760]
mov eax, dword [eax]
mov edx, 7
call fcn.00499314
test al, al
je 0x497766
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 6
lea edx, [ebp - 0x78]
xor ecx, ecx
mov eax, 0x497898
call fcn.0040e844
mov edx, dword [ebp - 0x9c]
mov eax, dword [0x49d760]
mov eax, dword [eax]
call fcn.00499324
jmp 0x497766
mov byte [ebp - 0x1d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49779c
cmp byte [ebp - 0x1d], 0
je 0x497784
mov eax, dword [ebp - 8]
add eax, 0x14
call fcn.00480ecc
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00497d20
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4977d6
lea eax, [ebp - 0x9c]
mov edx, 3
call fcn.00404dd4
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.00404dd4
lea eax, [ebp - 0x70]
call fcn.00404db0
ret