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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x5b706c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x1a4], edx
push ebx
mov dword [ebp - 0x194], eax
push esi
mov eax, dword [eax]
push edi
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x198], 0
mov edi, dword [eax + 0x5e8]
movzx esi, word [eax + 0x1b8]
mov ebx, dword [eax + 0x1bc]
mov dword [ebp - 0x1a0], 0
test edi, edi
jne 0x442090
test si, si
je 0x442451
push 0x80
lea eax, [ebp - 0x190]
push 0
push eax
call fcn.00525340
add esp, 0xc
test edi, edi
je 0x4422cf
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4420b3
sub ecx, edx
cmp ecx, 0xff
jae 0x4422cf
push 0x100
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00525340
add esp, 0xc
push 3
push edi
push 0x587a48
call fcn.0052fad0
add esp, 0xc
test eax, eax
jne 0x44211f
add edi, 3
push edi
push str.Couldnt_bind_to_interface__s
push dword [ebp - 0x19c]
call fcn.004415c0
add esp, 0xc
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
push 5
push edi
push str.host_
call fcn.0052fad0
add esp, 0xc
test eax, eax
jne 0x442136
add edi, 5
mov eax, dword [ebp - 0x194]
mov ecx, dword [eax + 0x350]
mov dword [ebp - 0x10c], ecx
mov ecx, dword [ebp + 8]
cmp ecx, 2
jne 0x44215c
mov dword [eax + 0x350], 1
jmp 0x44216b
cmp ecx, 0x17
jne 0x44216b
mov dword [eax + 0x350], 2
lea ecx, [ebp - 0x1a0]
mov edx, edi
push ecx
push 0
mov ecx, eax
call fcn.00444120
add esp, 8
cmp eax, 1
jne 0x442196
mov ecx, dword [ebp - 0x194]
lea edx, [ebp - 0x1a0]
call fcn.00448f80
mov eax, dword [ebp - 0x194]
mov ecx, dword [ebp - 0x10c]
mov dword [eax + 0x350], ecx
mov eax, dword [ebp - 0x1a0]
test eax, eax
je 0x44229a
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
sub eax, 2
je 0x4421dd
sub eax, 0x15
jne 0x4421f6
mov ecx, dword [ecx + 0x18]
lea edx, [ebp - 0x108]
add ecx, 8
push 0x100
call fcn.00453da0
jmp 0x4421f3
mov ecx, dword [ecx + 0x18]
lea edx, [ebp - 0x108]
add ecx, 4
push 0x100
call fcn.00453d00
add esp, 4
mov edx, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 0x19c]
call fcn.00444280
mov eax, dword [ebp + 8]
cmp eax, 0x17
jne 0x44224e
lea edx, [ebp - 0x188]
lea ecx, [ebp - 0x108]
call fcn.00453b30
test eax, eax
jle 0x44223e
mov eax, 0x17
push esi
mov word [ebp - 0x190], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x18e], ax
mov eax, 0x1c
mov dword [ebp - 0x198], eax
jmp 0x442322
cmp eax, 2
jne 0x442320
lea edx, [ebp - 0x18c]
lea ecx, [ebp - 0x108]
call fcn.00453a50
test eax, eax
jle 0x442320
mov eax, 2
push esi
mov word [ebp - 0x190], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x18e], ax
mov eax, 0x10
mov dword [ebp - 0x198], eax
jmp 0x442322
mov eax, dword [ebp - 0x19c]
push edi
push str.Couldnt_bind_to__s
push eax
mov dword [eax + 0x4958], 0
call fcn.004415c0
add esp, 0xc
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
cmp eax, 0x17
jne 0x4422f9
push esi
mov word [ebp - 0x190], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x18e], ax
mov eax, 0x1c
mov dword [ebp - 0x198], eax
jmp 0x442322
cmp eax, 2
jne 0x442320
push esi
mov word [ebp - 0x190], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x18e], ax
mov eax, 0x10
mov dword [ebp - 0x198], eax
jmp 0x442322
xor eax, eax
push eax
lea eax, [ebp - 0x190]
push eax
push dword [ebp - 0x1a4]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x442371
mov edi, dword [sym.imp.WS2_32.dll_ntohs]
dec ebx
test ebx, ebx
jle 0x4423fa
inc esi
push esi
call edi
push dword [ebp - 0x198]
mov word [ebp - 0x18e], ax
lea eax, [ebp - 0x190]
push eax
push dword [ebp - 0x1a4]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x442340
push 0x80
lea eax, [ebp - 0x88]
mov dword [ebp - 0x10c], 0x80
push 0
push eax
call fcn.00525340
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x1a4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x442441
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebp - 0x19c]
mov esi, eax
mov ecx, dword [ebp - 0x194]
mov edx, esi
mov dword [ebx + 0x495c], esi
call fcn.00453870
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004415c0
add esp, 0x10
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebp - 0x19c]
mov esi, eax
mov ecx, dword [ebp - 0x194]
mov edx, esi
mov dword [ebx + 0x495c], esi
call fcn.00453870
push eax
push esi
push str.bind_failed_with_errno__d:__s
push ebx
call fcn.004415c0
add esp, 0x10
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x194]
mov dword [eax + 0x300], 1
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret