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

Disassembly:
sub esp, 0x9a8
mov eax, dword [0x431020]
xor eax, esp
mov dword [esp + 0x9a4], eax
mov eax, dword [esp + 0x9ac]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax]
xor ebp, ebp
push 0xff
mov dword [esp + 0x24], eax
lea eax, [esp + 0xb5]
push ebp
push eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x24], edi
mov byte [esp + 0xbc], 0
call fcn.004077be
mov esi, dword [edi + 0x2c4]
mov dword [esp + 0x34], ebp
mov eax, dword [edi + 0x2c4]
add esp, 0xc
xor ebx, ebx
cmp eax, ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ebp
je 0x41ac8f
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41ab42
sub eax, edx
cmp eax, 1
jbe 0x41ac8f
mov eax, esi
lea edx, [eax + 1]
jmp 0x41ab60
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41ab60
sub eax, edx
cmp eax, 0x16
jae 0x41ab77
mov eax, 0x16
jmp 0x41ab8b
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41ab80
sub eax, edx
add eax, 1
push 1
push eax
call dword [0x431050]
mov ebx, eax
add esp, 8
cmp ebx, ebp
jne 0x41abaa
mov eax, 0x1b
jmp 0x41b083
cmp byte [esi], 0x3a
mov ebp, dword [0x428264]
jne 0x41ac4d
mov edi, esi
test edi, edi
je 0x41ac18
push 0x3a
push edi
call ebp
mov esi, eax
add esp, 8
test esi, esi
je 0x41ac18
mov edi, dword [0x42826c]
push 0xa
lea edx, [esi + 1]
push 0
push edx
call edi
movzx eax, ax
push 0x2d
push esi
mov dword [esp + 0x38], eax
call ebp
add esp, 0x14
test eax, eax
je 0x41ac84
push 0xa
xor esi, esi
add eax, 1
push esi
push eax
call edi
movzx eax, ax
add esp, 0xc
cmp word [esp + 0x24], ax
mov dword [esp + 0x1c], eax
jbe 0x41ac18
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
cmp byte [ebx], 0
je 0x41ac8f
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 4]
push 0x401
lea edx, [esp + 0x1b4]
push edx
push ebx
push ecx
call fcn.00425770
add esp, 0x10
test eax, eax
jne 0x41ad0e
mov eax, ebx
jmp 0x41ad15
push 0x3a
push esi
call ebp
mov edi, eax
add esp, 8
test edi, edi
je 0x41ac70
mov ecx, edi
sub ecx, esi
push ecx
push esi
push ebx
call dword [0x428244]
add esp, 0xc
jmp 0x41abbb
mov edx, ebx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x41ac76
jmp 0x41ac18
movzx ecx, word [esp + 0x24]
mov dword [esp + 0x1c], ecx
jmp 0x41ac18
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 0xd4]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x1c], 0x80
call dword [0x4283cc]
test eax, eax
je 0x41acee
call dword [0x4283d8]
push eax
push esi
call fcn.00425520
mov edx, dword [esp + 0x20]
push eax
push str.getsockname___failed:__s
push edx
call fcn.00412850
add esp, 0x14
test ebx, ebx
je 0x41ace4
push ebx
call dword [0x431044]
add esp, 4
mov eax, 0x1e
jmp 0x41b083
movzx edx, word [esp + 0x30]
push 0x401
lea eax, [esp + 0x1b4]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
call fcn.00414a50
add esp, 0x10
lea eax, [esp + 0x1b0]
lea ecx, [esp + 0x28]
push ecx
push 0
push eax
push esi
call fcn.00409560
add esp, 0x10
cmp eax, 1
jne 0x41ad39
lea edx, [esp + 0x28]
push edx
push esi
call fcn.004151b0
add esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41ad53
mov esi, dword [eax]
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00409750
add esp, 8
jmp 0x41ad55
xor esi, esi
test ebx, ebx
je 0x41ad63
push ebx
call dword [0x431044]
add esp, 4
test esi, esi
jne 0x41ad81
mov ecx, dword [esp + 0x18]
push str.Curl_resolv_failed__we_can_not_recover_
push ecx
call fcn.00412850
add esp, 8
lea eax, [esi + 0x1e]
jmp 0x41b083
mov edi, dword [0x4283d8]
mov ebp, dword [0x4283b0]
lea ecx, [ecx]
cmp dword [esi + 8], 0
jne 0x41ada3
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x80]
mov dword [esi + 8], eax
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x41adeb
call edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x41ad90
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.00425520
mov edx, dword [esp + 0x20]
push eax
push str.socket_failure:__s
push edx
call fcn.00412850
add esp, 0x14
lea eax, [esi + 0x1e]
jmp 0x41b083
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x18]
push eax
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.0042661a
mov eax, dword [esi + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp ax, word [esp + 0x1c]
movzx edi, ax
ja 0x41af44
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
cmp word [esp + 0x30], 2
jne 0x41ae35
push edi
call dword [0x4283c0]
mov word [esp + 0x32], ax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
call dword [0x4283c4]
test eax, eax
je 0x41af39
call dword [0x428218]
cmp dword [eax], 0x2741
jne 0x41aeaa
call dword [0x4283d8]
push eax
push ebx
call fcn.00425520
push eax
movzx ecx, di
push ecx
push str.bind_port_i__failed:__s
push ebp
call fcn.00412850
mov ecx, dword [ebx + 0xd4]
add esp, 0x18
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x1c], 0x80
call dword [0x4283cc]
test eax, eax
jne 0x41aed3
movzx edi, word [esp + 0x24]
jmp 0x41aec6
call dword [0x428218]
cmp dword [eax], 0x2740
je 0x41aec3
call dword [0x428218]
cmp dword [eax], 0xd
jne 0x41af04
add edi, 1
cmp di, word [esp + 0x1c]
jbe 0x41ae21
jmp 0x41af40
call dword [0x4283d8]
push eax
push ebx
call fcn.00425520
push eax
push str.getsockname___failed:__s
push ebp
call fcn.00412850
mov edx, dword [esp + 0x28]
add esp, 0x14
push edx
call dword [0x4283dc]
mov eax, 0x1e
jmp 0x41b083
call dword [0x4283d8]
push eax
push ebx
call fcn.00425520
push eax
movzx eax, di
push eax
push str.bind_port_i__failed:__s
push ebp
call fcn.00412850
mov ecx, dword [esp + 0x2c]
add esp, 0x18
push ecx
call dword [0x4283dc]
mov eax, 0x1e
jmp 0x41b083
cmp di, word [esp + 0x1c]
jbe 0x41af67
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push str.bind___failed__we_ran_out_of_ports_
push edx
call fcn.00412850
add esp, 8
push ebx
call dword [0x4283dc]
mov eax, 0x1e
jmp 0x41b083
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
mov dword [esp + 0x1c], 0x80
call dword [0x4283cc]
test eax, eax
je 0x41afb5
call dword [0x4283d8]
push eax
push ebx
call fcn.00425520
push eax
push str.getsockname___failed:__s
push ebp
call fcn.00412850
add esp, 0x14
push edi
call dword [0x4283dc]
mov eax, 0x1e
jmp 0x41b083
push 1
push edi
call dword [0x4283f0]
test eax, eax
je 0x41afd7
call dword [0x4283d8]
push eax
push ebx
call fcn.00425520
push eax
push str.socket_failure:__s
jmp 0x41af9b
push 0x100
lea edx, [esp + 0xb4]
push edx
push esi
call fcn.00409310
mov edi, dword [esp + 0x9cc]
add esp, 0xc
cmp edi, 2
je 0x41b048
mov ebp, dword [0x4283c8]
mov cx, word [esp + 0x30]
cmp byte [ebx + 0x139], 0
jne 0x41b011
test edi, edi
je 0x41b040
cmp edi, 1
jne 0x41b01c
cmp cx, 2
jne 0x41b040
movzx eax, cx
sub eax, 2
jne 0x41b040
mov eax, dword [esp + 0x32]
push eax
call ebp
test edi, edi
movzx esi, ax
je 0x41b09c
cmp edi, 1
je 0x41b0d6
mov cx, word [esp + 0x30]
add edi, 1
cmp edi, 2
jne 0x41b004
mov esi, dword [esp + 0x2c]
mov dword [ebx + 0x320], edi
mov eax, dword [ebx + 0xd8]
cmp eax, 0xffffffff
je 0x41b064
push eax
call dword [0x4283dc]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0xd8], ecx
mov eax, 0x1a
mov ecx, ebx
mov byte [ebx + 0x131], 1
call fcn.00419d90
mov eax, esi
mov ecx, dword [esp + 0x9b4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004072ba
add esp, 0x9a8
ret
xor eax, eax
cmp word [esp + 0x30], 2
movzx ecx, si
setne al
push ecx
lea edx, [esp + 0xb4]
push edx
add eax, 1
push eax
push str.EPRT
push str._s__d_s_d
push ebx
call fcn.0041a350
mov esi, eax
add esp, 0x18
test esi, esi
je 0x41b04c
jmp 0x41b081
lea ecx, [esp + 0x5b4]
lea edx, [esp + 0xb0]
mov al, byte [edx]
test al, al
je 0x41b0fd
cmp al, 0x2e
jne 0x41b0f3
mov byte [ecx], 0x2c
jmp 0x41b0f5
mov byte [ecx], al
add ecx, 1
add edx, 1
jne 0x41b0e4
movzx eax, si
mov edx, eax
and edx, 0xff
push edx
shr eax, 8
push eax
push str.__d__d
push 0x14
push ecx
mov byte [ecx], 0
call fcn.00413db0
lea eax, [esp + 0x5c8]
push eax
push str.PORT
push str._s__s
push ebx
call fcn.0041a350
mov esi, eax
add esp, 0x24
test esi, esi
je 0x41b04c
jmp 0x41b081