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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x4a5294]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x16c]
push esi
mov esi, dword [ebx]
push edi
push 0xff
mov dword [ebp - 0x140], eax
xor edi, edi
lea eax, [ebp - 0x10f]
push edi
push eax
mov byte [ebp - 0x110], 0
call fcn.00451930
mov eax, dword [esi + 0x70]
add esp, 0xc
cmp eax, edi
mov byte [ebp - 0x131], 0
mov dword [ebp - 0x13c], edi
je 0x4497d1
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x44976e
push edi
push dword [esi + 0x70]
push eax
call fcn.0044e4a8
add esp, 0xc
mov dword [ebp - 0x13c], eax
jmp 0x4497c9
push dword [esi + 0x70]
call fcn.00452390
cmp eax, 1
pop ecx
jbe 0x4497d1
lea eax, [ebp - 0x138]
push eax
push edi
lea eax, [ebp - 0x110]
push eax
push ebx
mov dword [ebp - 0x138], edi
call fcn.0043f524
add esp, 0x10
cmp eax, 1
jne 0x4497ae
lea eax, [ebp - 0x138]
push eax
push ebx
call fcn.00444a5a
pop ecx
pop ecx
mov eax, dword [ebp - 0x138]
cmp eax, edi
je 0x4497d1
mov ecx, dword [eax]
mov edi, eax
mov dword [ebp - 0x13c], ecx
call fcn.0043f670
xor edi, edi
cmp dword [ebp - 0x13c], edi
jne 0x44980a
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x120]
push eax
push dword [ebx + 0xa0]
mov dword [ebp - 0x138], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x449803
push str.getsockname___failed
jmp 0x4499d1
mov byte [ebp - 0x131], 1
push edi
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp - 0x138], eax
je 0x4499cc
lea edi, [ebx + 0xa4]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x449838
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp byte [ebp - 0x131], 0
mov eax, dword [ebp - 0x138]
mov dword [edi], eax
jne 0x44986a
mov eax, dword [ebp - 0x13c]
push 0x10
push dword [eax + 0x14]
lea eax, [ebp - 0x120]
push eax
call fcn.00451cb0
add esp, 0xc
and dword [ebp - 0x11c], 0
and word [ebp - 0x11e], 0
push 0x10
pop edi
push edi
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x138]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x4499c5
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x138]
mov dword [ebp - 0x144], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jl 0x4497f9
push dword [ebp - 0x12e]
call dword [sym.imp.WS2_32.dll_ntohs]
push 1
push dword [ebp - 0x138]
movzx edi, ax
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jge 0x4498e4
push str.listen_2__failed_on_socket
jmp 0x4499d1
cmp byte [ebp - 0x131], 0
push 0x100
lea eax, [ebp - 0x110]
push eax
je 0x44990d
lea eax, [ebp - 0x11c]
push eax
push 2
pop eax
call fcn.0044e5be
add esp, 0xc
jmp 0x44991a
mov ecx, dword [ebp - 0x13c]
call fcn.0043f405
pop ecx
pop ecx
lea eax, [ebp - 6]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push str._hu._hu._hu._hu
push eax
call fcn.00455533
add esp, 0x18
cmp eax, 4
jne 0x4499d7
movzx eax, word [ebp - 6]
movzx edi, di
push edi
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
push str.Telling_server_to_connect_to__d._d._d._d:_d_n
call fcn.0043bdf0
mov eax, edi
and eax, 0xff
push eax
movzx eax, word [ebp - 6]
shr edi, 8
push edi
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
push str.PORT__d__d__d__d__d__d
mov ecx, ebx
call fcn.0044b7b9
add esp, 0x34
test eax, eax
jne 0x4499da
mov eax, dword [ebp - 0x13c]
call fcn.0044e490
mov eax, dword [ebp - 0x140]
mov dword [eax + 0x48], 2
mov eax, dword [ebx + 0x16c]
mov dword [eax + 0x68], 0x19
xor eax, eax
jmp 0x4499da
push str.bind_2__failed_on_socket
jmp 0x4499d1
push str.socket_2__failed___s_
call fcn.0043be59
pop ecx
push 0x1e
pop eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00451a25
leave
ret