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

Disassembly:
sub esp, 0x28
push edi
mov edi, dword [0x69362c]
test edi, edi
je 0x551021
mov eax, dword [esp + 0x30]
cmp dword [edi + 0x544], eax
je 0x550d5d
mov edi, dword [edi + 0x54c]
test edi, edi
jne 0x550d46
pop edi
add esp, 0x28
ret
mov eax, dword [esp + 0x34]
push ebx
shr eax, 0x10
test ax, ax
push ebp
push esi
je 0x550dba
mov esi, dword [edi + 0x4e4]
movzx eax, ax
mov dword [edi + 0x52c], eax
mov eax, dword [0x68758c]
test eax, eax
je 0x550d96
push 1
push 0x3c
push edi
push str.SOCKLISTEN
call fcn.0054fc90
add esp, 0x10
push esi
push edi
call fcn.0054fb50
add esp, 8
test eax, eax
je 0x55101e
pop esi
pop ebp
pop ebx
mov dword [edi + 0x52c], 0
pop edi
add esp, 0x28
ret
push 0
call fcn.005daa26
add esp, 4
mov dword [edi + 0x528], eax
call fcn.0054f910
mov esi, eax
test esi, esi
jne 0x550dfc
mov eax, dword [0x68758c]
test eax, eax
je 0x55101e
push 4
push 0x3c
push edi
push str.SOCKLISTEN
call fcn.0054fc90
add esp, 0x10
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x28
ret
push 0
mov dword [esi + 0x4e8], 2
call fcn.005daa26
mov dword [esi + 0x524], eax
mov dword [esi + 0x528], eax
mov ecx, dword [edi + 0x548]
add esp, 4
lea edx, [esp + 0x10]
mov dword [esi + 0x548], ecx
push edx
mov ebp, 0x10
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], ebp
mov ecx, dword [edi + 0x544]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_accept]
cmp eax, 0xffffffff
mov dword [esi + 0x544], eax
jne 0x550ec1
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, dword [edi + 0x4e4]
mov dword [edi + 0x52c], eax
mov eax, dword [0x68758c]
test eax, eax
mov ebp, dword [esi + 0x4e4]
je 0x550e86
push 2
push 0x3c
push edi
push str.SOCKLISTEN
call fcn.0054fc90
add esp, 0x10
push ebx
push edi
call fcn.0054fb50
add esp, 8
test eax, eax
je 0x550e9e
mov dword [edi + 0x52c], 0
push ebp
push esi
call fcn.0054fb50
add esp, 8
test eax, eax
je 0x55101e
push esi
call fcn.0054fa70
add esp, 4
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x28
ret
mov eax, dword [edi + 0x544]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.WSOCK32.dll_ntohs]
je 0x550f19
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x20], ebp
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x550f19
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [edi + 0x398]
push 0x132
push eax
call fcn.00425550
mov ecx, dword [esp + 0x26]
add esp, 0xc
push ecx
call ebx
mov word [edi + 0x4ca], ax
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.WSOCK32.dll_htonl]
mov ecx, eax
movzx eax, ax
movzx edx, al
push edx
shr eax, 8
shr ecx, 0x10
movzx eax, al
push eax
movzx edx, cl
shr ecx, 8
movzx eax, cl
push edx
push eax
lea ecx, [esi + 0x264]
push str._d._d._d._d
push ecx
call fcn.005d9929
mov edx, dword [esp + 0x42]
add esp, 0x18
push edx
call ebx
mov word [esi + 0x396], ax
mov eax, dword [0x68758c]
test eax, eax
je 0x550f99
mov ebp, dword [esi + 0x4e4]
push 0
push 0x3c
push edi
push str.SOCKLISTEN
call fcn.0054fc90
push ebp
push esi
call fcn.0054fb50
add esp, 0x18
test eax, eax
je 0x55101e
mov ebp, 0x10
cmp byte [esi], 0
je 0x550eb0
mov eax, dword [esi + 0x544]
push eax
call fcn.00598890
mov ecx, dword [0x6a0f40]
mov edx, dword [esi + 0x544]
add esp, 4
push 0x23
push 0x8038
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov eax, dword [esi + 0x544]
cmp eax, 0xffffffff
je 0x55101e
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x20], ebp
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x55101e
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea ecx, [esi + 0x398]
push 0x132
push ecx
call fcn.00425550
mov edx, dword [esp + 0x26]
add esp, 0xc
push edx
call ebx
mov word [esi + 0x4ca], ax
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x28
ret