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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push esi
push edi
lea edi, [ebp - 0x12c]
mov ecx, 0x4b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4cfaa8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x94], 2
jne 0x4403a3
jmp 0x4405cb
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x282]
test ecx, ecx
jne 0x4405bf
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x29e]
test eax, eax
jne 0x4405bf
mov dword [ebp - 0xc], 0x80
mov esi, esp
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_getpeername]
cmp esi, esp
call fcn.004a9923
test eax, eax
je 0x440439
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041d3e0
add esp, 8
push eax
mov eax, dword [ebp - 0x128]
push eax
push str.getpeername___failed_with_errno__d:__s
mov ecx, dword [ebp - 0x124]
push ecx
call fcn.0043e100
add esp, 0x10
jmp 0x4405cb
mov dword [ebp - 0xc], 0x80
push 0x80
push 0
lea edx, [ebp - 0x11c]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp esi, esp
call fcn.004a9923
test eax, eax
je 0x4404c1
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041d3e0
add esp, 8
push eax
mov edx, dword [ebp - 0x12c]
push edx
push str.getsockname___failed_with_errno__d:__s
mov eax, dword [ebp - 0x124]
push eax
call fcn.0043e100
add esp, 0x10
jmp 0x4405cb
mov ecx, dword [ebp + 8]
add ecx, 0x138
push ecx
mov edx, dword [ebp + 8]
add edx, 0x10a
push edx
lea eax, [ebp - 0x94]
push eax
call fcn.00441b90
add esp, 0xc
movzx ecx, al
test ecx, ecx
jne 0x440535
mov esi, esp
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp esi, esp
call fcn.004a9923
mov edx, dword [eax]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041d3e0
add esp, 8
push eax
mov esi, esp
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp esi, esp
call fcn.004a9923
mov ecx, dword [eax]
push ecx
push str.ssrem_inet_ntop___failed_with_errno__d:__s
mov edx, dword [ebp - 0x124]
push edx
call fcn.0043e100
add esp, 0x10
jmp 0x4405cb
push 0x2e
mov eax, dword [ebp + 8]
add eax, 0x10a
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x60
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 0x16c
push edx
mov eax, dword [ebp + 8]
add eax, 0x13c
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00441b90
add esp, 0xc
movzx edx, al
test edx, edx
jne 0x4405bf
mov esi, esp
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp esi, esp
call fcn.004a9923
mov eax, dword [eax]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041d3e0
add esp, 8
push eax
mov esi, esp
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp esi, esp
call fcn.004a9923
mov edx, dword [eax]
push edx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
mov eax, dword [ebp - 0x124]
push eax
call fcn.0043e100
add esp, 0x10
jmp 0x4405cb
mov ecx, dword [ebp + 8]
push ecx
call fcn.00440640
add esp, 4
push edx
mov ecx, ebp
push eax
lea edx, [0x4405fc]
call fcn.004a98cf
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a93ad
add esp, 0x12c
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret