Function at 0x49d098
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49d49d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x28], ecx
xor edx, edx
push ebp
push 0x49d466
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
cmp dword [eax + 0x24], 0
jne 0x49d0f8
mov byte [ebp - 0x19], 1
call fcn.0040467c
jmp 0x49d46d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
cmp dword [eax + 0xc50], 0x3e8
jl 0x49d11b
mov byte [ebp - 0x19], 1
call fcn.0040467c
jmp 0x49d46d
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.0040dfcc
mov ecx, eax
lea edx, [ebp - 0x48]
mov eax, esi
call fcn.004032ec
mov eax, esi
call fcn.0040dfcc
mov byte [ebp + eax - 0x48], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.0049b6a8
test al, al
je 0x49d1dc
mov eax, dword [0x4a5abc]
mov eax, dword [eax]
mov edx, 5
call fcn.00482fd4
test al, al
je 0x49d1ce
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 6
lea edx, [ebp - 0x54]
xor ecx, ecx
mov eax, 0x49d4b4
call fcn.0040e6fc
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x4a5abc]
mov eax, dword [eax]
call fcn.00482fe4
mov byte [ebp - 0x19], 1
call fcn.0040467c
jmp 0x49d46d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.0049bb84
test al, al
je 0x49d23a
mov eax, dword [0x4a5abc]
mov eax, dword [eax]
mov edx, 5
call fcn.00482fd4
test al, al
je 0x49d22c
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 6
lea edx, [ebp - 0x54]
xor ecx, ecx
mov eax, 0x49d4cc
call fcn.0040e6fc
mov edx, dword [ebp - 0x58]
mov eax, dword [0x4a5abc]
mov eax, dword [eax]
call fcn.00482fe4
mov byte [ebp - 0x19], 1
call fcn.0040467c
jmp 0x49d46d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.0049b72c
test al, al
je 0x49d2af
mov eax, dword [0x4a5abc]
mov eax, dword [eax]
mov edx, 5
call fcn.00482fd4
test al, al
je 0x49d2a1
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [0x4a5cf4]
mov eax, dword [eax]
mov eax, dword [eax + 0x344]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 6
lea edx, [ebp - 0x6c]
mov ecx, 1
mov eax, 0x49d4e8
call fcn.0040e6fc
mov edx, dword [ebp - 0x5c]
mov eax, dword [0x4a5abc]
mov eax, dword [eax]
call fcn.00482fe4
mov byte [ebp - 0x19], 1
call fcn.0040467c
jmp 0x49d46d
push 4
mov eax, dword [ebp - 0x28]
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 0x49d306
lea eax, [ebp - 0x70]
push eax
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0
lea edx, [ebp - 0x54]
xor ecx, ecx
mov eax, 0x49d508
call fcn.0040e6fc
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 4]
call fcn.0049d574
mov byte [ebp - 0x19], 1
call fcn.0040467c
jmp 0x49d46d
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 0x49d357
lea eax, [ebp - 0x74]
push eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0
lea edx, [ebp - 0x54]
xor ecx, ecx
mov eax, 0x49d530
call fcn.0040e6fc
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.0049d574
mov byte [ebp - 0x19], 1
call fcn.0040467c
jmp 0x49d46d
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 8]
call fcn.0049dfb0
test al, al
je 0x49d433
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
push edi
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x20]
call fcn.0049e14c
mov esi, eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov dword [ebx + 0x28], esi
mov eax, dword [ebp - 0x20]
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 - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, ebx
call fcn.0049dcbc
test al, al
jne 0x49d3f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, esi
call fcn.0049e404
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x20]
call fcn.0049e0a8
jmp 0x49d437
mov eax, dword [0x4a5abc]
mov eax, dword [eax]
mov edx, 7
call fcn.00482fd4
test al, al
je 0x49d437
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 6
lea edx, [ebp - 0x54]
xor ecx, ecx
mov eax, 0x49d564
call fcn.0040e6fc
mov edx, dword [ebp - 0x78]
mov eax, dword [0x4a5abc]
mov eax, dword [eax]
call fcn.00482fe4
jmp 0x49d437
mov byte [ebp - 0x19], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d46d
cmp byte [ebp - 0x19], 0
je 0x49d455
mov eax, dword [ebp - 8]
add eax, 0x14
call fcn.00483dd8
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049d9ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d4a4
lea eax, [ebp - 0x78]
mov edx, 3
call fcn.00404c60
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00404c60
lea eax, [ebp - 0x4c]
call fcn.00404c3c
ret