Function at 0x4c7af0
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x56a600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x20], edi
xor ebp, ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x50], edi
call fcn.004bef40
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
cmp ecx, edi
mov byte [esp + 0x48], 1
je 0x4c7d0a
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.0040b110
lea ecx, [esp + 0x2c]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.004c2df0
add esp, 8
push str.IPCount
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 2
call fcn.004071e0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
call fcn.004c6d50
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c7baf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x28]
je 0x4c7ce0
mov eax, dword [eax + 0x10]
push eax
call fcn.0053c6a5
add esp, 4
xor esi, esi
cmp eax, edi
mov dword [esp + 0x20], eax
jle 0x4c7ce0
call fcn.005504da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push esi
lea eax, [esp + 0x14]
push str.IPAddress_d
push eax
mov byte [esp + 0x54], 3
call fcn.0040b350
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x28]
call fcn.004c6c90
cmp eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
je 0x4c7c35
mov eax, dword [eax + 0xc]
push eax
push ebx
call fcn.0053d6bb
add esp, 8
test eax, eax
jl 0x4c7c35
lea eax, [esp + 0x18]
jmp 0x4c7c41
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x1c]
mov eax, dword [eax]
cmp eax, dword [esp + 0x28]
je 0x4c7cc1
mov eax, dword [eax + 0x10]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
test ebp, ebp
mov dword [esp + 0x18], eax
je 0x4c7c7a
mov edx, dword [esp + 0x3c]
mov ecx, edi
sub ecx, ebp
sub edx, ebp
sar ecx, 2
sar edx, 2
cmp ecx, edx
jae 0x4c7c7a
mov dword [edi], eax
add edi, 4
mov dword [esp + 0x38], edi
jmp 0x4c7c93
lea eax, [esp + 0x18]
push eax
push 1
push edi
lea ecx, [esp + 0x3c]
call fcn.004c6f40
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
lea eax, [ebx - 0x10]
mov byte [esp + 0x48], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c7cb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jl 0x4c7bd7
jmp 0x4c7ce0
lea eax, [ebx - 0x10]
mov byte [esp + 0x48], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c7ce0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
push ecx
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 1
call fcn.004b22c0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0055047a
add esp, 4
xor edi, edi
mov esi, dword [esp + 0x50]
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call fcn.004c73d0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x48], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c7d3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp ebp, edi
je 0x4c7d4a
push ebp
call fcn.0055047a
add esp, 4
mov ecx, dword [esp + 0x40]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x3c
ret 4