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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x59c388]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [ebx + 0x94], 2
mov edi, dword [ebx]
mov dword [ebp - 0x10c], edi
je 0x4ada3f
cmp byte [ebx + 0x282], 0
push esi
jne 0x4ad971
cmp byte [ebx + 0x29e], 0
jne 0x4ad971
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4ad81e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00497e70
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.004ac0c0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3d68
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.0050bda0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4ad887
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00497e70
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.004ac0c0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3d68
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.004ace80
add esp, 0xc
test al, al
jne 0x4ad8e4
call fcn.0051ed71
mov esi, dword [eax]
call fcn.0051ed71
push esi
push ebx
mov edi, eax
call fcn.00497e70
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.004ac0c0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3d68
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [ebx + 0x60], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebx + 0x70], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ebx + 0x80], xmm0
mov dword [ebx + 0x88], eax
mov ax, word [esi + 0x2c]
mov word [ebx + 0x8c], ax
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004ace80
add esp, 0xc
test al, al
jne 0x4ad971
call fcn.0051ed71
mov esi, dword [eax]
call fcn.0051ed71
push esi
push ebx
mov edi, eax
call fcn.00497e70
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.004ac0c0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3d68
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx]
movups xmm0, xmmword [ebx + 0x10a]
pop esi
movups xmmword [ecx + 0x4c50], xmm0
movups xmm0, xmmword [ebx + 0x11a]
movups xmmword [ecx + 0x4c60], xmm0
movq xmm0, qword [ebx + 0x12a]
movq qword [ecx + 0x4c70], xmm0
mov eax, dword [ebx + 0x132]
mov dword [ecx + 0x4c78], eax
movzx eax, word [ebx + 0x136]
mov word [ecx + 0x4c7c], ax
mov ecx, dword [ebx]
movups xmm0, xmmword [ebx + 0x13c]
movups xmmword [ecx + 0x4c84], xmm0
movups xmm0, xmmword [ebx + 0x14c]
movups xmmword [ecx + 0x4c94], xmm0
movq xmm0, qword [ebx + 0x15c]
movq qword [ecx + 0x4ca4], xmm0
mov eax, dword [ebx + 0x164]
mov dword [ecx + 0x4cac], eax
movzx eax, word [ebx + 0x168]
mov word [ecx + 0x4cb0], ax
mov eax, dword [ebx + 0x2c8]
mov ecx, dword [ebx]
mov eax, dword [eax]
mov dword [ecx + 0x4cb8], eax
mov eax, dword [ebx + 0x2c8]
mov ecx, dword [ebx]
mov eax, dword [eax + 0x40]
mov dword [ecx + 0x4cbc], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x138]
mov dword [ecx + 0x4c80], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x16c]
mov dword [ecx + 0x4cb4], eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004f3d68
mov esp, ebp
pop ebp
ret