Function at 0x4a8140
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d44ab
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x629560]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
push esi
call fcn.004a93b0
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
je 0x4a84c3
mov ebx, dword [ebp + 0x10]
lea eax, [ebx + 8]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 0x18]
push ecx
push eax
push esi
mov dword [ebp - 0x14], ecx
call fcn.004a9460
mov esi, eax
test esi, esi
mov dword [ebp - 0x1c], esi
je 0x4a81ea
mov ecx, dword [esi + 0x2c]
mov dl, byte [ecx + 0x60]
test dl, dl
je 0x4a821c
mov dword [esi], 6
call fcn.004b72a0
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov eax, dword [edi + 0x3c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ebx, [esi + 0x1c]
mov esi, dword [edi + 0x30]
mov ecx, ebx
call fcn.004ac2e0
mov esi, dword [edi + 0x34]
mov ecx, ebx
call fcn.004ac2e0
mov ecx, dword [edi + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [edi + 0x30]
mov eax, dword [ecx + 8]
cmp eax, dword [edi + 0x40]
jae 0x4a84c3
push 0x48
mov dword [ebp - 4], 0
call fcn.004d3c8b
add esp, 4
test eax, eax
je 0x4a825f
mov esi, eax
call fcn.004a7880
mov ebx, eax
mov dword [ebp - 0x14], ebx
jmp 0x4a8269
mov edx, dword [esi + 0x2c]
mov eax, dword [edx + 0xc8]
mov dword [ebx + 8], eax
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx + 0x14]
mov dword [ebx + 0xc], edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], 0xffffffff
mov edx, dword [esi + 0x1c]
mov dword [eax], edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x14], 0
mov ebx, dword [ebp - 0x14]
push 0x230
mov dword [ebp - 0x1c], ebx
call fcn.004d3c8b
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x4a8291
mov edi, dword [edi + 0x2c]
call fcn.004ae590
mov edi, dword [ebp - 0x18]
jmp 0x4a8293
xor eax, eax
mov byte [ebp - 4], 0
mov dword [ebx + 0x2c], eax
cmp dword [edi + 0x10], 2
jne 0x4a82d8
push 0x10
call fcn.004d3c8b
add esp, 4
mov dword [ebx + 0x14], eax
push 0x10
mov word [eax + 2], 0
call fcn.004d3c8b
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x18], eax
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
jmp 0x4a8304
push 0x1c
call fcn.004d3c8b
add esp, 4
mov dword [ebx + 0x14], eax
push 0x1c
mov word [eax + 2], 0
call fcn.004d3c8b
mov esi, dword [ebp + 0xc]
mov ecx, 7
mov edi, eax
mov dword [ebx + 0x18], eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x18]
mov edx, dword [0x649ad0]
add esp, 4
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x649ad4]
sub eax, 1
mov dword [0x649ad4], eax
lea esi, [ebx + 0x1c]
mov dword [esi], eax
mov eax, dword [0x649ad0]
push eax
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x20], ecx
mov edx, dword [edi + 0x10]
mov ecx, dword [esi]
mov dword [ebx + 0x10], edx
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x18]
add eax, 8
mov dword [ebx + 0x24], edx
mov eax, dword [eax]
mov dword [ebp - 4], 3
mov esi, dword [ebx + 0x2c]
mov dword [ebx + 0x28], eax
mov dword [ebp + 8], 0
call fcn.004ae9d0
push ebx
mov eax, edi
call fcn.004aac40
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebx + 0x2c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004afd60
mov edx, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x14]
mov dword [ebx], 4
mov eax, dword [edx + 0x208]
mov eax, dword [eax + 8]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
sub edx, 2
neg edx
sbb edx, edx
and edx, 0xc
add edx, 0x10
mov dword [ebp - 0x20], edx
lea edx, [ebp - 0x20]
push edx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x14]
add eax, 0x214
cmp dword [ebx + 0x10], 2
jne 0x4a83d7
mov edx, dword [eax]
mov dword [ecx + 4], edx
jmp 0x4a83dc
call fcn.004b7910
mov eax, dword [0x649acc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [ebp - 0x1c]
mov eax, 0x649ac0
mov dword [ebp - 4], 5
call fcn.004abbc0
mov edi, dword [ebp - 0x14]
mov dword [eax], edi
jmp 0x4a8415
mov ecx, dword [0x649acc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [ebp - 0x18]
mov edx, dword [esi + 0x3c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [edi + 0x1c]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 7
mov ebx, dword [esi + 0x30]
push ecx
call fcn.00453bc0
mov dword [ebp - 4], 0xffffffff
jmp 0x4a8464
mov edx, dword [esi + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x649b28]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
push eax
call ebx
cmp dword [ebp + 8], 0
jg 0x4a84aa
mov ecx, dword [esi + 0x38]
push ecx
call ebx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [edi + 0x2c]
call fcn.004b01f0
mov dword [edi], 6
call fcn.004b72a0
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc