Function at 0x4d07f4
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4d0a40
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x29]
sub al, 1
jb 0x4d0832
je 0x4d095f
dec al
je 0x4d09f3
jmp 0x4d0a13
test bl, bl
jne 0x4d084a
mov eax, dword [ebp - 4]
mov byte [eax + 0x29], 1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1c], edx
jmp 0x4d0a13
test esi, esi
je 0x4d08e8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x4d086b
mov eax, 0x400
call fcn.00408a8c
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
push 0x400
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
mov eax, esi
call fcn.004048d8
push eax
push 0x403
mov eax, dword [ebp - 4]
call fcn.004d0d5c
push eax
call sub.wsock32.dll_WSAAsyncGetHostByName
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], edi
test edi, edi
sete al
and eax, 0x7f
mov edx, 0x4d0a70
call fcn.004d0508
mov eax, dword [ebp - 4]
add eax, 0x4c
mov edx, dword [ebp + 0x14]
call fcn.0040446c
mov eax, dword [ebp - 4]
mov dx, word [ebp + 0x10]
mov word [eax + 0x50], dx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x54], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x52], bl
mov eax, dword [ebp - 4]
mov byte [eax + 0x29], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d0a5d
test edi, edi
je 0x4d090b
mov eax, dword [ebp - 4]
mov byte [eax + 0x29], 1
mov eax, edi
call fcn.004048d8
push eax
call sub.wsock32.dll_inet_addr
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
jmp 0x4d0a13
mov dword [ebp - 8], 0x456
lea eax, [ebp - 8]
push eax
mov cl, 6
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403700
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 8], 0
je 0x4d0952
mov ecx, dword [0x519f34]
mov dl, 1
mov eax, dword [0x4cfdc4]
call fcn.0040d0c4
call fcn.00403d94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d0a5d
cmp dword [ebp + 0x14], 0
je 0x4d09d9
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x4d097e
mov eax, 0x400
call fcn.00408a8c
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
push 0x400
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
push 0x4d0a88
mov eax, dword [ebp + 0x14]
call fcn.004048d8
push eax
push 0x403
mov eax, dword [ebp - 4]
call fcn.004d0d5c
push eax
call sub.wsock32.dll_WSAAsyncGetServByName
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], ebx
test ebx, ebx
sete al
and eax, 0x7f
mov edx, 0x4d0a94
call fcn.004d0508
mov eax, dword [ebp - 4]
mov byte [eax + 0x29], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d0a5d
mov eax, dword [ebp - 4]
mov byte [eax + 0x29], 2
mov ax, word [ebp + 0x10]
push eax
call sub.wsock32.dll_htons_1
mov edx, dword [ebp - 4]
mov word [edx + 0x1a], ax
jmp 0x4d0a13
mov eax, dword [ebp - 4]
mov byte [eax + 0x29], 0
test bl, bl
je 0x4d0a08
mov eax, dword [ebp - 4]
call fcn.004d0cf0
jmp 0x4d0a13
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004d0c70
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29], 0
je 0x4d0a36
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.004d07f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d0a5d
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0x10